Get WebSocket ticket
POST
/api/auth/ws-ticket
const url = 'http://localhost:3001/api/auth/ws-ticket';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/api/auth/ws-ticket \ --header 'Authorization: <Authorization>'Generate a temporary authentication ticket for WebSocket connection. This ticket is single-use and expires in 30 seconds.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
expires_in
Seconds until expiration
integer
ticket
string
Examplegenerated
{ "expires_in": 1, "ticket": "example"}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Service Unavailable
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}