Skip to main content
GET
/
v1
/
amd
/
stream
Answering-machine detection (WebSocket)
curl --request GET \
  --url https://api.pyai.com/v1/amd/stream \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "param": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer pyai_live_... (or pyai_test_...).

Response

WebSocket upgrade, Twilio Media Streams protocol; PyAI emits amd decision events.