Play sessions
Play sessions overlapping the range, newest first (activity). Default: the last 30 days.
Authorization
bearerAuth An API key from the hub’s API keys page.
In: header
Path Parameters
The account's public id (opaque, base62), as id in /accounts.
^[0-9A-Za-z]{1,64}$Query Parameters
Start of the range (ISO-8601 date-time). Default: to − 30 days.
date-timeEnd of the range (ISO-8601 date-time). Default: now.
date-timeResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/accounts/4fT9kQ2mXa7B/sessions"{ "data": { "account": { "id": "string", "name": "string" }, "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "sessions": [ { "id": "string", "started_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "last_seen_at": "2019-08-24T14:15:22Z", "duration_ms": 0, "worlds": [ 0 ], "end_reason": "logout" } ] }, "meta": { "generated_at": "2019-08-24T14:15:22Z" }}Event cursor feed, or the events of a time range GET
Loot, level-ups, deaths, collection log, diaries, combat tasks and superiors of the accounts whose `events` the key may read, ordered by the order the hub stored them, for the Discord bot and Home Assistant automations. **Cursor semantics.** Start with `cursor=now` (no events, just the current cursor) or without a cursor (the newest `limit` events, default 100, at most 500). Then always pass the previous `meta.next_cursor`: you get the events after it, oldest first, and a new cursor. Fewer than `limit` events means "caught up for now". The cursor always moves forward, also past events your filters leave out, and is unchanged while nothing new has arrived. Cursors are opaque; keep them as strings. The feed only serves events stored at least 10 s ago, so a cursor can never skip an event that is still being committed: expect an event 10–15 s after the hub received it. `occurred_at` is when it happened in game, `received_at` when the hub got it (the plugin may resend events up to ~10 minutes late). **Time range.** With `from` and/or `to` the request reads history instead of following the feed: the events with `occurred_at` from `from` to `to` (both included; `to` defaults to now, `from` to 30 days before `to`), **newest first**, with the same accounts, filters, `limit` and event shape. `meta.next_cursor` is the cursor of the next (older) page, or `null` when the page is the range’s last; pass it as `cursor` with the same `from`, `to` and filters. Pages are keyed on the event’s time and storage order, so every event is visited once, events of the same instant included, whatever arrives meanwhile. There is no settle margin here: an event can appear a few seconds before the feed serves it, and one that arrives late in a stretch already paged isn’t revisited. The two modes have different cursors: `cursor=now` or a feed cursor with `from`/`to`, or a range cursor without them, is a 400.
One day of an account GET
What the account did on a date, or on up to 7 dates (`from`/`to`), in one call: `sessions` (`activity`), `gains` (`stats`), `events` counted by type with the most valuable and the collection log slots (`events`), and `places`: the trail as stays at named places, with the time spent at each (`location_history`). Each section is what its own endpoint serves for the same instants and is left out when the key can’t read its category; the account 404s when the key reads none of them. A date is a calendar date in the key creator’s time zone (their settings; UTC for a service key), as `timezone` says. Default: today, up to now. A date that hasn’t started yet is a 400. The MCP tool `day_summary` answers with this.