Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 1.54 KB

File metadata and controls

31 lines (22 loc) · 1.54 KB

Create Call Center Room

Creates a VoIP room if the room ID is not passed; otherwise, it gets an existing room based on the room ID and token.

HTTP MethodURLRequires Auth
GET/api/v1/voip/roomyes

{% hint style="info" %} Permission required: inbound-voip-calls {% endhint %}

Query Parameters

KeyExample ValueDescription
token*867ad6a09fc4af29f6f1f2a9cf1deabaThe visitor token.
agentId*6vHSSqdBHdm2The agent ID.
directioninboundThe direction of the call.
ridjiuriewcnm2R4gfiThe room ID.

Example Call

{% code overflow="wrap" %}

curl --location 'http://localhost:3000/api/v1/voip/room?token=867ad6a09fc4af29f6f1f2a9cf1deaba%26agentId%3D6vHSSqdBHdm2R4gfi&agentId=6vHSSqdBHdm2R4gfi' \
--header 'X-Auth-Token: NcQtu58azANDJGqhK9h-j61l' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC'

{% endcode %}

Example Response

{
    "success": true
}