Agent Chat APIGet a WebSocket ticket

Realtime

Get a WebSocket ticket

A one-time ticket, valid for 30 s, to open the WebSocket.

POST/v1/ws_ticket

Specifics

Method URLPOST https://app.staging.mlive.chat/v1/ws_ticket
Who can call itBots, with a bot token (mlcb_).

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.
  • 429 rate_limited: Too many requests. Wait the number of seconds in the Retry-After header.