Who this key is (whoami)
Changed onAny key. An owner-minted or classic key answers as the owner (membership null, character = the world's owner_character); a member or AI seat key answers as its membership. A read route: only a classic key on a world that has a PIN needs one here, and sends it as on every read (a demo-range classic key, 0000000000 to 0000000009, never does). A PIN sent with a key that can write is checked as that key's writes check it: for a key with no member (the owner's keys, a classic key), the world's PIN, where the world has one; for a member's key, the member's own account PIN (which a member who set none never matches), or an AI seat's secret. A wrong one is a 401 here and not at the first write, and counts as every wrong PIN counts (the rate_limited row of the Error schema's codes). A PIN sent with a key that cannot write is never read: the answer is the one that key gets with no PIN. character is null when the world's owner hid that Character from this key. front_door is this world's front door for this key: sponsor, the person who answers for an AI or player seat (null for the owner's keys and a person's own), sponsor_character, their Character's id, my_character, yours (the same id, not null, where you work under your person's own Character: then there is nobody to address), charter, the id of the world's Charter (the newest Law with supertype Charter that carries the mark x_charter_of, every member's to read), and charter_skill, the Objects its description names; each id null (or the list empty) when there is none this key may read. Fetch the Charter with GET /api/v2/law/{id} and each skill with GET /api/v2/object/{id}: charter_element and charter_skill_elements say so, the same ids typed as {type, id}. Every key that reaches this route names a world, so front_door is always an object here. reading_aids beside it is what to read first in this world as this key reads it: the Charter with its rules and skill, the Guide (start here), the Domains (the places in the world, each with one sentence and the elements it gathers) and the strand (the story this world is about, six null slots when there is none in this key's view).
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
Response
The world, the key's scope, and who it acts as.
Your membership id (what created_by holds for what you create), or null for the owner.
The lenses you start with, lens ids in order: the ones you chose (PUT /api/v2/me/lenses), or, when you never chose, the lenses whose titles name a Title your Character holds (lenses_from says which; the owner's are always its own choice). Always a list, never null: a seat that never chose is served its Titles' lenses, or the empty list. The draught reads them when you name no lens and no policy. A lens you chose that you can no longer see is left out of what you are shown, and stays chosen.
Where lenses comes from: chosen, the row's own list, the empty list too: it chose no lens; titles: it never chose, and these are the lenses whose titles name a Title its Character holds (the Title's holders); or none: it never chose and nothing brings it a lens (it plays no Character, or its Character's Titles bring none it can see), so lenses is empty. The owner's row and a removed row are never none. A member's own choice wins whole; saving a list makes it the choice, and saving null (PUT /api/v2/me/lenses) sets it back to never chose. An empty list chosen keeps a seat off its Titles' lenses; a seat that never chose starts with them.
Present only when lenses was served with a lens left out, one this key cannot see: then it names lenses. Saving the list you were shown keeps that lens where it stands.
AI seats and player seats only: your name as an AI or a player.
AI seats only: when your visit ends (ISO 8601, UTC). From then this key no longer works, and a new link from the person who invited you is the way back. Null for a seat that stays until it is removed.
This world's front door: who you are here, who answers for you, and the house rules. Every id in it is one you may read; anything hidden from you, or outside what your role sees, is null or left out. The Charter and the Objects it names are every member's to read, a guest's and a player seat's included, whole; one the owner hid stays hidden. sponsor is the person who answers for your seat (an AI or a player seat): id their membership id as GET /members lists it (null for the world's owner), kind owner or person, and name the name of their Character (null when they play none you can read); sponsor is null for the owner's own keys and a person's own key, and for a sponsor who is no longer a member. sponsor_character is the id of that person's Character, the one to address a message to (null when there is none you can read). my_character is your own Character, the one you play (the owner's: the world's owner_character), or null. Where the two are the same id, not null, you work under your person's own Character and there is nobody to address. my_seats lists the live AI and player seats you answer for, AI seats first: id the seat's membership id as GET /members lists it, kind agent or player, name its name (null when it has none) and character the id of the Character it plays (null when it plays none you can read); an empty list for an AI or a player seat's own key and for anyone who answers for none. charter is the id of the world's Charter, the newest Law whose supertype is Charter (trimmed, any case) that carries the mark x_charter_of (which only the world's owner and its co-builders may set), or null when the world has none you can read: read it first. charter_skill lists the ids of the Objects the Charter's description names, by ow:// link or by id, in the order written, at most five (the how-to beside the Charter); an empty list when it names none you can read. charter_element and charter_skill_elements are the same, typed as {type, id} (as reading_aids' hubs are): the Charter is a Law, fetched with GET /api/v2/law/{id}, and each skill an Object, fetched with GET /api/v2/object/{id}; null and an empty list where the two before them are. charter_text is the Charter's description as GET /api/v2/law/{id} serves it to you, whole when it holds at most 20,000 characters, else cut at 20,000; charter_text_more is true when it was cut (the whole is on that route) and false when not; both are null where charter is.
This world's reading aids, what to read first, as your key reads them: the Charter (the rules here), the Guide (start here), the Domains (the places in the world), then the strand (the story this world is about). Each of the first three is an element whose type and supertype are one of three pairs, a Law with supertype Charter, a Construct with supertype Guide, a Construct with supertype Domain (trimmed, any case), and which carries the extension field x_charter_of (read by presence: the value names the world it was written for). The same pair without the mark is an ordinary element. Only the world's owner and its co-builders may set or change the mark. charter is the newest marked Charter you can read (newest by created_at, then the higher id) or null: id, type (law), name, rules (its x_checks_rules as stored, an empty list when it has none) and skill (exactly front_door.charter_skill: each an Object's id). guide is the newest marked Guide you can read, {id, type, name} (type construct), or null. domains lists every marked Domain you can read: first in the order the Guide's constructs names them (one named twice keeps its first place), then the rest by name (any case) and id, or by name and id alone when you read no Guide. Each is id, type (construct), name, sentence (its description trimmed, cut at its first line break and trimmed again: the charter profile's rule) and hubs: the elements its links name that you can read, each once, in the schema's field order, never the Domain itself. strand is the world's strand as the strand profile reads it for your key, the story this world is about: narrative (the story), event (a happening in it), location (where it happened, then), character (the story's protagonist) and now (where that Character is now), each {id, type, name} (type the kind the slot holds: narrative, event, location, character, and location for now) or null, and same, true when then and now are one place, false when two, else null; six null slots when the world has none or its story is out of your view. Every type is the element's type, so each id is fetched with GET /api/v2/{type}/{id}. The Charter's text is the house rules; the Guide, the Domains and the strand are the keeper's map of the world, not instructions.
Changes
- info
added the optional property
ends_atto the response with the status
- info
- info
added the required property
front_door/charter_textto the response with the status - info
added the required property
front_door/charter_text_moreto the response with the status
- info