Skip to main content
POST
/
v1
/
sms
/
batch
Send Batch SMS
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": []
  }
}
messages
array
required
Array of SMS messages (max 100). Each message has the same fields as the Send SMS endpoint.

Response

data
array
Array of successful send results with id and status.
errors
array
Array of failed messages with index and message.
{
  "success": true,
  "data": {
    "data": [
      { "id": "f47ac10b-...", "status": "sent" },
      { "id": "a23bc45d-...", "status": "sent" }
    ],
    "errors": []
  }
}