call.answered
streaming.started
, streaming.stopped
or streaming.failed
if stream_url
was setrecord
parameter is set to record-from-answer
, the response will include a recording_id
field.curl --location --request POST '/calls//actions/answer' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"send_silence_when_idle": true,
"webhook_url": "https://www.example.com/server-b/",
"webhook_url_method": "POST"
}'
{
"data": {
"recording_id": "d7e9c1d4-8b2a-4b8f-b3a7-9a671c9e9b0a",
"result": "ok"
}
}
Authorization: Bearer ********************