# SMS (/docs/api/v1/sms)



{/* Generated by scripts/gen-api-meta.mjs from the service catalogue. Do not edit. */}

| Operation | Request |
|---|---|
| [Send an SMS with a GET request](/docs/api/v1/sms/send-sms-quick) | `GET /v1/messages/send` |
| [Send an SMS](/docs/api/v1/sms/send-sms) | `POST /v1/messages/send` |
| [Send the same SMS to many recipients](/docs/api/v1/sms/send-sms-batch) | `POST /v1/messages/batch/simple/send` |
| [Send a different SMS to each recipient](/docs/api/v1/sms/send-sms-personalized) | `POST /v1/messages/batch/personalized/send` |
| [Get a message](/docs/api/v1/sms/get-message) | `GET /v1/messages/{messageId}` |
| [Get a batch](/docs/api/v1/sms/get-message-batch) | `GET /v1/messages/batch/{messageId}` |

## Response codes

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