Message statuses
Every message, sent or received, has exactly one status at any moment. Outbound and inbound messages use the same field but reach it from opposite directions.
Outbound
| Status | Meaning |
|---|---|
| queued | Accepted and waiting to be sent from its sender number. Held until send_at if you set one. |
| sending | Being sent now. |
| sent | Handed to the mobile network. |
| delivered | The destination network returned a delivery receipt. |
| failed | The message could not be sent, and every automatic retry has been used. |
Delivered isn't universalNot every network sends a delivery receipt back. A message that stays at sent with no further update has very often arrived; the absence of delivered is not evidence of failure.
How a message reaches failed
- The network rejected it. A malformed or unreachable number, a block on the destination side, or no coverage at the moment of sending. This is reported back quickly.
- No result came back. If a message is picked up and nothing is reported for about 3 minutes, Connecfy queues it again. This repeats up to 3 attempts in total, after which the message is marked
failedwith the reason Delivery timeout.
Inbound
Simpler: a received text is stored with a single status, received. Nothing was dispatched, so there is no queued or sending phase. See Receiving SMS.
Checking status
Read GET /api/v1/sms/<message_id>/ with your API key, or open the message in the dashboard. Connecfy does not push status changes to your server; see Building reliable integrations for a sensible polling interval. The failure reason is shown in the dashboard; the API response carries the status only.