Changes

Every write to the world, in order: each change is an upsert (with the element) or a delete, with its type, id and change_seq. Pass the response's cursor back as since until has_more is false, then poll with it to stay in sync. An account token names its world with world; any other query parameter, and world beside a key, is a 422.

get/api/v2/changes

Request

  • Base URL
    https://www.onlyworlds.com
  • Auth
    • API key in header API-Key
    • or API key in header API-Key and API key in header API-Pin
    • or HTTP bearer

Query parameters

since, string

Where to start: the cursor of the previous page, passed back as is, or an integer (changes after that change_seq). Omit it to read from the beginning. Anything else is a 422. (The element lists page with cursor; this feed takes since.)

limit, integer

Page size, 1-1000. Over 1000 is a 422, not clamped.

head, boolean

true: only the feed's current position (cursor and head, no changes), to start following from now. since, limit and after are ignored. To poll it cheaply, send back the ETag it answered ("<head>:<epoch>", - for no epoch) as If-None-Match: while neither has moved the answer is a 304 with no body and the same ETag, and a 304 is refunded against your request budget, so a quiet room costs nothing (RateLimit-Remaining on the 304 already says the refunded number). The refund holds for your first 120 304s in a minute; past that, a 304 costs one like any request. A poll with no tag, or a tag that no longer matches (a 200 with the new one), costs one. A 304 carries no body, so after a 409, poll once with no tag (the 200 says why your view moved), then send tags again. The page read (head absent or false) carries no ETag and is always counted.

after, string date-time

Only the changes made at or after this time (ISO 8601, e.g. 2026-10-21T09:00:00Z; a time with no offset is UTC; send a + offset as %2B): an upsert whose updated_at, or a delete whose deleted_at, is at or after it. A filter, not a position: the order, cursor, has_more and head are as without it, and to read the whole window pass cursor back as since with the same after until has_more is false. Anything that is not a date and time is a 422 naming after.

world, string uuid

With an account token: the world whose feed to read, by id; the token reads as its grant there, and with no grant there it reads nothing (a 404). Not read with a key (a key names its world): beside one it is a 422.

Headers

If-None-Match, string

With head=true only: the ETag of your last head read. A match answers 304 with no body (see head). The 200's tag may carry the W/ prefix (a compressed body's tag is weak, as HTTP allows); send it back exactly as received. A client that strips or compares tags is outside the contract: the match is the server's.

Response

A page of the change feed, oldest change first (by change_seq, then id).

ChangesPage required

One page of the feed. To sync: start without since (or since=0), apply each change in order, pass cursor back as since until has_more is false, then keep polling with it. On 409 resync_required, pull again from since=0.

cursor, union required

Pass back as since, as is (treat it as opaque). An empty page asked with no cursor gives the feed's position as its cursor.

changes, union[] required

An upsert carries the whole element; a delete carries only its type, id, deleted_at, and who deleted it through which door and client (deleted_by, deleted_via, deleted_client). An element hidden or unhidden while you still see it (you are the owner, a co-builder, or the member who made it) comes as an upsert at that act's position, with changed_at, changed_by and changed_via saying when, who and through which door; its body carries hidden: true after a hide and no hidden after an unhide. A delete also says why (reason): deleted, or hidden for an element hidden from you. A hidden row reaches you only for a hide made after your view last started (you joined, or your epoch last moved), whatever cursor you send. It may still name an id you never held (an element made and hidden while you were not reading): drop it like any delete of an unknown id.

has_more, boolean required
head, integer required

The world's change_seq as this page was read. The page holds no change above it, so its cursor is never past it unless the cursor you sent was; a change made while the page was being read comes on a later read from cursor. A cursor of yours past it is stale (the world was rewound): pull again from since=0.

epoch, integer nullable required

A guest's view epoch (the third part of its cursor), null for everyone else but a contributor's (person or seat), which carries one too. It moves when the reader's view changes with no change_seq move (a Character given or taken, a role, an element hidden from a guest or unhidden): a tip whose epoch differs from the one you last applied means walk again, and the walk answers 409 resync_required. Read it here, never out of the cursor.

epoch_reason, 'role' | 'view' | 'null' nullable required

Why epoch last moved, beside it (null when epoch is null). role: your own role or membership moved; keep what you hold that a walk from since=0 does not name. view: what you may see moved (a delete, a hide, an unhide, a Character given or taken); drop it. view too for an epoch that never moved. It names the last move only: when your tip is more than one epoch past the one you applied, walk with your cursor, and the 409's reason covers every move since it (role if any was). A tool never empties a copy on its own.

Changes

    • info

      the endpoint scheme security AccountToken was added to the API

    • info

      added the new optional query request parameter world

    • info

      added the non-success response with the status