Webhooks

Handle inbound SMS/MMS webhook (TextGrid)

POST
/api/webhook/textgrid/sms

Inbound webhook called by TextGrid when an SMS or MMS is delivered to a Tether-provisioned number. Payload shape matches Twilio (AccountSid, MessageSid, Body, From, To, NumMedia, MediaUrl*). Responds with empty TwiML.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

TextGrid inbound SMS/MMS payload. Shape matches Twilio - additional MediaUrlN / MediaContentTypeN fields appear when NumMedia > 0.

Response Body

application/xml

curl -X POST "https://example.com/api/webhook/textgrid/sms" \  -H "Content-Type: application/json" \  -d '{    "AccountSid": "AC8a1d4e0012c3b4a55f7b1c2e8a",    "MessageSid": "TG5f7b1c2e8a1d4e0012c3b4a5",    "From": "+14165550100",    "To": "+12362320246",    "Body": "Picking up at 5pm, thanks!",    "NumMedia": "0"  }'
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response></Response>"