Create event ticket
/api/events/ticketsA one-use ticket for opening the event WebSocket from a browser. Lasts sixty seconds and works once. It stands for whoever asked for it: a session, or the key in the Authorization header.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Response Body
application/json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/events/tickets"{ "ticket": "string", "expiresAt": "2019-08-24T14:15:22Z"}List event types GET
Every fact type this build knows and the caller's permissions reach. A type not listed can still arrive -- an upstream event Modbot has no name for yet -- and a prefix such as vrchat.group.* covers it.
Event socket GET
Authenticate with `Authorization: Bearer mbk_...`, or `?ticket=` from POST /api/events/tickets. Send `{"op":"subscribe","types":[...],"subjects":[...],"cursor":"..."}` within ten seconds; events arrive as `{"kind":"event","event":{...}}`. See https://docs.modbot.co/api/events-websocket/.