Send a campaign
Endpoint:https://BASE_URL/api/sms/campaigns/send
Request Type: POST
Body params:
| Options | Required | Description |
|---|---|---|
| api_key | yes | string Your API key (It can be found on your Termii dashboard) |
| country_code | yes | string Represents short numeric geographical codes developed to represent countries (Example: 234 ) . |
| sender_id | yes | string Represents the ID of the sender which can be alphanumeric or numeric. Alphanumeric sender ID length should be between 3 and 11 characters (Example: CompanyName) |
| message | yes | string Text of a message that would be sent to the destination phone number |
| channel | yes | string This is the route through which the message is sent. It is either dnd, whatsapp, or generic |
| message_type | yes | string The type of message that is sent, which is a plain message. |
| phonebook_id | yes | string ID of the phonebook selected |
| schedule_sms_status | no | string To send a scheduled campaign, pass scheduled as the value |
| schedule_time | no | string The time to send scheduled campaign. This is required if scheduled_sm_status is scheduled |
Fetch campaigns
Endpoint:https://BASE_URL/api/sms/campaigns?api_key=Your API KEY
Request Type: GET
Response
Fetch campaign history
Endpoint:https://BASE_URL/api/sms/campaigns/campaign_id?api_key=Your API KEY
Request Type: GET
Response