Live updates socket
/api/live/wsAuthenticate with ?ticket= from POST /api/live/tickets, or Authorization: Bearer mbk_.... ?after= is the cursor to carry on from; without it the stream starts from now. Events arrive as {"kind":"event","event":{...}}. See https://docs.modbot.co/api/live-updates/.
Query Parameters
Response Body
curl -X GET "https://example.com/api/live/ws"Create live ticket POST
A one-use ticket for opening the live updates WebSocket from a browser. Lasts sixty seconds and works once. It stands for whoever asked for it.
Live updates polling GET
Returns events after `after` at once when there are any, up to `limit` (default 100, at most 500); otherwise waits up to `wait` seconds (default 30, at most 60) for one and returns an empty list. No `after` means from now. Send the returned `cursor` back as `after`; `more` means poll again straight away. See https://docs.modbot.co/api/live-updates/.