Skip to main content

SMS billing

Every message sent through this API is charged at your agreed price and added to your invoice. Messages sent through the API never use up the portal's monthly free allowance — they are always charged for.

The cost is included in the response, so you never have to wait for an invoice to find out:

"billing": {
"billed": true, "currency": "USD", "type": "sms",
"units": 1, "totalPrice": 0.0025, "recipientCount": 1, "skippedCount": 0
}

price = unitPrice × units, always.

The two models​

Every message you send is billed one of two ways — as an sms or an mms — and the API decides which automatically. The table below shows when each applies, which rate it uses, and what changes the price. The big difference: an sms is charged per segment (so a longer message costs more), while an mms is charged once, as a flat rate.

smsmms
Whenone recipient, no attachmentstwo or more recipients, or any attachment
Rateyour SMS rateyour MMS rate
Chargedper segmentonce
Body length affects priceyesno
Recipient count affects pricen/ano
Attachment count affects pricen/ano

n/a = not applicable: an sms always has exactly one recipient and no attachments, so those two rows don't apply to it.

A long text to one person — one the carrier splits into 6 segments, roughly 800 characters — costs 6 × your SMS rate. The same body to eight people in a group thread costs one MMS rate.

Attachments alone make it an MMS

A one-line text to one person is sms. Attach a picture and it becomes mms — charged once at your MMS rate, not per segment. The recipient list didn't change; the attachment alone did it.

This can help too: a body that would cost 6 SMS segments costs one MMS rate once you attach something — sometimes cheaper. Check billing.type in the response rather than guessing from the recipient list.

A group thread is a different product, not a bulk send

Two or more numbers in to puts those people in one shared conversation they can all see and reply into — not separate texts. For separate, private messages, make one request per person (usually cheaper for short ones).

If the participants have different rates (say one US, one UK), the highest MMS rate among them is charged for the whole thread.

Segments (sms only)​

A plain SMS is billed in segments — the chunks a long text is split into, and the unit the phone carrier actually charges for. How many segments you use depends on both the length and which characters you use:

ContentSingle segmentEach segment once it splits
Plain GSM-7 text (Latin letters, digits, common punctuation)up to 160 chars153 chars
Anything outside GSM-7up to 70 chars67 chars
The encoding is chosen per message, not per character

A single character outside the GSM-7 set, anywhere in the message, drops the whole message to the 70-character limit. This is the most common surprise on a bill.

These always use the shorter 70/67-character limit:

  • Hebrew, Arabic, Cyrillic, Greek, Chinese, Japanese, Korean — any non-Latin script
  • Emoji
  • Curly quotes (’ “), en/em dashes (– —), •, … — these often slip in invisibly when text is copied from word processors or website forms

Character cost within a non-GSM-7 message differs too:

  • A Hebrew or Arabic letter costs 1 unit — 70 Hebrew characters is one segment, 71 is two.
  • Most emoji cost 2 units (surrogate pairs) — 69 Hebrew letters plus one emoji is already two segments.

Some accented Latin vowels (é è à ì ò ù) and some Greek capitals are in GSM-7 and do not force the switch. €, [, ], {, }, \, ^, ~, | are in the GSM-7 extension table and cost 2 characters each while staying on the 160/153 budget.

Hebrew example: a 100-character Hebrew message is 2 segments (100 > 70, then 100 ÷ 67 rounds up to 2). The same 100 characters in English would be 1. Budget Hebrew and Arabic content at roughly 70 characters per segment.

There is no limit on the number of segments — a longer body just costs more. The one hard limit is 2000 bytes of message body.

Skipped recipients​

When you send to several people, the API may skip some of them — it does not message them and does not charge you for them. Each skipped recipient comes with a reason telling you why, always one of the fixed codes below, so your program can check it and respond:

reasonMeaning
opted_outThe recipient replied STOP to this number. Carrier-mandated, not overridable.
duplicateThe number appeared more than once in to, after normalization.
invalidNot a dialable number.

If every recipient is skipped, you get a 200 (not 201), with an empty messages array and totalPrice: 0.

skipped[].to echoes back what you sent, so you can match it to your own records. messages[].to holds the cleaned-up numbers that were actually dialled.

How numbers are cleaned up​

Recipients are cleaned up before anything else happens:

  • Formatting removed: (347) 555-0123 → 3475550123
  • A 10-digit number gets a US/Canada 1 added: 3475550123 → 13475550123
  • International numbers are used as given: 442071234567

Duplicate-removal happens after this clean-up, so 3475550123 and 13475550123 in the same request count as one recipient — and the second is reported as duplicate.

Limits​

  • 20 recipients per request (participants in one group thread).
  • 2000 bytes of body. Note bytes: Hebrew, Arabic and other non-Latin scripts take 2–3 bytes per character in UTF-8, so the effective limit is about 1000 characters for those.
  • The sender must be a number on your account with SMS enabled — same requirement as sending from the portal's message center. Anything else is a 403. (Bulk campaigns additionally need 10DLC registration; this endpoint does not.)
  • 10 attachments, 5 MB each decoded, image/jpeg|png|bmp|gif. Attachments make the message an mms — see the table above.

Retries and double-billing​

There is no idempotency key — no way to tell the API "this is a retry, do not send it twice." If a request times out, the message may or may not have gone out.

What you gotSafe to retryWhy
4xxYesRejected before sending. Nothing charged.
5xxYesNothing sent. Nothing charged, guaranteed.
No response at allNoCheck your SMS history first.

Errors specific to pricing​

StatustypeCause
422invalid_requestNo active rate applies to a destination. The API will not send a message it cannot price — contact support to add it to your rate card.
5xxinternal_errorThe carrier's system rejected the message or did not answer. Nothing sent, nothing charged.

Delivery is not confirmation​

status: "sent" means the carrier accepted the message for delivery. It does not mean the recipient's phone has received it. Subscribe to the AccountSMS webhook for actual delivery updates.