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/room

Permission required: inbound-voip-calls

Query Parameters

KeyExample ValueDescription

token*

867ad6a09fc4af29f6f1f2a9cf1deaba

The visitor token.

agentId*

6vHSSqdBHdm2

The agent ID.

direction

inbound

The direction of the call.

rid

jiuriewcnm2R4gfi

The room ID.

Example Call

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'

Example Response

{
    "success": true
}

Last updated

Rocket.Chat versions receive support for six months after release.