Log in

SMS webhook events and payloads

The five events and the shape of what you receive in each one.

Last updated

SMS received

Fires when the Android device receives an SMS. This is the basis of chatbots and auto-replies.

json
{
  "event": "received",
  "createdAt": "2026-08-14T10:30:45.123Z",
  "data": {
    "id": "msg_01H8Z",
    "from": "+14155550100",
    "message": "Thursday morning, if possible.",
    "receivedAt": "2026-08-14T10:30:44.000Z",
    "conversationId": "conv_9f21",
    "deviceId": "dev_oppo_cph2577",
    "inReplyTo": {
      "id": "msg_01H8X",
      "reference": "appointment_8841",
      "body": "Your appointment on 10/08 at 11:15 is confirmed.",
      "sentAt": "2026-08-14T09:02:11.000Z"
    }
  }
}

SMS sent

Fires when the phone hands the message to the network. sent, delivered and failed all carry the same shape.

json
{
  "event": "sent",
  "createdAt": "2026-08-14T10:31:02.400Z",
  "data": {
    "id": "msg_01H8X",
    "status": "sent",
    "to": "+14155550100",
    "deviceId": "dev_oppo_cph2577",
    "segments": 1,
    "encoding": "GSM-7",
    "reference": "appointment_8841",
    "createdAt": "2026-08-14T09:02:10.000Z",
    "deliveredAt": null,
    "error": null
  }
}

SMS delivered

Fires when the carrier confirms delivery to the recipient. This is the event that really confirms the message arrived.

SMS failed

Fires when the send fails. The error field carries the reason.

json
{
  "event": "failed",
  "createdAt": "2026-08-14T10:31:15.789Z",
  "data": {
    "id": "msg_01H8Y",
    "status": "failed",
    "to": "+14155550188",
    "deviceId": "dev_oppo_cph2577",
    "segments": 1,
    "encoding": "GSM-7",
    "reference": null,
    "createdAt": "2026-08-14T10:30:02.000Z",
    "deliveredAt": null,
    "error": "invalid number"
  }
}

Opted out

Fires when someone opts out. The whole message has to be one of the keywords, case-insensitive: STOP, STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT, SAIR or PARAR. "Please stop" does not count. From then on any send to that number returns 403 recipient_opted_out.

json
{
  "event": "opted_out",
  "createdAt": "2026-08-14T10:32:00.000Z",
  "data": {
    "phoneNumber": "+14155550100",
    "at": "2026-08-14T10:32:00.000Z",
    "keyword": "STOP"
  }
}

Use DroidSender from ChatGPT, Claude, Gemini or Grok. Your assistant can prepare your list, send and pause campaigns, check your phones and fix errors for you, on every plan.

See how it works

Your cookie preferences

We use essential cookies to run this site. With your consent, we also use analytics and advertising cookies to understand visits and measure our ads. You can change your choice at any time in Cookie settings. Cookie policy