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]
Header
| Header | Type | Description |
|---|---|---|
| AppId | string | Create an app to get your app ID on dashboard here |
| Authorization | string | Private/secret key. Use <key> not Bearer <key> |
Body parameter
| Parameter | Type | Description | Required |
|---|---|---|---|
| destination | number | Phone number of recipient | required |
| message | string | body of message | required |
| channel | string | can be either whatsapp or sms | required |
| sender_id | string | Sender ID | optional |
| priority | boolean | Indicate if you want to send in priority mode. Default is false | optional |
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
Response Fields
| Field | Type | Description |
|---|---|---|
| entity | object | Contains the message delivery result |
| entity.status | boolean | true if the message was accepted for delivery |
| entity.mobile | string | Destination phone number the message was sent to |
| entity.message_id | string | Unique identifier for the sent message, used to track delivery status |
| entity.reference_id | string | Reference identifier for the message transaction |