Documentation

Akash SMS API Documentation

Hostname : http://aakashsms.com/admin/public/sms/v1/send

Error Responses

                {
                    'response' => 'A required field is missing',
                    'response_code' => 4000
                }
                {
                    'response' => 'Invalid IP Address',
                    'response_code' => 4001
                }
                {
                    'response' => 'Invalid URL',
                    'response_code' => 4002
                }
                {
                    'response' => 'Invalid AuthToken',
                    'response_code' => 4003
                }
                {
                    'response' => 'Account is not active',
                    'response_code' => 4004
                }
                {
                    'response' => 'Account has been expired',
                    'response_code' => 4005
                }
                {
                    'response' => 'Invalid phone number',
                    'response_code' => 4006
                }
                {
                    'response' => 'Invalid sender',
                    'response_code' => 4007
                }
                {
                    'response' => 'Text cannot be empty',
                    'response_code' => 4008
                }
                {
                    'response' => 'No Credits Available',
                    'response_code' => 4009
                }
                {
                    'response' => 'Insufficient Credits',
                    'response_code' => 4010
                }

Send SMS

 /send

Parameters

Field Type Description
auth_token string Token generated from our website.
from string It should be the identity provided to you.
to string Comma Separated 10-digit mobile numbers.
text string SMS Message to be sent.

Response

Status-Code: 200 OK

                {
                    "count" => [number_of_sms_sent],
                    "response_code"=> 201,
                    "status"=> "queued",
                    "response"=> "[number_of_sms_sent] messages has been queued for delivery"
                }

Send SMS (cUrl)

 /send

Parameters

Field Type Description
auth_token string Token generated from our website.
from string It should be the identity provided to you.
to string Comma Separated 10-digit mobile numbers.
text string SMS Message to be sent.

Response

Status-Code: 200 OK

                {
                    "count" => [number_of_sms_sent],
                    "response_code"=> 201,
                    "status"=> "queued",
                    "response"=> "[number_of_sms_sent] messages has been queued for delivery"
                }
Back to top