Bulk send

The same message to a list of numbers in a single request. Announcements, notices, campaign blasts.

POSThttps://api.mobilesasa.com/v1/send/bulk

Parameters

FieldTypeRequiredDescription
senderIDstringYesAn approved sender ID on your account.
phonesstringYesComma-separated list of recipients, e.g. "0712000001,0733000002,254700000003". Formats can be mixed.
messagestringYesThe text every recipient gets.
callbackUrlstringNoA public http(s) URL to receive this send's delivery reports, instead of your account's callback URL. Up to 255 characters. See per-send callbacks.
# Paste your token once (it starts with mbs_):
export MOBILESASA_TOKEN="mbs_your_token_here"

curl -X POST https://api.mobilesasa.com/v1/send/bulk \
  -H "Authorization: Bearer $MOBILESASA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "senderID": "MOBILESASA",
    "phones": "0712000001,0733000002,0700000003",
    "message": "Our offices will be closed on Monday for the public holiday."
  }'

Response

json
{
  "status": true,
  "responseCode": "0200",
  "message": "Accepted",
  "bulkId": "575a9c22-9ff8-4199-82a4-a26938a1aee2"
}

A bulk send returns bulkId, not messageId: one id for the whole batch. Pass it to delivery reports to get a row back per recipient.

Behaviour details

  • Invalid numbers are skipped, not fatal: the valid remainder still sends. Clean your list first if you need all-or-nothing semantics.
  • Balance covers the whole batch up front. If credits can't cover every valid recipient you get 0402 and nothing sends.
  • Duplicates within the list are deduplicated, and the daily duplicate rule applies per recipient.
  • Blacklisted (opted-out) numbers are excluded automatically.

Very large lists

The endpoint comfortably takes thousands of numbers per call. Beyond that, batch your list into chunks of ~5,000 and space the calls, or talk to us about SMPP, which is built for sustained high throughput.