Send Batch SMS Messages
Last updated
curl --location 'https://<hostname>/send/batch' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"recipients": [
{
"recipient": "4479000000001",
"reference": "aaa",
"meta": {
"NAME": "John",
"CITY": "London"
}
},
{
"recipient": "4479000000002",
"reference": "bbb",
"meta": {
"NAME": "Jack",
"CITY": "Dublin"
}
},
{
"recipient": "4479000000003",
"reference": "ccc",
"originator": "CustomOrigin",
"text": "Hello Michael. How are you?"
},
{
"recipient": "3392287d-7a79-4789-9ef8-7dc174836688",
"meta": {
"type": "mailinglist"
}
}
],
"text": "Hello {{NAME}}, how is the weather in {{CITY}}?",
"originator": "test",
"name": "My Campaign",
"shortenUrls": true,
"excludeDuplicates": true,
"excludeOptOuts": true,
"spreadHours": 0
}'{
"success": false,
"error": {
"name": "AuthenticationError",
"statusCode": 403
}
}{
"success": true,
"record": {
"id": "8af60d9-de7f-45ce-97f1-35a91b45277",
"type": "BatchSMS",
"scheduled": "2025-11-10T21:12:32.786Z",
"recipientCount": 5
}
}