HubtelDevelopers
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.

OperationRequest
Send an SMS with a GET requestGET /v1/messages/send
Send an SMSPOST /v1/messages/send
Send the same SMS to many recipientsPOST /v1/messages/batch/simple/send
Send a different SMS to each recipientPOST /v1/messages/batch/personalized/send
Get a messageGET /v1/messages/{messageId}
Get a batchGET /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 CodeStatusDescription
2000The request was successful and the message has been sent for onward delivery
2010The request was successful and the message has been sent for onward delivery
201100General invalid request. Returned when no data is sent or a malformed request is received
2011Invalid Destination address received. The recipient's phone number is not a valid phone number
2012Invalid Source address was sent. You need to be aware of the sender address restrictions
4003The message body was too long.
4004The message is not routable on Hubtel gateway
4005The delivery time specified was not a valid time.
6The message content was rejected or is invalid.
7One or more parameters are not allowed in the message. Details will be provided as part of the response.
8One or more parameters are not valid for the message. Details will be provided as part of the response.
12Payment required on account; Kindly fund your account
401The request authorization failed
402Your account does not have enough messaging credit to send the message.
403Forbidden. This means that the recipient has not given his/her approval to receive messages
404The specified message was not found.
500The request failed on the server
502Bad Gateway. The server could not find any appropriate gateway for the request.