Answer a call

Use this request to answer a voice call.

Answer call

Answer a channel call

POST/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/answer
Authorization
Path parameters
workspaceId*string (uuid)

The ID of the workspace

callId*string (uuid)

The ID for a call

channelId*string (uuid)

The ID for a channel

Response

Call Command Answer was accepted for processing

Body
idId-2 (string (uuid))
callIdId-2 (string (uuid))
callFlowIdId-2 (string (uuid))
statusstring
commandstring
Request
const response = await fetch('/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/answer', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer jwt"
    },
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "callId": "123e4567-e89b-12d3-a456-426614174000",
  "callFlowId": "123e4567-e89b-12d3-a456-426614174000",
  "status": "text",
  "command": "text"
}

Example 1: Answer an inbound call

curl -X POST "https://nest.messagebird.one/workspaces/8bc02f53-87ac-48d2-b4fd-c2cf856a305f/channels/880d8171-cbab-47bb-81b6-b1a0902da136/calls/4fc2edf7-68f5-437a-89eb-3ce0095409d6
/answer" \
     -H 'Authorization: Bearer {Token}'

Last updated