Answer command must be issued before the
gather_using_audio` command.call.playback.started
call.playback.ended
call.dtmf.received
(you may receive many of these webhooks)call.gather.ended
curl --location --request POST '/calls//actions/gather_using_audio' \
--header 'Content-Type: application/json' \
--data-raw '{
"audio_url": "http://example.com/message.wav",
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"inter_digit_timeout_millis": 10000,
"invalid_audio_url": "http://example.com/message.wav",
"maximum_digits": 10,
"minimum_digits": 1,
"terminating_digit": "#",
"timeout_millis": 10000,
"valid_digits": "123"
}'
{
"data": {
"result": "ok"
}
}
Authorization: Bearer ********************