Delivery statuses
GET /messages/{id} returns a message's status. Intermediate statuses change; final ones do not.
Intermediate statuses
| status | Description |
|---|---|
new | Created, waiting in the queue. |
pending | Waiting to be sent. |
reserved | Funds reserved, waiting to be sent. |
moderation | Content is being reviewed before sending. |
in_progress | Being handed to the operator. |
sent | The operator accepted the SMS, waiting for the delivery report. |
user_stopped | Paused in the panel. |
stop_flag | Being stopped. |
Final statuses
| status | Description |
|---|---|
delivered | Delivered to the phone. |
viewed | Read (channels with read receipts only; not used for SMS). |
undelivered | The operator reported it was not delivered. Reason in failureReason. |
expired | Validity (ttl) ran out while the phone was unreachable. |
error | Sending failed. Reason in failureReason. |
stopped | Stopped by the system. |
deleted | Deleted. |
insufficient_funds | Not sent: out of funds. |
alpha_name_limited | Not sent: the sender name is not allowed on this network. |
Failure reason (failureReason)
When a message did not arrive, failureReason says why:
sender_not_registered | The sender name is not registered with the operator. |
invalid_number | The number does not exist or is invalid. |
expired | The phone was unreachable until validity ran out. |
not_delivered | The operator did not deliver the message. |
rejected | The operator rejected the message. |
gateway_unavailable | Temporary problem with the operator gateway. |
How often to check
The delivery report usually arrives within seconds or minutes; when the phone is off, at the latest when ttl runs out. Check every 30–60 seconds and stop at a final status. Mind the per-second request limit (Errors and limits).