Docs
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
Open dashboard
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
  • Overview
  • Create an account
  • Choose your API
  • AI & MCP
Channels
    • Senders
    • Coverage
    • Destination countries
    • Wildcard route
    • Agents
HTTP
  • Quickstart
  • Bulk sending
  • Authentication
  • Rate limits
  • Errors
  • DLRs
  • Traffic metrics
  • Full API Reference
SMPP
  • Authentication
  • Integration
SDKs
  • Node.js
  • PHP
  • Python
  • Ruby
  • Java
Legacy API
  • Overview
  • Authentication
  • Full API Reference
DashboardSupportinstasent.com

A2P Messaging API · HTTP

Bulk sending

Send many SMS in a single request via POST /sms/bulk — the A2P Messaging API's throughput endpoint for campaigns, notification fan-outs and high-volume dispatch. Covers the request and response shape, per-request limits, the queue-based throughput model, partial-success handling and when to prefer SMPP.

On this page▾
  • How a bulk request flows
  • Request
  • Response
  • Limits per request
  • Throughput, queueing and back-pressure
  • Delivery reports
  • Handling partial failures
  • HTTP bulk vs SMPP
  • Pitfalls
  • What's next

The maximum throughput you can get out of the A2P Messaging API over HTTP is through bulk. One POST /sms/bulk request carries up to 100 messages; Instasent validates each item, queues the accepted ones on the platform and dispatches them to the carrier network as fast as the routes allow. From the caller's point of view the HTTP request returns as soon as the batch is staged — the delivery loop is ours to run. That is why an API-driven campaign sent through bulk will out-perform the same campaign fired as thousands of individual POST /sms calls, regardless of how much concurrency the caller puts on the client side.

This page covers the request and response shape, the per-request limits, how the queue behaves under load, DLRs, partial-success handling, and when to reach for SMPP instead.

How a bulk request flows

 Your backend  ──POST /sms/bulk──▶  Instasent API  ──validate──▶  queue  ──▶  carrier  ──▶  handset
                      ◀──── 201 {entity, errors} ────                                        │
                                                                                             ▼
 Your webhook ◀────────────────────── DLR per message ──────────────────────────────── carrier
  • Submit a single POST with an array of up to 100 SMS items.
  • Validate: the server checks each item independently. Valid ones are accepted; invalid ones are rejected with field-level errors, and the rest of the batch still goes through.
  • Queue: accepted messages are staged on the platform's dispatch queue. The HTTP request returns immediately with the list of accepted messages under entity (each with an id) and the list of errors (rejected, with per-field messages). It does not block on carrier delivery.
  • Dispatch: the platform drains the queue concurrently against the carrier routes. Throughput is bounded by route capacity, not by your HTTP client.
  • DLR: each accepted message produces its own DLR webhook events, exactly like a single send. Match them by id.

The practical consequence for campaigns: submit as many full batches of 100 as you can afford on your rate-limit window; the queue absorbs the burst and drains at carrier speed. Trying to match that throughput through POST /sms one at a time will hit the rate-limit wall long before the queue does.

Request

Send a POST to /sms/bulk with an api_sms bearer token and a JSON array of items as the body — there is no wrapper object.

curl -X POST https://api.instasent.com/transactional/v1/sms/bulk \
  -H "Authorization: Bearer $INSTASENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '[
    { "from": "Instasent", "to": "+34600000001", "text": "Hello one" },
    { "from": "Instasent", "to": "+34600000002", "text": "Hello two" },
    { "from": "Instasent", "to": "+34600000003", "text": "Hello three" }
  ]'

Each item accepts the same fields as POST /sms:

FieldRequiredNotes
fromyesSender ID. 3–14 characters — up to 11 alphanumeric chars or up to 14 digits.
toyesDestination MSISDN in E.164 format (e.g. +34600000000).
textyesMessage body.
allowUnicodenoDefaults to false. Set to true if the text may contain non-GSM-7 characters.
clientIdnoYour own reference (≤40 chars). Must be unique per SMS. Echoed back on the response and on DLRs — use it to correlate without storing Instasent's id.

Response

201 Created with a JSON object containing two arrays:

{
  "entity": [
    { "id": "...", "clientId": null, "from": "Instasent", "to": "+34600000001", "text": "Hello one", "status": "...", "..." : "..." }
  ],
  "errors": [
    { "fields": { "to": ["This value is not valid"] } }
  ]
}
  • entity: one object per accepted message, with its own Instasent id. The key is singular but always holds an array. Track that id (or the clientId you sent) against the DLRs you will receive.
  • errors: one object per rejected item, with per-field error messages under fields. The order mirrors the input array position of the rejected items.

A 201 means the batch was processed — not that every item was accepted. Always inspect errors before assuming the whole batch went through.

Limits per request

