Webhooks

Handle Twilio SMS status callback

POST
/api/webhook/twilio/sms-status

Status callback posted by Twilio for outbound SMS/MMS as the message transitions through queued / sent / delivered / failed. Updates the corresponding Message document and broadcasts a socket event so the org sees the latest delivery state.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

text/plain

application/json

curl -X POST "https://example.com/api/webhook/twilio/sms-status" \  -H "Content-Type: application/json" \  -d '{    "MessageSid": "SM5f7b1c2e8a1d4e0012c3b4a5",    "MessageStatus": "delivered",    "To": "+14165550100",    "From": "+12362320246"  }'
"OK"