Webhooks

Handle inbound SMS webhook (Sinch)

POST
/api/webhook

Inbound webhook called by Sinch when an SMS is delivered to a Tether-provisioned number. Responds 200 immediately to prevent Sinch retries and processes the message asynchronously (contact upsert, conversation routing, automation triggering, AI reply pipeline).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/webhook" \  -H "Content-Type: application/json" \  -d '{    "id": "01K608PQBF3H41EQS64AH7CE11",    "from": "14165550100",    "to": "12362320246",    "body": "Hey, can you call me back?",    "operator_id": "310010",    "received_at": "2026-05-18T15:04:01.135Z",    "type": "mo_text"  }'
{  "message": "Webhook received",  "messageId": "01K608PQBF3H41EQS64AH7CE11"}