Connecfy Docs
API v1 Dashboard

Handling Failures

"Failed" covers two different situations that call for different responses: the network rejected the message, or no result ever came back.

What the API tells you

GET /api/v1/sms/<message_id>/ will show "status": "failed", but the v1 API's response does not currently include a failure reason field — that level of detail isn't exposed outside the dashboard yet. If you need to know why a specific message failed, check that message on the dashboard rather than relying on the API response alone.

What typically causes it

  • The network rejected it — a malformed or unreachable destination number, a block on the destination side, or no coverage at the moment of sending. This is reported back quickly.
  • No result ever came back — sending started but nothing was confirmed. Connecfy retries this automatically, up to 3 attempts over several minutes, before giving up and marking the message failed with the reason Delivery timeout — see Message statuses. If it still fails after the retries, the sender number was unavailable for the whole retry window, not just briefly.

What to do about it

  • Validate destination numbers before sending where you can — a 400 at send time is cheaper to handle than a failure discovered minutes later.
  • If failures cluster around one sender number, check its availability — see Sender number unavailable.
  • Don't auto-retry a failed message by calling send again with the same content unless you mean to send it twice — failed is already the end of Connecfy's own retry attempts, not a transient state you're expected to nudge forward.

What isn't a failure

A message sitting at sent with no further update is very often fine — not every carrier returns a delivery receipt, so the absence of delivered doesn't mean anything went wrong. Only failed is an actual failure signal.