Send up to 100 SMS messages in a single request.
curl --request POST \
--url https://api.unosend.co/v1/sms/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"messages": [
{
"to": "<string>",
"template_id": "<string>",
"body": "<string>",
"sender_id": "<string>",
"variables": {}
}
]
}
'{
"success": true,
"data": {
"data": [
{ "id": "f47ac10b-...", "status": "sent" },
{ "id": "a23bc45d-...", "status": "sent" }
],
"errors": []
}
}
id and status.index and message.{
"success": true,
"data": {
"data": [
{ "id": "f47ac10b-...", "status": "sent" },
{ "id": "a23bc45d-...", "status": "sent" }
],
"errors": []
}
}
curl --request POST \
--url https://api.unosend.co/v1/sms/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"messages": [
{
"to": "<string>",
"template_id": "<string>",
"body": "<string>",
"sender_id": "<string>",
"variables": {}
}
]
}
'{
"success": true,
"data": {
"data": [
{ "id": "f47ac10b-...", "status": "sent" },
{ "id": "a23bc45d-...", "status": "sent" }
],
"errors": []
}
}