Sign inGet Started

SMS events

Every message moves through a lifecycle, and Bird emits an event at each step. This page lists the full event vocabulary. How events are delivered to your endpoint (signatures, retries, and replay) is covered in the Webhooks guide.

The delivery lifecycle follows this path through the event types:

  1. sms.accepted: Bird has the message and is preparing to hand it to a carrier.
  2. sms.sent: Bird handed the message to the carrier and is awaiting a delivery receipt.
  3. An outcome event:
    • sms.delivered: The carrier confirmed delivery to the handset.
    • sms.undelivered: The carrier reported a temporary non-delivery, such as an unavailable handset.
    • sms.failed: The carrier reported a failure not expected to clear, such as an unassigned number.
    • sms.expired: The carrier stopped trying and reported the message as expired.

The outcome events surface the carrier's delivery receipt, which SMS platforms call a delivery report or DLR. Bird does not retry an undelivered or failed message, though a carrier report of a later outcome, such as sms.delivered, can still follow as a separate event. Keep the outcome with the latest timestamp.

The exception is sms.rejected, which means the message was rejected (by a policy check, a charge that could not complete, or a carrier that turned it away) before delivery was attempted. A message rejected during processing emits sms.rejected as its only event.

Bird also receives replies. When a subscriber texts one of your numbers, Bird stores the message and emits sms.received so you can act without polling. The payload includes the body, segment breakdown, both numbers, and the operator when the carrier reports it. It omits send-request fields such as tags and metadata because a received message did not originate from a send request. A received message without text, subject, or media is stored and charged without emitting sms.received.

For MMS, sms.received also includes subject and media when present. Download stored attachments from media[].url with your API credentials, then follow the redirect without forwarding credentials to storage.

The event can arrive before the message is readable. Retry an immediate 404 with exponential backoff and a retry deadline using the same message and media IDs. If the deadline is reached, retain the event for investigation. A 410 means the stored file has expired. See Get an SMS message's media.

Bird evaluates the reply against the keyword rules for that number. A supported stop keyword such as STOP records a sender-and-subscriber suppression and still emits sms.received.

sms.received also includes content_type (sms or mms), country_code when known (the sender's country, or your receiving number's country when the sender is not a phone number), and messaging_profile_id when the reply arrived on a profile's number or matched a profile's inbound.keyword.

Matching replies to outbound messages (in_reply_to_message). Both sms.received and message responses (GET /v1/sms/messages and GET /v1/sms/messages/{message_id}) can include in_reply_to_message (id, text, and sent_at), which pairs a reply with the latest recorded outbound message sent to that subscriber from the receiving number. Pairing is inferred from timing instead of reported by the subscriber. If a reply is unpaired, the payload omits in_reply_to_message. Message responses omit text and sent_at once the outbound message leaves the 30-day read window, and authentication content remains masked or **REDACTED**.

A received message is eligible for in_reply_to_message when these conditions hold (matching is best-effort: the outbound message must already be recorded after carrier handoff when the reply is processed, and reading the reply later does not recompute the link):

  • Outbound matching is enabled on the reply's attributed profile: the reply lands on a number bound to a messaging profile whose inbound.outbound_matching.enabled is true (it defaults to false), and the reply is attributed to that same profile. If a reply opens with another profile's inbound.keyword, Bird attributes the reply to that keyword's profile ahead of the receiving number's binding, so it does not match messages from the number's profile.
  • The outbound message specified that same profile: the send request included messaging_profile_id with that profile's ID. An otherwise accepted message from one of the profile's numbers without messaging_profile_id is not recorded for pairing and cannot be matched, though a reply can still match an earlier recorded message whose window is open (API keys limited to specific profiles require messaging_profile_id and return 403 without it).
  • The outbound sender is one of that profile's reply numbers: the sender (set in from or supplied by the profile) is one of that profile's inbound.numbers.
  • Matching was already enabled at acceptance: enabling matching records subsequent outbound messages without backfilling earlier history. Turning matching off stops pairing. Turning it back on resumes pairing for recorded messages still inside their captured window.
  • The reply arrives within the message's captured matching window: the window is 1h, 1d (the default), or 7d, captured when the outbound message is accepted and counted from sent_at (when Bird handed the message to the carrier). Changing time_window later applies to subsequent messages and does not shorten or extend earlier windows.

The event type is an open enum. Bird may add new event types over time, so treat an unrecognized type as a future event instead of an error. Match the types you handle and ignore the rest.

The event envelope

Events arrive at your webhook endpoint in the Standard Webhooks nested envelope described in the Webhooks guide, with type, timestamp, and a type-specific data object. The event's identity is in the webhook-id HTTP header instead of the body. That header stays stable across retries of the same delivery and is your deduplication key.

FieldDescription
typeOne of the event types on this page, such as sms.delivered
timestampWhen the event occurred (RFC 3339). Sort by this instead of arrival order because deliveries are unordered
dataEvent-specific payload

Every per-message SMS event's data contains sms_id, workspace_id, to, from, content_type, and segments, plus country_code when known (the recipient's country on outbound messages, or the sender's or receiving number's country on inbound messages) and messaging_profile_id when a profile applied. Events for a message you sent also echo tags, metadata, reference, cost_center, and template fields (template_id, template_version_id, template_content_hash, requested_language, and resolved_language) so you can route and correlate events without another lookup. tags, metadata, and the template fields are null when none applied. reference, cost_center, country_code, and messaging_profile_id are omitted when absent.

