SMS API

Bulk SMS API a REST gateway for codes, alerts and campaigns

Send SMS from your app, store or booking system with HTTP requests and JSON. Prices, number checks and your opt-out list work the same as on the web send screen.

20,000Numbers per request
120Requests per minute
JSONRequest and response format

Quick start

First request in 3 steps

  1. 01

    Create a key

    Go to API in your account and create a key. Keys start with as_ and are displayed one time only.

  2. 02

    Add the header

    Add the header Authorization: Bearer <key> to every request.

  3. 03

    Get a quote, then send

    Call POST /api/v1/quote to see the cost. If it looks right, send the same body to POST /api/v1/messages.

Base URLhttps://allsms.store/api/v1

Endpoints

All endpoints

Seven endpoints cover everything from a quote to a cancel. Only the country list works without a key.

  • GET/api/v1/balanceYour credit balance in dollars
  • GET/api/v1/countriesPrice per SMS for each country, no key needed
  • POST/api/v1/quoteCost, parts and dropped numbers, without sending
  • POST/api/v1/messagesSends now, or at schedule_at if set
  • GET/api/v1/messagesRecent sends, paged with limit and offset
  • GET/api/v1/messages/{id}One send with results by country
  • POST/api/v1/messages/{id}/cancelCancels a scheduled send with a full refund

Sending

Send request

Put recipients in the to field, as an array or as one string with one number per line. If some numbers have no +, set country to a default code such as us or kr.

FieldDescription
toRecipients: array or line-separated string, up to 20,000
textMessage text, up to 10 parts
countryOptional. Country code for numbers without +
schedule_atOptional. When to send: ISO 8601 with a time zone (2026-12-01T09:00:00Z) or Unix seconds, from 5 minutes to 30 days ahead
client_refOptional. Your own reference, up to 64 characters
Response · POST /api/v1/messages201
{
  "ok": true,
  "campaign": {
    "id": "K7Q2M9XD4TPA",
    "status": "sending",
    "recipients": 2,
    "parts": 1,
    "encoding": "GSM-7",
    "cost": "0.011",
    "refunded": "0.00",
    "sent": 0,
    "failed": 0,
    "queued": 2,
    "test": false,
    "client_ref": null,
    "scheduled_at": null,
    "created_at": "2026-11-25T09:00:00.000Z",
    "finished_at": null,
    "countries": [
      { "country": "US", "recipients": 1, "cost": "0.0043",
        "sent": 0, "failed": 0, "queued": 1 },
      { "country": "GB", "recipients": 1, "cost": "0.0067",
        "sent": 0, "failed": 0, "queued": 1 }
    ]
  },
  "rejected": [],
  "duplicates": 0,
  "opted_out": 0,
  "balance": "48.989"
}
POST /api/v1/messages
curl -X POST https://allsms.store/api/v1/messages \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": ["+14155550142", "+447400123456"],
    "text": "Your order #A2847 has shipped."
  }'
POST /api/v1/quote
curl -X POST https://allsms.store/api/v1/quote \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "to": ["+14155550142", "+819012345678"], "text": "Hello" }'
Response · POST /api/v1/quote200
{
  "ok": true,
  "recipients": 2,
  "parts": 1,
  "encoding": "GSM-7",
  "characters": 5,
  "too_long": false,
  "too_many": false,
  "cost": "0.0139",
  "balance": "49.00",
  "countries": [
    { "country": "JP", "recipients": 1, "price": "0.0096", "cost": "0.0096" },
    { "country": "US", "recipients": 1, "price": "0.0043", "cost": "0.0043" }
  ],
  "rejected": [],
  "duplicates": 0,
  "opted_out": 0
}

Errors

Error codes

CodeHTTPMeaning
unauthorized401Missing or invalid key
rate_limited429Per-minute request limit reached
bad_request400Request body could not be read
empty_text400Message text is empty
too_long400Text is longer than 10 parts
no_numbers400No valid numbers to send to
too_many400More than 20,000 numbers
bad_time400schedule_at is outside the allowed range
low_balance402Not enough credit
unavailable503Sending is paused, nothing was charged
not_found404No send with that id
not_scheduled409The send already went out or was canceled

Limits and rules

  • Each key can make 120 requests per minute.
  • Amounts are returned as dollar strings, for example "0.0047".
  • A send id is a random 12-character code, not a counter.
  • Number checks and opt-out rules are the same as on the web send screen.
Create an API key