Send SMS

You need to have created an account. When you sign up for the account, you will receive a username and password. Your username and password has to be encoded in base64 and passed as a Base64 encoded string example Authorization: Basic dXNlcm5hbWU6cGFzc29yZA== when interacting with the API

Authorization: Basic dXNlcm5hbWU6cGFzc29yZA==

Username: username
Password: password

String: username:password
Base64 encoded string: dXNlcm5hbWU6cGFzc29yZA==

Setting Up an SMS account with Intrepid Data Systems

In order to use the SMS gateway please ensure that you have an account set up, in order to set up and account please contact Intrepid Data Systems.

Sending an SMS

the url is for either POST or GET is

http://sms3.intrepid.co.ke/api/sms

GET Parameters

The following are the parameters to be sent to Intrepid via GET
Parameter Name Parameter Description
u Your username
p Your password
to Destination address, must be in international format
sender Represents sender ID and it can be alphanumeric or numeric
msg Text of the message that will be sent.

Example GET



https://sms3.intrepid.co.ke/api/sms?u=username&p=password&msg=the_message_to_be_sent&to=the_recipient&sender=your_sender_id

POST Parameters

The following are the parameters to be sent to Intrepid via POST
Parameter Name Parameter Description
sender Represents sender ID and it can be alphanumeric or numeric
to Destination address, must be in international format
sms_txt Text of the message that will be sent.

Example POST

POST /dev HTTP/1.1
Host: sms3.intrepid.co.ke/api/sms
Authorization: Basic dXNlcm5hbWU6cGFzc29yZA==
Cache-Control: no-cache
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="to"

254724558697
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="sender"

CGK_ABC
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="msg"

RESPONSE values

  {
    "messages":[
    {
      "to":"2547XXXXXXXX",
      "status":{
      "groupId":0,
      "groupName":"ACCEPTED",
      "id":0,
      "name":"MESSAGE_ACCEPTED",
      "description":"Message accepted"
   },
   "smsCount":1,
   "messageId":"2250be2d4219-3af1-78856-aabe-1362af1edfd2"
}
]
}