# Send SMS batch

Send one message to one or many numbers, immediately or scheduled. Provide a source of replies by **either** setting `senderid` (non-priority) **or** `priority=true` with one of `repliesperuserid` or `manageownreplies`+`virtualname`. Also available over `GET` for testing (~5 numbers). Returns an XML batch-send result; check `<status code>` is `0` (or `1` for partial success).

Endpoint: POST /smsbatch/sms
Version: 2.62
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    apiKey in header X-API-Key

## Request fields (application/x-www-form-urlencoded):

  - `specversion` (string)
    Spec version coded against. The gateway keys on major version 2.
    Example: 2.61

  - `commsversion` (string)
    Communication protocol/version (advisory, for support).
    Example: 1.0

  - `appversion` (string)
    Sending-application version (advisory, for support).
    Example: 1.0

  - `batchref` (string, required)
    Client batch reference (max 80 alphanumeric). Reusable across sends.
    Example: Finance-2026-05

  - `batchid` (string, required)
    Unique id within the batchref (max 20 alphanumeric).
    Example: 1

  - `message` (string, required)
    Message text. Single SMS max 160 chars; longer messages split into segments (see `concat`/`maxparts`). URL-encode non-GSM characters.
    Example: Your statement is ready

  - `cell` (string, required)
    One or many numbers, comma-separated, each optionally prefixed with an identifier (use a `|` when the identifier contains digits).
    Example: 27821234567, Jane Doe | 27821234568

  - `senderid` (string)
    Source/from address (max 11 alphanumeric) for non-priority sends. A numeric, reply-capable senderid must start `27`. Must not be used with `priority`.
    Example: eCommunicate

  - `priority` (string)
    Prioritise the batch. Requires `repliesperuserid` or `manageownreplies`.
    Enum: "true"

  - `repliesperuserid` (string)
    One reply path per userid. Mutually exclusive with `manageownreplies`.
    Enum: "true"

  - `manageownreplies` (string)
    Multiple reply paths via virtual names. Requires `virtualname`.
    Enum: "true"

  - `virtualname` (string)
    Client-chosen virtual name (max 50), required with `manageownreplies`.
    Example: campaign-vn1

  - `concat` (string)
    Concatenate long messages into one handset SMS (153 chars/part, max 9).
    Enum: "true", "false"

  - `maxparts` (integer)
    Maximum message segments (default 9). `0`/`1` rejects anything over 160 chars.
    Example: 3

  - `flash` (string)
    Send as a flash SMS (shown on screen, not stored).
    Enum: "true"

  - `unicode` (string)
    Send Unicode (UCS-2). 70 chars/SMS, 67/part concatenated.
    Enum: "true", "false"

  - `rdr` (string)
    Request Delivery Receipt for each SMS. Required to later pull receipts or use delivery emails/summaries.
    Enum: "true", "false"

  - `dsm` (string)
    Don't save message (not stored in the database). Not usable with `futuredatetime`.
    Enum: "true"

  - `futuredatetime` (string)
    Hold the batch until this time (`YYYY-MM-DD hh:mm:ss`).
    Example: 2026-05-22 13:10:00

  - `expirydatetime` (string)
    Cancel (and refund) if not sent by this time (`YYYY-MM-DD hh:mm:ss`).
    Example: 2026-05-31 13:10:00

  - `validity` (integer)
    SMSC retry window in minutes (default 10080 = 7 days).
    Example: 10080

  - `fromemail` (string)
    From address used for all system-originated emails for this batch.
    Example: noreply@yourcompany.co.za

  - `sendingemail` (string)
    Enable send-confirmation emails (master switch).
    Enum: "true"

  - `sendingemailaddress1` (string)
    First send-confirmation email address.
    Example: ops@yourcompany.co.za

  - `deliveryemail` (string)
    Enable delivery-receipt emails (master switch; requires `rdr`).
    Enum: "true"

  - `deliveryemailaddress1` (string)
    First delivery-receipt email address.
    Example: ops@yourcompany.co.za

  - `replyemail1` (string)
    Email address notified per reply SMS.
    Example: replies@yourcompany.co.za

  - `failuretosendemailaddress` (string)
    Notified if the batch fails before send-out.
    Example: alerts@yourcompany.co.za

  - `urlreceipts` (string)
    URL the gateway POSTs receipts to (requires `rdr`). Not yet supported.
    Example: https://your-server.com/receipts

  - `urlreplies` (string)
    URL the gateway POSTs replies to (requires a replies keyword). Not yet supported.
    Example: https://your-server.com/replies

## Request examples:

  - `Non-priority send with a sender id` (unknown)

  - `Priority send with per-userid replies` (unknown)

## Response 200:

  - `200` (unknown)
    XML batch-send result.

