Answer a call
Use this request to answer a voice call.
Answer a channel call
Authorizations
Path parameters
workspaceIdstring · uuidRequired
The ID of the workspace
callIdstring · uuidRequired
The ID for a call
channelIdstring · uuidRequired
The ID for a channel
Responses
202
Call Command Answer 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}/answerPOST /workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/answer HTTP/1.1
Host: api.bird.com
Authorization: AccessKey YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"callId": "123e4567-e89b-12d3-a456-426614174000",
"callFlowId": "123e4567-e89b-12d3-a456-426614174000",
"status": "text",
"command": "text",
"conditions": [
{
"variable": "keys",
"operator": "eq",
"value": "text"
}
]
}Example 1: Answer an inbound call
curl -X POST "https://api.bird.com/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/answer" \
-H "Authorization: AccessKey YOUR_SECRET_TOKEN"// N/A{
"id": "b8c24efd-9646-4029-813c-9c7b13a93d00",
"callId": "861bb6cf-3edd-4ed2-837a-5cdf7b88a59c",
"command": "answer",
"status": "accepted"
}Last updated
Was this helpful?

