Gather DTMF from a call
Use this request to gather DTMF - digits entered by user. Gather command can be nested with a playback or a say.
Gather DTMF from a channel call
Authorizations
HTTPRequired
Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')
Path parameters
workspaceIdstring · uuidRequired
The ID of the workspace
callIdstring · uuidRequired
The ID for a call
channelIdstring · uuidRequired
The ID for a channel
Body
maxNumKeysintegerOptional
endKeystring · enumOptionalPossible values:
timeoutintegerOptional
retriesintegerOptional
inputstring · enumOptionalPossible values:
speechLocalestring · enumOptionalDefault:
en-USExample: en-USPossible values: Responses
202
Call Command Gather was accepted for processing
application/json
400
The request did not pass validation
application/json
404
The request did not pass validation
application/json
422
The request did not pass validation
application/json
post
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/gathercurl -X POST "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/gather" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"{
"maxNumKeys": 0,
"endKey": "0",
"timeout": 0,
"retries": 0,
"input": "dtmf",
"playback": {
"media": [
"string"
],
"loop": 0,
"timeout": 0
},
"say": {
"text": "string",
"locale": [
"en-US"
],
"voice": "male",
"loop": 0,
"timeout": 0
}
}Last updated
Was this helpful?

