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 Method | URL | Requires Auth |
---|---|---|
GET | /api/v1/voip/room | yes |
{% hint style="info" %}
Permission required: inbound-voip-calls
{% endhint %}
Key | Example Value | Description |
---|---|---|
token * | 867ad6a09fc4af29f6f1f2a9cf1deaba | The visitor token. |
agentId * | 6vHSSqdBHdm2 | The agent ID. |
direction | inbound | The direction of the call. |
rid | jiuriewcnm2R4gfi | The room ID. |
{% 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 %}
{
"success": true
}