Skip to main content
GET
/
api
/
v1
/
ws
/
info
Get WebSocket endpoint information
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://blackbox.dasha.ai/api/v1/ws/info', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "endpoints": [
    {
      "path": "<string>",
      "description": "<string>",
      "requiredParameters": [
        "<string>"
      ],
      "optionalParameters": [
        "<string>"
      ],
      "supportedMessageTypes": [
        {
          "timestamp": "2023-11-07T05:31:56Z",
          "type": "event",
          "name": "closed",
          "data": {
            "endpoint": "<string>",
            "hangupMsgId": "<string>",
            "startConnectionTimeISO": "<string>",
            "endConnectionTimeISO": "<string>"
          },
          "channelId": "<string>"
        }
      ]
    }
  ],
  "version": "<string>",
  "status": "<string>"
}

Response

Success

WebSocket endpoint information response

endpoints
object[] | null

Available WebSocket endpoints

version
string | null

WebSocket API version

status
string | null

Current status of WebSocket service