Skip to content

Get WebSocket ticket

POST
/api/auth/ws-ticket
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.

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
}