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>"
}Returns information about available WebSocket endpoints and their current status.
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>"
}Was this page helpful?