HubtelDevelopers
API referenceSMS

Send the same SMS to many recipients

POST
/v1/messages/batch/simple/send

Sends one message to a list of recipients and returns a batchId plus a messageId per recipient.

Authorization

basicAuth
AuthorizationBasic <token>

Base64 of API ID:API Key.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/messages/batch/simple/send" \  -H "Content-Type: application/json" \  -d '{    "From": "AbrantieLai",    "Recipients": [      "233546335113",      "233501431586"    ],    "Content": "Welcome to the first ever bulk SMS via API in Ghana"  }'
{  "batchId": "165949ee-431b-4bf8-9eca-108058a8bc32",  "status": 0,  "data": [    {      "recipient": "233546335113",      "content": "Welcome to the first ever bulk SMS via API in Ghana",      "messageId": "e80133f9-e822-457c-98fb-d217bc4a1f83"    },    {      "recipient": "233501431586",      "content": "Welcome to the first ever bulk SMS via API in Ghana",      "messageId": "ebc7948a-7c81-4396-9104-9c99fc921069"    }  ]}