Answer
command must be issued before the gather
command.call.dtmf.received
(you may receive many of these webhooks)call.gather.ended
curl --location --request POST '/calls//actions/gather' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"gather_id": "my_gather_id",
"initial_timeout_millis": 5000,
"inter_digit_timeout_millis": 5000,
"maximum_digits": 128,
"minimum_digits": 1,
"terminating_digit": "#",
"timeout_millis": 60000,
"valid_digits": "0123456789#*"
}'
{
"data": {
"result": "ok"
}
}
Authorization: Bearer ********************