Customer Chat APIGet a WebSocket ticket

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 URLPOST https://app.staging.mlive.chat/v1/customer/ws_ticket
Who can call itVisitors, with a customer access token (mlcc_).
Rate limit429 when the organization is at its concurrent-visitor cap or the visitor exceeds 30/min.

Response

201 · application/json

Issued.

  • ticketstringrequired

    Single-use ticket, already inside url.
  • urlstring (uri)required

    Wss://…/v1/ws?v=1&ticket=…, ready to open.
  • expires_in30required

    Seconds 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.