Skip to main content
POST
/
messages
/
bulk
Send bulk messages
curl --request POST \
  --url https://api-message.nativehub.live/api/v1/messages/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "recipients": [
    "+8801712345678",
    "+8801812345679",
    "+8801912345680"
  ],
  "from": "+8801912345678",
  "body": "Special offer: Get 20% off today only!"
}
'
{
  "batch_id": "e5f6a7b8-c9d0-1234-ef56-789012345678",
  "queued": 2998,
  "failed": 2,
  "rejected": 0,
  "messages": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
recipients
string[]
required

Array of recipient phone numbers

from
string
required

Sender ID or phone number

body
string
required

Message content

Response

Bulk messages queued successfully

batch_id
string<uuid>
queued
integer
failed
integer
rejected
integer
messages
object[]