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

Latest commit

 

History

History
40 lines (30 loc) · 1.39 KB

File metadata and controls

40 lines (30 loc) · 1.39 KB

Start Call

{% hint style="danger" %} WebRTC is no longer supported with Omnichannel Livechat. To configure audio/video calls, see Omnichannel Audio/Video Call Configuration. {% endhint %}

Start a WebRTC audio/video call in a room.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/webrtc.callyes

{% hint style="info" %} Permission required: view-l-room {% endhint %}

Query Parameters

KeyExample ValueDescription
rid*zRAeTszXor8CCPceBThe room ID.

Example Call

{% code overflow="wrap" %}

curl --location --request GET 'http://localhost:3000/api/v1/livechat/webrtc.call?rid=123abcxyz123\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

{% endcode %}

Example Response

{
    "videoCall": {
        "rid": "123abcxyz123",
        "provider": "webrtc",
        "callStatus": "ringing"
    },
    "success": true
}