Skip to Content

SMS API

Send Single SMS

POST /v1/sms/send

NameTypeRequiredDescription
tostringYesRecipient phone number (international format)
messagestringYesSMS message text
sender_idstringNoCustom sender ID
{ "to": "+255712345678", "message": "Your verification code is 4921.", "sender_id": "SendAfrika" }

Billing: 1 credit per 160 standard characters (1 SMS part).


Send Bulk SMS

POST /v1/sms/bulk

NameTypeRequiredDescription
recipientsstring[]YesList of recipient phone numbers
messagestringYesSMS message text
sender_idstringNoCustom sender ID

Check Delivery Status

GET /v1/sms/status/:message_id

Status Values: queued, sent, delivered, failed, expired


List SMS Logs

GET /v1/sms/logs

NameTypeDefaultDescription
limitinteger10Number of logs to retrieve

Contacts

GET /v1/contacts — List contacts in the account phonebook.

GET /v1/contacts/search — Search contacts by name or phone number.


Campaigns

POST /v1/campaigns

NameTypeRequiredDescription
namestringYesCampaign name
messagestringYesCampaign message text
contact_group_idstringYesTarget contact list ID
scheduled_atstringNoUTC timestamp for scheduled delivery

Billing

GET /v1/credits/balance — Check SMS credit and wallet balance.

POST /v1/vouchers/initiate — Initiate a mobile money top-up via Snippe.

NameTypeRequiredDescription
phone_numberstringYesPhone number for USSD push
amount_tzsintegerYesAmount in Tanzanian Shillings

Supported Payment Methods: M-Pesa, Tigo Pesa, Airtel Money, Halopesa

Last updated on