HubtelDevelopers
Guides

SMS delivery and errors

Check whether a message reached the phone, and interpret delivery states, HTTP status codes and SMS response codes.

Updated 27 Nov 2026

A successful send only means Hubtel accepted the message. Check its status with the message ID to find out whether it reached the phone.

Before you start(1)
  • Business SMS Client ID and Client Secret

    A sender ID is the name your customers see as the sender of your SMS, such as your business name. Hubtel approves each sender ID, and you create a Client ID and Client Secret for each approved one.

    SMS API keys

Don't have these yet? Start in the sandbox with your test keys while you set them up.

Save the messageId (and batchId, when returned) from each send. Check delivery with the same credentials you sent with:

LookupEndpointReference
MessageGET https://sms.hubtel.com/v1/messages/{messageId}Message status
BatchGET https://sms.hubtel.com/v1/messages/batch/{batchId}Batch status
curl https://sms.hubtel.com/v1/messages/03109b26-5be1-444d-8189-9f6fa2b4550a \
  -u "$HUBTEL_SMS_CLIENT_ID:$HUBTEL_SMS_CLIENT_SECRET"
{ "rate": 0.0309, "batchId": null, "messageId": "03109b26-5be1-444d-8189-9f6fa2b4550a", "content": "Your order is ready for pickup.", "status": "Delivered", "updateTime": "2023-05-30T16:43:15", "time": "2023-05-30T16:43:13.7208383Z", "to": "233249111411", "from": "KofiBooks" }

A batch result has the batchId and a data array of message results.

Delivery states

Statuses come from the network operator's delivery receipts.

StateMeaning
DeliveredThe operator reports delivery to the recipient's phone.
SentForwarded to the operator; final delivery is still pending. Check again later.
PendingQueued at Hubtel before forwarding to the operator.
BlacklistedThe operator has blocked bulk messages for the recipient, including opt-out cases.
Undeliverable / Failed, Unrouteable / Error, RejectedDelivery failed, for example because the phone was off or out of coverage. The exact status depends on the operator.
NACK / 0x0000000b / Invalid Destination AddressCheck the recipient number and formatting.
NACK / 0x0000000a / Invalid Source AddressCheck the sender, including the 11-character limit.

HTTP and SMS response codes

A 2xx response can still carry a nonzero SMS status, so check both.

HTTPSMS statusMeaning
200 or 2010Accepted for onward delivery; this does not confirm handset delivery.
201100Missing data or malformed request.
2011Invalid destination address.
2012Invalid source address.
4003Message body too long.
4004Message cannot be routed.
4005Invalid delivery time.
—6Rejected or invalid content.
—7A parameter is not allowed; inspect the response details.
—8An invalid parameter was supplied; inspect the response details.
—12Fund the messaging account.
401—Authentication failed.
402—Insufficient messaging credit.
403—Recipient has not approved receipt of the message.
404—Message not found.
500—Server error.
502—No suitable gateway was found.

On this page