Get WebSocket Ticket

Fetches a ticket required to open a WebSocket connection.

Important: This ticket is very short-lived (~20 seconds). Use it immediately to establish the WebSocket connection.

Headers
  • Authorization
    Type: string
    required

    JWT Bearer token. Format: Bearer <JWT>

Responses
  • application/json
  • application/json
Request Example for get/api/auth/getTicket
curl https://demo.api.whispchat.com/api/auth/getTicket \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9...' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "ticket": "string"
}