Realtime
Get a WebSocket ticket
One-time 30 s ticket for the visitor WebSocket.
429 when the organization is at its concurrent-visitor cap or the visitor exceeds 30/min.
POST/v1/customer/ws_ticket
Specifics
| Method URL | POST https://app.staging.mlive.chat/v1/customer/ws_ticket |
|---|---|
| Who can call it | Visitors, with a customer access token (mlcc_). |
| Rate limit | 429 when the organization is at its concurrent-visitor cap or the visitor exceeds 30/min. |
Response
201 · application/json
Issued.
ticketstringrequiredSingle-use ticket, already insideurl.urlstring (uri)requiredWss://…/v1/ws?v=1&ticket=…, ready to open.expires_in30requiredSeconds the ticket stays valid.
Errors
- 401
unauthorized: No token, or the token expired or was revoked. - 403
forbidden: This caller may not do this. - 429
rate_limited: Too many requests. Wait the number of seconds in the Retry-After header.
Nothing found. Try a method name, such as send event.