JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://blackbox.dasha.ai/api/v1/ws/webCall', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
Establishes a WebSocket connection for real-time web-based calls. This is not a traditional HTTP endpoint - it upgrades to WebSocket protocol.
Web integration token for authentication
Bearer token for user authentication (alternative to Authorization header)
Switching Protocols - WebSocket connection established
Was this page helpful?