WebSocket
Stream ticket
POST/v2/stream/ticketBusiness
Mint a single-use connection ticket, valid for 30 seconds. Authenticated, rate-limited and counted like any other /v2 call. No request body.
Response
- data
{ ticket: string; url: string; expiresInSeconds: number }- errors
- 403 ws_not_available — your plan has no WebSocket access
Every /v2 call can also answer the common errors.
ExampleTry it →
$ curl -X POST -H "Authorization: Bearer sk_live_…" https://api.sportsapi.app/v2/stream/ticket { "data": { "ticket": "8373e1…", "url": "wss://api.sportsapi.app/?ticket=8373e1…", "expiresInSeconds": 30 } }