The same object includes cost, the message's recorded charge breakdown as of that event, split into transaction_amount and passthrough_amount with their sum in amount. cost is null when the event does not include a recorded breakdown, including when nothing was priced or price detail is unavailable. A null cost does not prove there was no wallet debit, and the amount may not appear later (organization billing users can check posted wallet debits in Billing and payments > Spend). Because deliveries are not ordered, merge cost one component at a time instead of replacing the whole object. For each component, keep the value from the newest envelope timestamp that includes a non-null value for that component. A recorded numeric zero counts as a value, whereas a null value does not clear an earlier recorded figure. amount sums only the components in that payload, so treat it as the charge recorded so far instead of a final total. Cost and billing covers what each component means.

Code example
{
  "type": "sms.delivered",
  "timestamp": "2026-06-10T14:30:00Z",
  "data": {
    "sms_id": "sms_01krdgeqcxet5s7t44vh8rt9mg",
    "workspace_id": "ws_01krdgeqcxet5s7t44vh8rt9mg",
    "to": "+15551234567",
    "from": "+12025550188",
    "carrier": "Example Wireless",
    "mcc_mnc": "310260",
    "cost": {
      "amount": "0.00990",
      "currency_code": "USD",
      "transaction_amount": "0.00790",
      "passthrough_amount": "0.00200"
    },
    "tags": [{ "name": "campaign", "value": "spring-2026" }],
    "metadata": { "order_id": "ord_123" }
  }
}

Lifecycle events

sms.accepted

Fires when Bird accepts the message and begins preparing to hand it to a carrier. The payload adds segments, the breakdown Bird counted at accept time. Its count is what the message is billed on. Every later outbound event repeats segments, so any event is enough to reconcile the charge.

sms.sent

Fires when Bird has handed the message to the carrier and is awaiting a delivery receipt. The payload adds carrier and mcc_mnc (the handling network and its mobile country/network code). Each field is omitted instead of null when the carrier does not report it. To measure processing latency, compare this event's timestamp with sms.accepted's.

sms.delivered

The carrier confirmed the message reached the handset. The payload adds carrier and mcc_mnc, each omitted when the receipt didn't identify them.

Failure events

Each failure event's payload adds an error object containing a Bird-stable code (for example, unreachable or blocked_by_carrier), a human-readable description, the raw carrier_error_code when supplied, occurred_at, and permanent (true, false, or null when Bird cannot determine whether the cause is permanent). SMS delivery errors lists the normalized reasons and numeric provider codes. Like sms.sent and sms.delivered, failure events also include carrier and mcc_mnc, each omitted when no carrier receipt identified them.

sms.undelivered

A non-permanent non-delivery, such as an off or unreachable handset.

sms.failed

The carrier reported a delivery failure not expected to clear. Bird does not retry the message, though a carrier report of a later outcome, such as sms.delivered, can follow.

sms.rejected

The message was rejected by Bird's checks during processing, a charge that could not complete, or a carrier that turned it away. A rejection stops the message before a delivery attempt succeeds. An exhausted wallet ends here with the error code insufficient_balance, and a message whose charge could not complete is not billed.

sms.expired

The carrier stopped trying to deliver and reported the message as expired. Expiry comes from the carrier's delivery receipt. Bird does not set an internal validity window or run a timer that expires messages. The error describes why the message was still undelivered when the carrier gave up, usually unreachable when the handset stayed off or out of coverage throughout.

Suppression events

Beyond the per-message lifecycle, sms_suppression.created reports a change to the workspace's suppression list. It fires when a suppression opens, whether a subscriber texted a stop keyword, the carrier reported an opt-out, or someone added a suppression manually. The payload includes suppression_id, the subscriber's number as destination, the originator the block binds (an SMS suppression covers the exact sender-and-subscriber pair), reason, and workspace_id so your system can mirror the list without polling:

Code example
{
  "type": "sms_suppression.created",
  "timestamp": "2026-08-25T14:52:03.192524705Z",
  "data": {
    "suppression_id": "ssu_01krdgeqcxet5s7t44vh8rt9mg",
    "destination": "+15550001234",
    "originator": "+15557654321",
    "reason": "keyword_stop",
    "workspace_id": "ws_01ky7m21hjffh9s8kq76gyb1xf"
  }
}

A workspace-wide opt-out recorded on the Preferences tab is a stated preference instead of a suppression and does not fire this event.

Reading a message's timeline

Webhooks deliver events to your systems. For a one-off review, the SMS log renders the same stream as a timeline with timestamps, carrier details, and errors. To retrieve the timeline programmatically, call GET /v1/sms/messages/{message_id}/events. To read only the latest state, call GET /v1/sms/messages/{message_id}.

Next steps

  • Webhooks & events: set up an endpoint, verify signatures, and handle retries and replay.
  • SMS log: inspect the per-message timeline these events drive.
  • Sending SMS: set the tags and metadata echoed on every event for a message you send.

Continue with the documentation, guides and examples for this topic.