Webhooks

Handle inbound SMS webhook (Twilio)

POST
/api/webhook/twilio/sms

Inbound webhook called by Twilio when an SMS or MMS is delivered to a Tether-provisioned Twilio number. Persists the message and any attached media, drives automation/AI replies, and responds with empty TwiML.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/xml

application/json

curl -X POST "https://example.com/api/webhook/twilio/sms" \  -H "Content-Type: application/json" \  -d '{    "From": "+14165550100",    "To": "+12362320246",    "Body": "Hey, can you call me back?",    "MessageSid": "SM5f7b1c2e8a1d4e0012c3b4a5",    "NumMedia": "0"  }'
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response></Response>"