Skip to main content
POST
/
api
/
webhook
/
calls
/
twilio
/
amd
Handle Twilio answering machine detection
curl --request POST \
  --url https://your-instance.example.com/api/webhook/calls/twilio/amd \
  --header 'Content-Type: application/json' \
  --data '
{
  "CallSid": "CA5f7b1c2e8a1d4e0012c3b4a5",
  "AnsweredBy": "machine_start",
  "MachineDetectionDuration": "2400"
}
'
"OK"

Body

application/json
CallSid
string

Twilio call identifier (CA…) AMD classified.

AnsweredBy
string

AMD classification: human, machine_start, machine_end_beep, machine_end_silence, machine_end_other, fax, or unknown.

MachineDetectionDuration
string

Milliseconds Twilio spent classifying the answer (as a string).

Response

Plain-text acknowledgement (Twilio only checks 2xx).

The response is of type string.

Example:

"OK"