LimitValueWhat happens when you exceed it
Items per request1 – 100413 Request Entity Too Large. Split the batch and retry.
Per-item validationSee field table aboveThe invalid item lands in errors; the rest of the batch still goes through.
Per-account rate limitSee Rate limits429 Too Many Requests. One bulk call counts as one request against the window — that is what makes bulk so much more rate-limit-efficient than looping over POST /sms.

If you need to dispatch more than 100 messages, split the payload across multiple bulk requests and fire them concurrently. Throughput scales linearly with the number of parallel batches until you reach your account's rate limit.

Batching only makes the HTTP side efficient. The dispatch queue is shared across all your traffic — so once your batches are in the queue, there is no ordering guarantee between them. If two messages in the same batch must go out in a fixed order, send them as separate calls.

Throughput, queueing and back-pressure

The dispatch queue is sized to absorb large campaigns. In practice this means:

  • Bursts are absorbed. A sudden wave of bulk submissions does not translate into rejections downstream — messages wait in the queue and drain as the carrier routes accept them.
  • Throughput is carrier-bound, not HTTP-bound. The limiting factor is the route capacity and the destination country, not your HTTP client's concurrency.
  • Higher ceilings are a conversation. If the default rate limit gets in the way of a campaign's peak, open a ticket with the expected volume and we will raise the window on your account.

For sustained carrier-grade throughput (aggregators, messaging platforms, resellers), consider SMPP instead. Same underlying pipeline, persistent TCP sessions, binary protocol — no HTTP overhead per message.

Delivery reports

DLRs work the same as for a single send: one webhook POST per status transition, keyed by the message id. See Receiving DLRs for the payload shape, the status list and how the same message can produce multiple DLRs during its lifecycle.

If you sent a clientId, it is echoed on every DLR for that message — useful when you would rather not store Instasent's id on your side.

Handling partial failures

A pragmatic pattern in your caller:

  1. 1

    Build the batch with your own correlation id

    Include clientId on every item so you can match responses and DLRs back to records on your side without an extra lookup.

  2. 2

    Fire the bulk request

    One HTTP call per batch of up to 100 messages. Check the HTTP status — 201 is the happy path.

  3. 3

    Reconcile entity and errors

    Iterate both arrays. For each item in entity, record the returned id (or your clientId) and mark the message as accepted. For each item in errors, log the per-field message and retry only if it is a transient issue.

  4. 4

    Process DLRs asynchronously

    Delivery status arrives on the webhook, not on the HTTP response. Update the final state as DLRs come in.

HTTP bulk vs SMPP

HTTP /sms/bulkSMPP
Setup costapi_sms token + one HTTP callPersistent TCP session, binary protocol, more ops overhead
Best forAPI-driven campaigns, notification fan-outs, periodic dispatch, embedded use casesAggregators, messaging platforms, carrier-grade sustained throughput
Per-message overheadHTTP request / JSONBinary PDU on an open session
Throughput ceilingBounded by rate limit on your account; excellent for burstsHighest — designed for continuous streaming
Engineering liftLowHigher (session management, retries, pluggable TLVs)

Start on HTTP bulk. Move to SMPP only when the sustained traffic profile — not a one-off burst — justifies the extra engineering lift.

Pitfalls

  • Wrapping the body in a messages object. The body is a JSON array at the top level. Wrapping it breaks validation.
  • Treating 201 as "all accepted". Always iterate errors — per-item rejections live there, not in the HTTP status.
  • Parallel POST /sms instead of bulk. You will burn the rate-limit window without raising the ceiling. The queue is what gives bulk its throughput, not HTTP concurrency.
  • Forgetting clientId. Without it you have to store Instasent's id to correlate DLRs — an avoidable dependency.
  • Batching items that need strict ordering. The queue does not preserve submission order across the platform. If ordering matters between two messages, send them separately.

What's next

  • Receiving DLRs — webhook payload, status list, per-message matching.
  • SMS traffic metrics — your traffic in aggregate, bulk included: volume, delivery outcomes and cost per UTC day or month, by country, network and token (not per batch).
  • Rate limits — how the window is counted and how to ask for more.
  • Errors — status codes and retry guidance, including 413 and 422.
  • SMPP integration — the next step up when HTTP is not enough.
  • API Reference — full shape of POST /sms/bulk and every other endpoint.

Product and pricing

  • SMS API
  • SMS and RCS pricing

Last updated October 5, 2026

PreviousQuickstartNextAuthentication
  • How a bulk request flows
  • Request
  • Response
  • Limits per request
  • Throughput, queueing and back-pressure
  • Delivery reports
  • Handling partial failures
  • HTTP bulk vs SMPP
  • Pitfalls
  • What's next

© 2026 Instasent

Privacy PolicyTerms & ConditionsCookie PolicyLegal Notice
All systems operational