All requests must include the
Authorization: Bearer YOUR_API_KEY header. Requests and responses use Content-Type: application/json.Endpoint
Request
Request Body Parameters
Recipient phone number in E.164 format (e.g.
+233201234567). Ghana numbers follow the pattern +233XXXXXXXXX.Your registered and approved Sender ID. Maximum 11 alphanumeric characters. The Sender ID must have
status: "approved" before you can use it to send messages.The SMS message body. Messages longer than 160 characters are automatically split into segments — each segment consumes 1 credit.
An HTTPS URL to receive delivery status webhook events for this message. The URL must be publicly reachable.
Response
200 — Success
Response Fields
Indicates the outcome of the request. Either
"success" or "error".Unique identifier for this message. Use this value to query delivery status via the Delivery Reports endpoint.
The recipient phone number exactly as you provided it.
The Sender ID used for this message.
The number of SMS segments the message was split into. Messages up to 160 characters use 1 segment; longer messages are split into 153-character segments.
The number of credits consumed for this send. Equal to the number of segments.
Your account’s remaining credit balance after this send.
Error Responses
| HTTP Status | Error Code | Description |
|---|---|---|
401 | unauthorized | Your API key is missing, invalid, or revoked. |
400 | invalid_recipient | The to number is not a valid E.164 phone number. |
400 | invalid_sender_id | The from Sender ID is not registered or is not yet approved. |
422 | insufficient_credits | Your account does not have enough credits to send this message. |