Skip to content

Delivery statuses

GET /messages/{id} returns a message's status. Intermediate statuses change; final ones do not.

Intermediate statuses

statusDescription
newCreated, waiting in the queue.
pendingWaiting to be sent.
reservedFunds reserved, waiting to be sent.
moderationContent is being reviewed before sending.
in_progressBeing handed to the operator.
sentThe operator accepted the SMS, waiting for the delivery report.
user_stoppedPaused in the panel.
stop_flagBeing stopped.

Final statuses

statusDescription
deliveredDelivered to the phone.
viewedRead (channels with read receipts only; not used for SMS).
undeliveredThe operator reported it was not delivered. Reason in failureReason.
expiredValidity (ttl) ran out while the phone was unreachable.
errorSending failed. Reason in failureReason.
stoppedStopped by the system.
deletedDeleted.
insufficient_fundsNot sent: out of funds.
alpha_name_limitedNot sent: the sender name is not allowed on this network.

Failure reason (failureReason)

When a message did not arrive, failureReason says why:

sender_not_registeredThe sender name is not registered with the operator.
invalid_numberThe number does not exist or is invalid.
expiredThe phone was unreachable until validity ran out.
not_deliveredThe operator did not deliver the message.
rejectedThe operator rejected the message.
gateway_unavailableTemporary 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).