Answer a call
Use this request to answer a voice call.
POST
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/answer
Answer a channel call
Antwoord-payload
id
string
callId
string
callFlowId
string
status
string
command
string
conditions
array of object
Onderliggende attributen tonen
conditions.variable
string
Possible values: keys, speech
conditions.operator
string
Possible values: eq, ne, ==, !=, contains
conditions.value
string
Codevoorbeeld
curl -X POST 'https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/answer' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'Example 1: Answer an inbound call
Codevoorbeeld
curl -X POST "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/answer" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"
Codevoorbeeld
// N/A
Codevoorbeeld
{
"id": "b8c24efd-9646-4029-813c-9c7b13a93d00",
"callId": "861bb6cf-3edd-4ed2-837a-5cdf7b88a59c",
"command": "answer",
"status": "accepted"
}