Bulk Messaging

Submit batches of messages, review individual results, and handle large sends without creating duplicates..

Before you begin

Contact TextGrid support to enable bulk messaging for your account. If access is not enabled, the endpoint returns 401 Unauthorized with a message explaining that bulk SMS access is required.

Bulk messaging uses the same sending requirements as individual messages, including messaging allowance, recipient consent, and applicable number and campaign registration requirements.

Submit a batch

Use Send Bulk Messages.

The request contains a nonempty Messages array. Each entry describes an individual message and can include its own recipient, message body, sending number, media URLs, and delivery callback URL.

See the endpoint for the complete request schema and response fields.

Review each message result

A successful request returns a JSON array of individual message results.

HTTP 200 OK does not mean every message succeeded or was delivered. A batch can contain both queued messages and failed messages. Review each result and save its message SID.

For accepted messages, monitor delivery callbacks or retrieve the message later to check its current status. Do not resubmit a message merely because it remains queued.

See Delivery Status Reference for statuses and failure descriptions.

Batch size and request limits

The bulk endpoint is designed to submit messages to many thousands of recipients in a single request.

There is no fixed maximum number of messages per request. The limit is 30 MB of request data, including message text, media URLs, and the rest of the JSON payload. The number of messages that fit depends on the size of each entry.

For MMS, media URLs contribute to the request size; the media files themselves are not uploaded in this request.

Larger requests can take longer to process. Configure your HTTP client’s timeout accordingly, and follow the guidance below if a request times out.

Bulk submission does not bypass your messaging allowance or campaign throughput restrictions. TextGrid throttles each campaign’s message throughput to stay within AT&T’s per-minute limit for that campaign.

See Messaging Limits for checking your allowance and requesting an increase.

Handle timeouts and interrupted requests

A timeout or connection failure does not mean that the entire batch was rejected. Some messages may already have been accepted even if your application did not receive the response.

Do not automatically resend the entire batch. Review message logs and any delivery callbacks to identify messages already accepted. Contact support if you cannot determine the outcome.

The same precaution applies to an unexpected server error: do not assume that no messages were processed.

Handle failures

Distinguish a request-level error from an individual message failure:

  • Request-level error: Review the HTTP response and error body. Resolve access, allowance, or request-format issues before retrying.
  • Individual message failure: Review that message’s result and correct the underlying issue. Do not resend successful or queued messages alongside it.

See Error Code Reference for common errors.


Did this page help you?