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

A2P Messaging API quickstart

Send your first SMS over the A2P Messaging API in under five minutes. Grab a token, fire one HTTP request, and point a webhook at the DLR URL to see delivery.

On this page▾
  • Sending many messages at once
  • What's next

The A2P Messaging API over HTTP needs three things: an account, an api_sms token and one POST request. This walkthrough takes you from zero to a delivered message. If you already know you need high throughput or API-driven campaigns, jump straight to Bulk sending — same token, one call, up to 100 messages per request.

  1. 1

    Create an Instasent account

    Sign up at dashboard.instasent.com/a2p and complete onboarding: Messaging API comes preselected as what you will use Instasent for.

  2. 2

    Create a token

    Your A2P Messaging API project already comes with an API key named Onboarding for the first send: copy it from the project home. To create more, select API tokens in the project's sidebar and click Create API token. Treat the token as a secret: never commit it to version control.

  3. 3

    Send your first message

    curl -X POST https://api.instasent.com/transactional/v1/sms \
      -H "Authorization: Bearer $INSTASENT_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "from": "Instasent",
        "to": "+34600000000",
        "text": "Hello from Instasent"
      }'
  4. 4

    Check delivery

    The response contains an id. Point your webhook endpoint at the DLR URL in your project settings — Instasent will POST delivery updates as the message progresses through the carrier network. See Receiving DLRs for payload details.

Sending many messages at once

For API-driven campaigns, notification fan-outs or any high-volume dispatch, switch from POST /sms to POST /sms/bulk — a single call that carries up to 100 messages, returns accepted and rejected items side by side, and queues the accepted ones on the platform for fastest-possible dispatch. The same api_sms token works.

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" }
  ]'

Full request and response shape, per-request limits, throughput model and partial-success handling live in Bulk sending.

About that from. It has to be a sender registered in your account (SMS > Senders): one that matches none is refused with 422 on from, and nothing is sent or charged. Only wholesale providers who have requested the wildcard route can send an unregistered from. Some countries also require the sender to be registered with the regulator, and your account may restrict its destination countries (422 on to). Before you route real traffic, read SMS senders.

What's next

  • SMS senders — why the from must be a registered sender, per-country registration, and what is billed when a message is blocked.
  • Destination countries & SMS pumping — the allowed and blocked country lists, and the 422 on to.
  • Wildcard route — for wholesale providers carrying transit traffic: how to request it.
  • Bulk sending — POST /sms/bulk, 100 messages per request, queue-based throughput. The endpoint to use for campaigns.
  • Authentication — token scopes, rotation, header vs. query-string.
  • Rate limits — per-endpoint limits and how to read the X-RateLimit-* headers. One bulk call counts as one request against the window.
  • Errors — status codes, error payload shape, retry guidance.
  • Receiving DLRs — webhook payload and status list.
  • SMS traffic metrics — GET /sms/metrics: volume, delivery outcomes and cost per UTC day or month, by country, network and token.
  • Reference — every endpoint, every parameter.

Product and pricing

  • SMS API
  • SMS and RCS pricing

Last updated October 7, 2026

PreviousAgentsNextBulk sending
  • Sending many messages at once
  • What's next

© 2026 Instasent

Privacy PolicyTerms & ConditionsCookie PolicyLegal Notice
All systems operational