World
Changed onThe world named by the credential. owner_character is the owner's "this Character is me" (a Character id, or null; null too when the owner hid that Character from this key). counts: how many elements this reader may read, in all and per type (the owner's whole world, a member's view by its role, the public's for a keyless read); the ETag covers them, so a count that moved answers 200, never 304.
Extension keys: any key starting x_, atlas_ or shadow_ is a tool's own setting on the world, served at the top level of this body and kept as given (any JSON value; at most 65536 bytes in all, counted as compact UTF-8 JSON, the same cap as an element's extensions). An object or array in one may sit at most 200 levels deep, the World record as the first. What a key means is its profile's, published in schema-dist (x_names, for one: the world's own words for the 22 types). Two keys are served by their profiles' rule: x_strand (the strand profile: {narrative, event, location}, only narrative required) and x_calendar (the calendar profile: the id of the element that carries the world's calendar) are each left out for a reader who may not read the element it names, in any shape the value takes. PATCH sets each key it names and null removes one; the owner or a co-builder may write them.
origin: where the world first came from, as the tool that made it from a folder wrote it (the folder format's provenance lines, 4.2): source {server, world, at} and producer {tool, version, input}, each an object or null (null: not known). Written as the plain keys source and producer on the account's world create (POST /api/v2/account/worlds) or on PATCH, by the owner or a co-builder, and kept as given: the server checks only that each is an object or null, that no object or array in it sits more than 200 levels deep (the World record as the first), and that source.world and producer.tool are strings when present. origin itself is not writable. The owner's download keeps writing its own source line beside it.
Request
- Base URLhttps://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
- or none
Query parameters
The id of a world to read without the key that owns it, by one of two readers: keyless, the id of a world its owner opened to the public (only while the public reader is on); or with an account token, the id of a world the account holds. Keyless (the public reader), the read answers what anyone may read there: every element not hidden, with links to hidden elements stripped and its pictures as fields; no files, no roster, no tombstones (a deleted id is the plain 404), and Cache-Control: no-store. A world that is not open, and an id that names no world, are the same 404. A keyless request counts against the per-address budget. With a key, world may name the key's own world by its id (ignored); any other value, the key's own slug and its id without hyphens included, is a 422 (param world). While the public reader is off, world beside a key is no parameter: a list route refuses it as an unknown filter (422, param world) and a get route ignores it. With an account token instead of a key (Authorization: Bearer ow_a_...), world names the world it reads: the owner reads it whole, a member as its own member key reads, and an account with no access there as the public reads (the same 404 for a world that is not open). Here world may also be the world's public page address (its slug, the part after onlyworlds.com/w/): an id is tried first, any other value as a slug, which names a world only while its page is on; otherwise it is the same 404.
Headers
The ETag of the world you hold: a match answers 304, no body.
Response
The world.
The world named by the credential.
The names of the calendar's steps, e.g. ['Day', 'Week', 'Month', 'Year'].
How many time_basic_unit each step of time_format_names holds, in the same order, e.g. [1, 7, 30, 365] when the basic unit is Day.
The unit every element date and duration counts in (e.g. 'Year', 'Day'): a birth_date of 1200 is 1200 of these.
The earliest point of the world's timeline, in time_basic_unit.
The latest point of the world's timeline, in time_basic_unit.
The world's present moment, in time_basic_unit.
Free-text label for the numbers counted in the world's length units; nothing converts.
Free-text label for the numbers counted in the world's mass units; nothing converts.
Free-text label for the numbers counted in the world's distance units; nothing converts.
Whether the world's owner opened it to the public: where the public reader is on, anyone reads it with no key (?world=). Set by the owner on the world page; not writable here.
Whether a Narrative written through an AI seat is narrated by that seat's own Character, as a guest's is. Set by the world's owner on the world page; not writable here.
Whether an AI seat's writes land as proposals: on, a seat's PATCH, PUT, link edit or /bulk item on an existing element answers 202 with {"proposal": ...} and the element does not change until the owner or a co-builder accepts it; its new elements carry x_review_proposed and wait in the queue until a keeper settles them (POST /api/v2/{type}/{id}/review); it deletes only what it made. A person's key, through MCP or not, is never held. Set by the world's owner on the world page; not writable here.
The owner's "this Character is me": a Character id in this world, or null.
The world's public page address, onlyworlds.com/w/<slug>: null when the world has no page (a slug exists only while the page is on). Also a keyless ?world= value. Set by the owner on the world page; not writable here.
The world's public page as its owner set it: on, and the levers (palette, one of midnight, daylight, parchment, brass, dusk, or null for the house's; hero, one plain line; sections, the types shown in their order, empty for all in the house order; pin, one element's id, or null; index, always false for now: search engines stay off). Every key is present with the page off. Set by the owner on the world page; not writable here.
origin: where the world first came from, as the tool that made it from a folder wrote it (the folder format's provenance lines, 4.2): source {server, world, at} and producer {tool, version, input}, each an object or null (null: not known). Written as the plain keys source and producer on the account's world create (POST /api/v2/account/worlds) or on PATCH, by the owner or a co-builder, and kept as given: the server checks only that each is an object or null, that no object or array in it sits more than 200 levels deep (the World record as the first), and that source.world and producer.tool are strings when present. origin itself is not writable. The owner's download keeps writing its own source line beside it.
Moves when the world's own fields change, not on element writes.
How many elements this reader may read, in all and per type, counted as it reads them: the owner and a co-builder every element, a contributor the world less what the owner hid, a guest its own slice, a keyless read what the public reads. On every GET of the world; the PATCH answer leaves it out.
Changes
- info
added the optional property
error/limitto the response with the status - info
added the optional property
error/limitto the response with the status - info
added the optional property
error/limitto the response with the status
2 more changes in this revision
- info