API reference
SMS
Send individual, batch and personalised SMS messages, and track delivery.
Preview documentation
Host: sms.hubtel.com. No IP allowlist needed.
Authenticate with your API ID and API Key. See Authentication and accounts.
| Operation | Request |
|---|---|
| Send an SMS with a GET request | GET /v1/messages/send |
| Send an SMS | POST /v1/messages/send |
| Send the same SMS to many recipients | POST /v1/messages/batch/simple/send |
| Send a different SMS to each recipient | POST /v1/messages/batch/personalized/send |
| Get a message | GET /v1/messages/{messageId} |
| Get a batch | GET /v1/messages/batch/{messageId} |
Response codes
The codes this service returns in ResponseCode, as documented for production. Codes shared by all payment APIs are also explained in Errors.
| Http Code | Status | Description |
|---|---|---|
200 | 0 | The request was successful and the message has been sent for onward delivery |
201 | 0 | The request was successful and the message has been sent for onward delivery |
201 | 100 | General invalid request. Returned when no data is sent or a malformed request is received |
201 | 1 | Invalid Destination address received. The recipient's phone number is not a valid phone number |
201 | 2 | Invalid Source address was sent. You need to be aware of the sender address restrictions |
400 | 3 | The message body was too long. |
400 | 4 | The message is not routable on Hubtel gateway |
400 | 5 | The delivery time specified was not a valid time. |
| 6 | The message content was rejected or is invalid. |
| 7 | One or more parameters are not allowed in the message. Details will be provided as part of the response. |
| 8 | One or more parameters are not valid for the message. Details will be provided as part of the response. |
| 12 | Payment required on account; Kindly fund your account |
401 | | The request authorization failed |
402 | | Your account does not have enough messaging credit to send the message. |
403 | | Forbidden. This means that the recipient has not given his/her approval to receive messages |
404 | | The specified message was not found. |
500 | | The request failed on the server |
502 | | Bad Gateway. The server could not find any appropriate gateway for the request. |
Validate a Voter ID POST
Checks a Voter ID card number and returns the holder's details when it matches. Use it when your verification process requires Voter ID details.
Get a batch GET
Returns the delivery status of every message in a batch. Use callback delivery updates to reduce repeated status requests.