Before you start
Before you can send your first SMS, make sure you have the following in place:Register a Sender ID
A Sender ID is the name or number displayed to recipients as the message sender. Register and get your Sender ID approved in the Zexa dashboard before sending. See Sender IDs for full instructions.
Check your credit balance
Each SMS segment consumes one credit from your account balance. Make sure your account has sufficient credits before sending. Top up your balance at app.zexa.ao.
You must have a registered and approved Sender ID before sending any SMS messages through Zexa.
Send an SMS via API
Send aPOST request to /messages with "channel": "sms" to dispatch an SMS message.
201 response with the message object:
Message limits
Keep the following character limits in mind when composing SMS messages:- Single segment: Up to 160 characters using standard GSM-7 encoding.
- Multi-part SMS: Messages longer than 160 characters are automatically split into multiple segments. Each segment consumes one credit.
- Unicode messages: Messages containing Unicode characters (e.g., Arabic, Chinese, emoji) have a reduced per-segment limit of 70 characters.
Delivery statuses
After a message is sent, Zexa updates its status as it moves through the delivery pipeline. Use theid returned at send time to poll for status updates or configure a webhook.
| Status | Description |
|---|---|
queued | The message has been accepted and is waiting to be dispatched to a carrier. |
sent | The message has been handed off to the carrier for delivery. |
delivered | The carrier has confirmed the message was delivered to the handset. |
failed | The message could not be sent due to an error (e.g., invalid number). |
undeliverable | The message reached the carrier but could not be delivered to the handset. |
Next steps
Bulk SMS Campaigns
Send SMS to large contact lists with scheduling, personalisation, and delivery reporting.
Sender IDs
Register and manage the Sender IDs displayed to your SMS recipients.
