Developers
Bulk SMS API for campaigns and reminders
Send SMS campaigns, scheduled reminders and notices from your own software. Prices, opt-outs and limits are the same as in the web console.
20,000Max numbers per request
120Requests per minute per key
JSONRequest and response
Quick start
Send your first request
- 01Go to the API page in your account and generate a key. Keys begin with ss_.
- 02Add the header Authorization: Bearer <key> to each request.
- 03Get a price with POST /api/v1/quote, then send through POST /api/v1/messages.
Base URL
https://smssaver.ink/api/v1
Endpoints
API endpoints
| Method and path | Purpose |
|---|---|
GET /api/v1/balance | Your current balance, in USD |
GET /api/v1/countries | Covered countries with the rate per SMS (works without a key) |
POST /api/v1/quote | Price, part count and filtered numbers, without sending |
POST /api/v1/messages | Send now, or later when schedule_at is set |
GET /api/v1/messages | List of recent sends (limit, offset) |
GET /api/v1/messages/{id} | A single send and its results by country |
POST /api/v1/messages/{id}/cancel | Cancels a scheduled send that hasn't gone out and refunds it in full |
Send
Sending SMS
Pass the to field as an array of numbers, or as text with one number per line. For numbers written without +, set the country field to a two-letter country code, such as us or kr.
| Field | Details |
|---|---|
to | Who gets it. An array, or one number per line, at most 20,000 |
text | Message body, no more than 10 parts |
country | Optional. Two-letter country code for numbers without + |
schedule_at | Optional. An ISO timestamp that includes a time zone (such as 2026-12-01T09:00:00Z) or Unix seconds, between 5 minutes and 30 days from now |
client_ref | Optional. A reference of your own, 64 characters max |
Response · 201201 Created
{
"ok": true,
"campaign": {
"id": "K7Q2M9XD4TPA",
"status": "sending",
"recipients": 2,
"parts": 1,
"encoding": "GSM-7",
"cost": "0.0099",
"countries": [
{ "country": "US", "recipients": 1, "cost": "0.0038" },
{ "country": "GB", "recipients": 1, "cost": "0.0061" }
]
},
"rejected": [],
"duplicates": 0,
"opted_out": 0,
"balance": "48.9901"
}POST /api/v1/messages
curl -X POST https://smssaver.ink/api/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": ["+14155550142", "+447400123456"],
"text": "[Lumi Cafe] Tuesday deal: free dessert after 6pm. Stop: lumi.cafe/stop"
}'POST /api/v1/quote
curl -X POST https://smssaver.ink/api/v1/quote \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "to": ["+14155550142", "+819012345678"], "text": "Hello" }'Response · 200200 OK
{
"ok": true,
"recipients": 2,
"parts": 1,
"encoding": "GSM-7",
"cost": "0.0122",
"balance": "49.00",
"countries": [
{ "country": "JP", "recipients": 1, "price": "0.0084", "cost": "0.0084" },
{ "country": "US", "recipients": 1, "price": "0.0038", "cost": "0.0038" }
],
"rejected": [],
"duplicates": 0,
"opted_out": 0
}Errors
Error codes
| Code | HTTP | Cause |
|---|---|---|
unauthorized | 401 | No key, or the key is invalid |
rate_limited | 429 | Too many requests this minute |
bad_request | 400 | The request body could not be parsed |
empty_text | 400 | No message text |
too_long | 400 | Text runs past 10 parts |
no_numbers | 400 | None of the numbers are sendable |
too_many | 400 | Over 20,000 numbers in one request |
bad_time | 400 | schedule_at is outside the allowed window |
low_balance | 402 | Not enough credit for this send |
unavailable | 503 | Sending is paused at the moment, and no credit was taken |
not_found | 404 | That send id doesn't exist |
not_scheduled | 409 | The send already went out or was canceled |
Limits
- Each key can make up to 120 requests per minute.
- Money values come back as USD strings, for example "0.0047".
- A send id is a random 12-character code, not a running number.
- Number filtering and the opt-out list work the same as in the web console.