πŸ“˜ NOTE

You would need to register a sender ID with the endpoint mentioned below. All messages sent before then will be delivered with the default sender ID

Request

[POST]
{{baseUrl}}api/v1/messaging/sms
ParameterTypeDescription
AppIdstringyou would need to create an app to get your app ID
Authorizationstringpublic secret key e.g prod_sk_1T1eSavlZxy02OT3OWlvbxK4G

Body parameter

ParameterTypeDescription
destinationnumberPhone number of recipient
messagestringbody of message
channelstringcan be either whatsapp or sms
sender_idstringSender ID
prioritybooleanIndicate if you want to send in priority mode. Default is false

πŸ“˜ NOTE

There is the priority feature. You can automatically resend messages via any of the channels if one doesn’t get delivered. If the priority is set to true, the default setup is sms, and then whatsapp. You can choose to set it however way you want in the channel parameter

Sample response

Response
{
    "entity": {
        "status": true,
        "mobile": "2348054810238",
        "message_id": "true_2348468713228@c.us_3EB092F69064FG74BC76",
        "reference_id": "81512"
    }
}

Request Sender ID

Register your Sender ID with this endpoint, you will get an email once it has been approved, all messages sent before then will be delivered with the default sender ID

Request

[POST]
{{baseUrl}}api/v1/messaging/sender_id

Body parameter

ParameterTypeDescription
sender_idstringSender ID you wish to register, should be less than 11 Characters

πŸ“˜ Sender ID

Kindly Note that you can only register your sender Id on production only.

Sample response

Response
{
  "entity": {
    "message": "Sender ID Request Successful, you will get an email once its Activated."
  }
}

Fetch Sender IDs

Fetch the list of all your Sender IDs

Request

[GET]
{{baseUrl}}api/v1/messaging/sender_ids

Sample response

Response
{
    "entity": [
        {
            "sender_id": "Dojah",
            "activated": true,
            "createdAt": "2020-10-30T09:54:17.145Z"
        }
    ]
}