Use this api to send bulk smses to multiple receipients.
URL - http://app.bongasms.co.ke/api/send-bulk-sms
METHOD - POST
CONTENT-TYPE - application/x-www-form-urlencoded
Response : JSON
Request Parameters
Name | Desc | Type | Option |
---|---|---|---|
apiClientID | API Client ID (Provided above) | Numeric | Mandatory |
key | API Key (Provided above) | String | Mandatory |
secret | API Secret (Provided above) | String | Mandatory |
txtMessage | SMS message | String | Mandatory |
MSISDN | Comma-separated list of recipient phone numbers | String | Mandatory |
serviceID | Service ID (Provided above) - Default 1 | Numeric | Optional |
delivery_url | Url to receive delivery notifications | String | Optional |
Response Parameters
Name | Desc | Type | Option |
---|---|---|---|
status | Status of the request (222 - success, 666 - error) | Numeric | Mandatory |
status_message | Description of status | String | Mandatory |
batch_code | Code representing the batch of sent messages | String | Optional |
curl --location --request POST 'https://app.bongasms.co.ke/api/send-bulk-sms?apiClientID=605&key=SLn4VDUnPomPjzB&secret=Igp0D4Yy6BDk6riKHDl4DmbQERp14A&txtMessage=this is a message&MSISDN=254712345678,254712345678,2547123456 78,254712365678,254712345578,254712345478,254712341678,254712345278&serviceID=1'
{
"unique_id":378008604,
"status_message":"sent",
"status":222,
"batch_code":"lorem ipsum"
}