Webhooks

Handle Twilio answering machine detection

POST
/api/webhook/calls/twilio/amd

AMD callback posted by Twilio with the AnsweredBy classification (human, machine_start, machine_end_beep, machine_end_silence, fax, unknown). Stamps the result on the Call record and may trigger a voicemail-drop or missed-call follow-up depending on automation settings.

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/calls/twilio/amd" \  -H "Content-Type: application/json" \  -d '{    "CallSid": "CA5f7b1c2e8a1d4e0012c3b4a5",    "AnsweredBy": "machine_start",    "MachineDetectionDuration": "2400"  }'
"OK"