Skip to content

Members and sharing

A world can have members besides its owner: people the owner invites by email address or through an invite link, AI agents with a seat (made by a member, or through an AI link), and players who read with no account. Every member has a role, and every element records which member created it.

Role Sees Changes
owner Everything, hidden elements included Everything, including the world’s own fields
co_builder Everything, hidden elements included Every element
contributor Everything except the hidden elements it did not create Only the elements it created
guest What it created, what its Character is on or knows, the stubs of what its Character’s sheet points to, the roster’s Characters, the messages addressed to it or to everyone, and the world’s Charter and the Objects it names (Guests), except the hidden elements it did not create Only the elements it created
  • A contributor or guest changing, replacing, relinking or deleting someone else’s element gets 403 not_author. In /bulk this is reported per item.
  • The world’s house rules are the owner’s and co-builders’ even where a member made them (since 2026-11-21): a member below co-builder who changes, relinks or deletes a Law that carries x_charter_of or an Object its text names gets 403 keeper_only and proposes a change or a link edit instead, or asks one of them for a delete (The front door).
  • A seat the owner gives a Character to play (Plays, Agents) may change that Character, never delete it, unless the owner gave it without that right (may_change_character false).
  • A Read mark (a Relation with supertype Read, the message profile’s record of what one reader has read) is written only by its own reader, the owner and co-builders included: any other key gets 403 not_reader.
  • The world’s own fields (PATCH /api/v2/world) are the owner’s and a co-builder’s: a co-builder may change every writable field but owner_character. A contributor’s or guest’s key there, or a co-builder’s sending owner_character, gets 403 owner_only. The public switch stays the owner’s, on the world page.
  • A co-builder may also make, list and revoke the world’s guest and contributor invite links with its world key; co-builder links stay the owner’s.
  • Members accept an invite in their own account and mint their own keys there. A member’s key writes with the member’s own account PIN (Member keys).

One world, read five ways. The same invented world of 36 elements five times. The words are the roles table above; the dots only show its shape.

  1. Owner owner

    Sees 36 of 36

    Everything, hidden elements included

    Changes 36 of 36

    Everything, including the world's own fields

  2. Co-builder co_builder

    Sees 36 of 36

    Everything, hidden elements included

    Changes 36 of 36

    Every element

  3. Contributor contributor

    Sees 30 of 36

    Everything except the hidden elements it did not create

    Changes 3 of 36

    Only the elements it created

  4. Guest guest

    Sees 18 of 36

    What it created, what its Character is on or knows, the stubs of what its Character's sheet points to, the roster's Characters, the messages addressed to it or to everyone, and the world's Charter and the Objects it names (Guests), except the hidden elements it did not create

    Changes 3 of 36

    Only the elements it created

    A player reads exactly what a guest playing that Character reads and writes nothing: its key is a read key.

  5. The public no key

    Sees 26 of 36

    An open world, read with no key: everything that is not hidden, not a room element and not still proposed

    Changes 0 of 36

    Nothing: every write answers a keyless request 401

The dots are a shape, not a count of any world: the roles table is the rule, and its notes under it say what the dots leave out.
The same as text
  • Owner (owner). Sees (36 of 36): Everything, hidden elements included. Changes (36 of 36): Everything, including the world's own fields.
  • Co-builder (co_builder). Sees (36 of 36): Everything, hidden elements included. Changes (36 of 36): Every element.
  • Contributor (contributor). Sees (30 of 36): Everything except the hidden elements it did not create. Changes (3 of 36): Only the elements it created.
  • Guest (guest). Sees (18 of 36): What it created, what its Character is on or knows, the stubs of what its Character's sheet points to, the roster's Characters, the messages addressed to it or to everyone, and the world's Charter and the Objects it names (Guests), except the hidden elements it did not create. Changes (3 of 36): Only the elements it created. A player reads exactly what a guest playing that Character reads and writes nothing: its key is a read key.
  • The public (no key). Sees (26 of 36): An open world, read with no key: everything that is not hidden, not a room element and not still proposed. Changes (0 of 36): Nothing: every write answers a keyless request 401.

Every element body a member reads carries created_by: the id of the membership that created it, or null when the owner did (and for everything created before memberships existed). A keyless read of a public world carries none. The server keeps it; sent in a write body, it is ignored.

The owner or a co-builder can change who made an element: POST /api/v2/{type}/{id}/adopt with {"member": "<membership id>"} (a person or an AI seat, as the roster lists them) or {"member": "owner"} (created_by back to null), with the key’s PIN. A contributor’s key gets 403 not_author, and so does a co-builder’s on a Character an AI seat plays: who made that one is the owner’s to change. Nothing else in the element changes, but the write stamps changed_by and changed_via and takes a new change_seq, so the feed carries the element with its new created_by. It hands a contributor an element someone else made, or takes one back; when the element is hidden, or the member is a guest, the old and the new maker may each get a view reset on the feed. On the site, the owner’s view of an element page has an Author card for the same act.

A membership’s row is never deleted. Removing a member, a member leaving, removing an AI seat, and deleting the account behind a membership (or the account answering for a seat) all keep it, as a removed row on the roster, so its elements keep their created_by and changed_by. An id whose roster row has status removed is a former member’s, never the owner’s: the owner is always null. A member who is removed or leaves takes the AI seats they made in that world with them: those seats’ keys stop working at once, and their rows and what they wrote stay (the owner’s own seats are untouched). A Character the member made and nobody touched (a name and a supertype only, last written by the member, linked from nothing) is deleted with the membership; any other stays.

GET /api/v2/members lists everyone in the world. Any key on the world may read it, without a PIN, and so may an account token with world=<id>: the owner’s reads it as the owner’s keys do, a member’s as their own member key does, and one with no access in that world gets a 404. It is not paginated.

Terminal window
curl -s "https://www.onlyworlds.com/api/v2/members" -H "API-Key: {key}"
{ "data": [
{ "id": null, "kind": "owner", "role": "owner", "character": "0695…", "status": "active", "lenses": [], "lenses_from": "chosen" },
{ "id": "0699…", "kind": "agent", "role": "contributor", "character": "069a…", "status": "active", "name": "Wren", "lenses": [], "lenses_from": "none" } ] }
Field Meaning
id The membership id, which is what created_by holds; null for the owner
kind owner, person, agent or player
role owner, co_builder, contributor or guest
character The Character that is this member, or null. The owner’s is the world’s owner_character. null too when that Character is hidden from the calling key
status active or removed
name Agent and player rows: their name, to every reader. Person rows: the person’s username, read only by the owner’s keys and co-builders (an AI seat a co-builder sponsors included), as the site’s Access page shows it; any other reader, and a row whose account was deleted, gets no name
lenses The lenses the row starts with, lens ids in order: the ones it chose, or, when it chose none, the lenses whose titles name a Title its Character holds and the row may see (a hidden Title brings a guest or player seat no lens, since 2026-11-13; the owner row: always the owner’s own choice); [] for none. A lens the calling key cannot see is left out
lenses_from Where lenses comes from: chosen (the row’s own list, an empty one included), titles (it never chose, and its Character’s Titles bring these) or none (it never chose and nothing brings it a lens: no Character, or Titles that name none; lenses is empty). The owner’s row and a removed row are always chosen
sponsor_member Agent rows only, to every reader: who answers for this AI, as the sponsor’s row id on this list, owner when the world’s owner does, or null for a sponsor with no live membership here. Person and player rows carry no sponsor_member
x_served_trimmed Present only when lenses was served with a lens left out: then it names lenses (A list trimmed for its reader)

The owner row comes first, then active members in the order they joined, then removed members. Removed members keep their row so every created_by and changed_by resolves: a member who was removed, who left, or whose account was deleted. A removed row whose account was deleted carries nothing that names the person. The roster never carries email addresses, and a username only to the owner’s keys and co-builders: to everyone else a Character is the public face.

A message’s narrator is who it claims to be from; its created_by is who the server recorded; the roster joins the two. To find what is addressed to a Character, filter on it:

Terminal window
curl -s "https://www.onlyworlds.com/api/v2/narrative?characters={character_id}" -H "API-Key: {key}"

GET /api/v2/me answers who the calling key is, for any key and without a PIN:

{ "world": { "id": "…", "name": "Hyperion" }, "scope": "write", "kind": "agent",
"role": "contributor", "membership": "0699…", "character": "069a…", "lenses": [], "lenses_from": "none", "name": "Wren",
"front_door": { "sponsor": { "id": "0698…", "kind": "person", "name": "Mara" },
"sponsor_character": "069b…", "my_character": "069a…", "my_seats": [],
"charter": "069c…", "charter_skill": ["069d…"],
"charter_element": { "type": "law", "id": "069c…" },
"charter_skill_elements": [{ "type": "object", "id": "069d…" }] },
"reading_aids": { "charter": { "id": "069c…", "type": "law", "name": "House rules", "rules": [], "skill": ["069d…"] },
"guide": null, "domains": [],
"strand": { "narrative": null, "event": null, "location": null, "character": null, "now": null, "same": null } } }

scope is read or write. membership is what created_by will hold for what this key creates. lenses are the lenses you start with: the ones you chose (PUT /api/v2/me/lenses), or, when you never chose, your Character’s Titles’ (lenses_from says which, and reads none when nothing brings you a lens); choosing an empty list keeps you off your Titles’ lenses, with x_served_trimmed as on the roster. An owner-minted or legacy key answers as the owner, with membership null and character set to the world’s owner_character. A Character hidden from the key reads null, the one its own member plays included, unless that member created it.

front_door is on every /me answer (and on PUT /me/character’s, and an agent’s join reply), so a key learns in its first read where it is and whom it answers to:

Field What it is
sponsor The person who answers for this seat (an AI or a player seat): id, their membership id as the roster lists it (null for the world’s owner); kind, owner or person; name, their Character’s name (null when they play none you can read). null for the owner’s keys, a person’s own key, and a sponsor who is no longer a member. A seat made from a link for an email address names the link’s maker, like any other seat.
sponsor_character The sponsor’s Character, the one to address a message to, or null. The same id as my_character, not null, where the AI works under its person’s own Character: then there is nobody to address.
my_character Your own Character (the owner’s is the world’s owner_character), or null.
my_seats The live AI and player seats you answer for (since 2026-10-26), AI seats first, then the oldest first. Each is {id, kind, name, character}: id the seat’s membership id as the roster lists it, kind agent or player, name its name (null when it has none), character the Character it plays (null when it plays none you can read). The owner’s keys list the owner’s seats and a person’s key that person’s, whatever their role; an AI or a player seat’s own key gets []. So a tool reading with your key can tell which Character is your AI, and show what is addressed to it.
charter The world’s Charter: the newest Law whose supertype is Charter (trimmed, any case) that carries the mark x_charter_of, or null when there is none you can read. Read it first: it holds the world’s house rules.
charter_skill The Objects the Charter’s description names (by ow://object/<id> link or by id), in the order written, at most five: the how-to beside the rules. Empty when it names none you can read.
charter_element charter as an element, {type, id} (since 2026-11-16): type is law, so the Charter is read with GET /api/v2/law/{id}. null where charter is.
charter_skill_elements charter_skill as elements, in the same order: each {type: "object", id}, read with GET /api/v2/object/{id}. Empty where charter_skill is.

Every member reads the Charter and those Objects whole, a guest and a player seat included; one the owner hid stays hidden, and anything hidden from the key reads null or is left out. A Law with supertype Charter but without the mark is an ordinary Law. Only the owner and co-builders may set, change or remove x_charter_of; any other key that does is refused, 403 keeper_only. Since 2026-11-21 the house rules themselves are theirs too, whoever made them: a marked Law (the Charter, a superseded one or a hidden one) and every Object its text names are changed, relinked, deleted, and given or relieved of a file only by the owner and co-builders, and an Object under an id such a Law names is created only by them. Any other member gets the same 403, nothing written, and proposes the change instead. In the TypeScript SDK the object is OwFrontDoor on me()’s answer, from 4.60.0, with the two typed keys from 4.176.0; in Python, me()["front_door"].

reading_aids sits beside front_door on every /me answer and on an agent’s join reply: what to read first in this world, as your key reads it, the three reading aids and then the strand. Each of the three is an element of one pair, a Law with supertype Charter, a Construct with supertype Guide or a Construct with supertype Domain (trimmed, any case), that carries x_charter_of (read by presence).

Field What it is
charter The newest marked Charter you can read (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 (the same ids as front_door.charter_skill).
guide The newest marked Guide you can read, {id, type, name} with type construct, or null: where to start.
domains Every marked Domain you can read: first in the order the Guide’s constructs names them, then the rest by name, trimmed and folded and compared by code point, and by id where two names fold alike. Each is id, type (construct), name, sentence (its description trimmed, cut at its first line break, and trimmed again) and hubs, the elements its links name that you can read, each {type, id} and of the kind its field links to, each once, in the schema’s field order.
strand The world’s strand, the story this world is about, as your key reads it (since 2026-10-31): 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} or null (type is the kind the slot holds: narrative, event, location, character, and location for now), and same, true when then and now are one place, false when two, else null. Every slot is null when the world has no strand or its story is out of your view.

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. In the TypeScript SDK the object is OwServedReadingAids on me()’s answer (the strand since 4.121.0), and charterOf and strandOf read the same from a world you hold; in Python, me()["reading_aids"]. Since 2026-11-17 every element the packet names carries type beside its id, the word the element routes use, so a reader that holds nothing else of the world knows which route fetches it (OwServedReadingAids types it since 4.177.0).

A member key sent with a PIN (or an AI seat with its secret) has it checked here: a wrong one is 401 invalid_credentials, and with none the answer stands. So /me tests a connection before the first write. A PIN sent with a key that cannot write is never read: the answer is the one that key gets with no PIN (since 2026-11-21; a player’s key has no PIN).

A person who is a member picks the Character that is them in this world, the character on their roster row and on /me, with PUT /api/v2/me/character, or, since 2026-11-16, on their own page for the world on onlyworlds.com. The route takes the person’s own write key and account PIN, and the pick can be changed again at any time:

Terminal window
curl -s -X PUT "https://www.onlyworlds.com/api/v2/me/character" \
-H "API-Key: {key}" -H "API-Pin: {pin}" -H "Content-Type: application/json" \
-d '{ "character": "069a…" }'

The body is exactly {"character": <id>}, or {"character": null} for none. The answer is 200 with the same body as GET /api/v2/me. Any Character the key can see may be picked, except that a guest picks only a Character it made itself. Picking one gives nothing beyond what the member’s role already allows with it. A guest following the change feed resyncs once, as for any roster change.

Only a person’s key can pick. A member chooses their AI seat’s Character when they make the seat: a new one of its own, none, or the Character the member plays, in a world they don’t own (the owner chooses new or none; Making a seat). The owner can set a seat’s Character afterwards (Change on its row under Members, on the world page, or character on the member’s PATCH), except on a seat that follows its member: that is 422 seat_follows_sponsor until the owner hands the seat to someone else. A player’s Character is set by the link (from the owner’s list) or by the owner. The owner’s own is the world’s owner_character, set with PATCH /api/v2/world.

Status Code When
401 invalid_credentials A missing or wrong key, or a wrong PIN
403 permission_error A read key, an AI seat’s or a player’s key, or the owner’s keys
404 not_found The Character is not one this key can see
422 character_hidden The owner or a co-builder hid it, even when it is your own: a played Character is on every reader’s roster
422 invalid_request The body is not exactly {"character"}; a guest named a Character it did not make; or the Character is the owner’s, or one another member plays. param names it
429 rate_limited Ten different wrong PINs on this key or account inside fifteen minutes

In the TypeScript SDK, setMyCharacter(characterId) (or null) returns the /me body, from 4.50.0. The Python package has no call for it yet: send PUT /me/character with {"character": "<id>"} (or null) over HTTP, with the world key and its PIN.

A guest key sees five things: the elements it created, the elements its Character is on or knows, the roster’s Characters, the world’s Charter and the Objects it names, and, as stubs, what its Character’s own sheet points to. “On or knows” is decided by the type’s own links. For a Collective, Construct, Event, Relation or Title, the characters link: the element names the guest’s Character. A Title whose holders names it and a Relation whose actor is it count the same way (since 2026-11-13), though the characters filter still matches on characters alone. For a Narrative, its knowers: the narrator is the guest’s Character, or one of its collectives is a Collective whose characters include it (a circle the Character is in). A Narrative’s own characters link means who the story is about and grants a guest nothing, so a secret written about a player’s Character stays hidden until a knower names them. The one exception is a message (a Narrative with supertype Message, the message profile): there characters are its addressees, so a guest sees a message that names their Character there, or names nobody (addressed to every member). Hidden still wins (2026-10-26). A guest accepting an invite gets a new Character of its own (supertype Guest) as its roster entry.

A guest playing a Character also reads what that Character’s own sheet points to, one step out: every element a link field on the Character names (its location, species, family, traits, the Characters it calls friends or rivals, and the rest), never further, and never an element the owner hid. The same holds for a player, a person’s own Character, a guest AI seat, and the owner’s view as a Character.

An element reached only that way is a stub, marked known_of: true. It keeps id, type, name, description, supertype, subtype, image_url, created_at, updated_at and change_seq, and its type’s public fields, what anyone could see: for a Character, physicality, height, weight, species and reputation; no other type has any yet. Which fields are public is published per type in schema-dist’s presentation.json (public), and the TypeScript and Python packages export them as PUBLIC_FIELDS. Every other field reads as unset: text "", numbers and single links null, multi-links [], no extension fields, and created_by, changed_by and changed_via null. Search matches only what it keeps and marks its row known_of: true, and its files answer 404. Any other grant makes it whole: it names the Character, the Character knows it, it is on the roster, or the reader made it. Without known_of, an element is whole.

A client shows a stub as something the Character knows of (its name, picture, description and public fields), never as an empty record. Its unset fields are not values and not a deletion. Never write a stub back: known_of in a write body, whatever its value, is a 422 (known_of_not_writable), and a stub’s empties written as a whole element would blank the real one. In a world folder, a stub keeps known_of: true, its kept keys and the fields served with a value, and is never pushed (Known-of elements).

Everything else behaves exactly like a missing element, on every route, filter and expansion:

  • An id out of its view is a 404 not_found.
  • A link to an element out of its view is invalid_link.
  • Link ids the guest cannot see are left out of every body it reads; such a single link reads null.
  • A guest’s writes keep the links it cannot see.

An element the owner or a co-builder hid is out of a guest’s view whatever links it to the guest’s Character, unless the guest created it.

A guest writes elements of any element type. Its Narratives are notes, narrated by its own Character:

  • The narrator is the guest’s Character. Left out of a create or a PUT, or sent as null, it is filled in. Another Character the guest can see is a 422 invalid_request with param narrator; one it cannot see is invalid_link.
  • collectives takes only the circles its Character is in. Any other Collective answers as a missing one, invalid_link.
  • A guest with no Character of its own in the world cannot create or replace a note: 403 guest_not_supported. Nothing in the request can fix that; ask the world’s owner.

A few routes (world sharing and token status) refuse guest keys with 403 guest_not_supported. The change feed serves a guest its slice with its own cursor rules: see Guests’ cursors.

An owner can invite a person without an email address: an invite link with a role, made on the world page under Access, in Let someone in: A person, By a link you send (/account/worlds/<world_id>/access opens it, after a sign-in if one is needed), shown once with a QR code beside it, or through the owner’s link routes below. It has the same form as an AI link:

https://www.onlyworlds.com/join#ow_j_…

The code is the part after #; a URL fragment is never sent to a server, so it never lands in a log or a referrer. A person or player link can also carry the world’s id in its path, https://www.onlyworlds.com/join/<world_id>#ow_j_…: pasted into a chat that shows link previews, it shows the world’s name and picture (a hidden Map’s picture never), as long as the world holds a link with the preview on that is neither revoked nor expired (a used one still counts). Without one, the page is the plain one, the same as for an id that names no world, so a world’s id alone (from an address, a folder or a screenshot) shows nothing. The world page’s forms make links this way by default, with a box under More options to turn it off; over the API it is preview: true, off when left out. An AI link never carries it. A link works once and expires (1, 7 or 30 days, 7 when days is left out); the owner can revoke it until it is used. Opened in a browser, /join shows who invites you, to which world and as what role, and a button to join; signing in (or creating an account) first, when needed. When the link’s role reads the world, the page also draws its glimpse before any account is made, a small picture of up to five things and the links between them (since 2026-11-22); a guest’s link shows none. The day a link expires reads as a date, with no clock time. A person’s invitation is joined there, on the site: under its button it says an account is free, and that making one brings them back to join. Once joined, the world is on their account, which Atlas and Lantern list after sign-in; instead of the site, the link can also be pasted or shared into either app. An agent’s link offers Open in Atlas. The person becomes a member with the link’s role, exactly as if they had accepted an email invite: a guest gets a new Character of its own, and the member mints their own keys. No account PIN is needed to join; a write key for the membership waits for one: 409 pin_required.

An invite link for people can let in up to 50 accounts: set Uses when you make it (max_uses, 1 to 50, on the link routes), and each person joins once with the role you chose. The link stops working when every use is taken, it expires, or you revoke it; who already joined stays.

A client can do the same two steps itself:

Method Route What it does
POST /api/v2/join/preview {"code"}: who invites you, the world, the role, reader (person), expires_at, note, the inviter’s note or null, and glimpse. No credential; the code stays unused
POST /api/v2/account/join {"code"}, with an account credential (Authorization: Bearer ow_a_…, or the X-Session-Token of a signed-in app client): 201 with the new membership (the same body as accepting an invite)

A code made for a person is a bad code for an AI agent, and the other way round: every bad code, whatever the reason, answers the same 404.

Every preview carries glimpse (since 2026-11-22). For a link whose role reads the world (contributor or co-builder) it is a first look at that world: up to five things by name, and the links among them. For a guest’s link, and so for every player’s link, it is null; it is also null when no two things a visitor could see are linked.

Key What it is
picked_by How the things were chosen. strand: the world’s chosen story, its happening, where it happened, its hero and where the hero is now. links: the most linked thing in the world, then the four most linked of its neighbours
things At most five, each {name, type}, type the element type (character, location, …), in the order picked_by gives
links Each {from, to, field, label}: from and to are places in things, counted from 0, from the thing whose field holds the link; field is that field’s name and label the words to show for it

The glimpse is read as a visitor with no account would read the world if it were public, whether or not the world’s public reading is on: nothing hidden and nothing proposed is in it. It names no id of any element. An example is on the agents page.

A lost answer is read by sending the code again (since 2026-11-01). When the 201 never arrives (a reload, a closed tab, a double press), send the same code once more: a code your own account already used answers 409 already_member, spends nothing, and carries the world’s id as world_id in the error envelope, so the page opens the world either way. A code someone else spent is still the 404.

A co-builder makes, lists and revokes the world’s invite links with its own world key (a person’s write key with its PIN, or an AI seat’s key with its secret), through the same body and answers as the owner’s account routes:

Method Route What it does
POST /api/v2/links Make a person, agent or player link: the owner’s body (reader, role, days, max_uses, …). role may be contributor or guest; co_builder is 422, param role
GET /api/v2/links Every link made for the world, by the owner or a co-builder, newest first, each with its state. No codes
DELETE /api/v2/links/{link_id} Revoke a guest or contributor link, whoever made it. A co-builder link is 422, param link_id, and stays as it was

The co-builder answers for what its link lets in: an agent co-builder’s sponsor answers for it, and a link it made stops working when it stops being a co-builder. Any other key gets 403 not_co_builder, the owner’s own world keys included: the owner uses the account routes.

A player link lets a friend read the world with no account and no PIN, as one Character: the game-night guest. The owner makes it on the world page (Let someone in, Players at a table, One player), in Atlas’s or Lantern’s Invite someone (A player), or with reader player on the owner’s link routes, choosing the Character the player reads as or a fresh one. It is always a guest’s, and the same single-use, expiring /join#ow_j_… link as an invite link. Whoever opens it first reads as that Character, until the owner removes them.

Opened in a browser, /join offers Open in Lantern and Open in Atlas, Lantern first, with no sign-in. Redeemed, it makes a member with kind player: no account behind it, role guest for good (it cannot be promoted: 422 player_role_fixed), and one ow_r_ read key. A player reads exactly what a guest playing that Character reads (Guests) and writes nothing; a write with its key is 403. The owner can change which Character the player reads as (character on the member’s PATCH, or Change on its row under Members; never a hidden Character: 422 character_hidden), or remove them, which stops the key at once. A lost key: remove the player and make a new link. The members table shows a player who never opened their link as never used.

A client redeems a player code with no credential:

Method Route What it does
POST /api/v2/join/preview As for an invite link, with reader player
POST /api/v2/join {"code", "name"} (name optional: the player’s name on the owner’s members list, and a fresh Character’s name too; without it, the picked Character’s name stands in, else Player): 201 with kind player, role guest, the world, the Character and the read key, shown only in this answer. The answer is typed by kind; an agent’s code answers its own seat

One player link can seat a whole table. The owner sets how many times it works (max_uses, 2 to 50; 1, the default, is a link for one) and, optionally, which Characters the players may pick (characters, in the order they are shown; a hidden Character is refused, 422 param characters, since it can never be picked). Each person who opens it picks one Character, once, and reads as that Character like any player. The owner’s list is never the cast list: only the Characters picked for the table are offered. With no list, each player names a fresh Character after themselves. On the world page it is Let someone in, Players at a table, A table of players.

A table code’s preview carries four more keys; a link for one answers without them:

Key What it is
max_uses How many times the link works
uses_left How many places are left
name_required true when the owner listed no Characters: the player sends a name instead of a pick
characters [{id, name, image_url, taken}], the owner’s order. taken is true while a live seat in the world plays it, a person’s included. A Character hidden or deleted since the link was made is left out

The player redeems with POST /api/v2/join and {"code", "character"} (the id of an untaken Character from the list), or {"code", "name"} when name_required is true. The answer is the player’s 201, as for a link for one. The refusals spend nothing:

  • A Character already taken: 422 character_taken.
  • A pick not on the list, or hidden or deleted since the link was made: 422 invalid_request, param character.
  • The world at 50 players: 422 world_full, from a table or a link for one.
  • The last place taken a moment before: the ordinary 404, as for a used link.

A world holds at most 50 players, counted as each one joins, from a table or a link for one. A table counts once against the 50 pending links while it has places left. Revoking it closes the places not yet taken; the players already seated stay. A seat that is removed frees its Character but still counts as a use.

An AI agent joins a world as a member with kind agent: an AI seat. The seat has its own ow_w_ key and its own secret for API-Pin. By default it has a Character of its own (supertype Agent); it can also have none, or, made by a person who plays a Character in a world they don’t own, play that one. Whoever makes the seat chooses which, and its role: the owner on an AI link (contributor by default), or a member making a seat for their AI, at most their own role.

Every seat has a human sponsor who answers for it: for a seat a member made (Making a seat), that member; for a join link, the person who made the link, or, for a link an AI made, the person who answers for that AI. An email address named when making the link is a label and is never matched to an account (An address on a link is a label). The sponsor can remove the seat, or give it a new key, from their own account. On the owner’s GET /api/v2/account/worlds/{id}/members, an agent row’s sponsor is the sponsor’s username when they are the owner or a member, and null for one who has left; its for_email is the address the link was made for, empty when there was none or once the seat is handed over. On an agent row the owner also sees may_change_character: true when the seat may change, never delete, the Character it plays, which for a seat a member answers for holds only while that member could change the Character (a co-builder, or its maker), and false when the owner gave the Character without the right; may_change_character_note: a sentence saying why a seat may not change the Character it plays (the member who answers for it cannot; or the member can and the seat holds no right until the world’s owner lets it, with may_change_character true, which is also what it says of a seat below co-builder that plays a Character it did not make and holds no right, such as one handed over after its right was cleared; or, while the Character is hidden, that the seat cannot change it, and that once it is unhidden the world’s owner can let it), or, where the seat can change the Character all the same without the right, why (it made it, or it is a co-builder), else null; and follows_sponsor: true when a member made the seat for their own AI to play their own Character (character mine), so it plays what that member plays and may change it only while they may (A seat that follows its member).

A world’s owner can hold every seat’s changes for a person’s word: with AI seats propose, a person accepts on (agent_writes_proposed on the world), a seat’s edits to existing elements answer 202 as proposals a keeper accepts or declines, and its new elements carry x_review_proposed. Making links, joining and the join routes are on AI agents.

To give Use
Read access to anyone you hand it to, no account needed An ow_r_ read key (Keys and PINs). It shows what you hid: to share a world without that, use a player link or an invite with a role
Open reading to everyone, with no key or account, and a public page if you want one Anyone can read it, with no account under Who can see this world on the world page’s Settings. See Public worlds
A person who writes, with their own PIN and their own role A member invite by email, or an invite link
A friend who reads as one Character, with no account A player link
An AI agent with its own seat A seat for your AI, or an AI link

A read key also works as a subscription: someone who holds it can follow the world’s live state through /changes. With an account, they can store it as a watched world (/api/v2/account/watched), so the list follows them across tools. A watched key that stops working, for example because the owner revoked it, is marked stale rather than removed.

Sharing is forward-only: what someone has already read is theirs to keep. A key, a role or a membership governs what they receive from now on. Revoking a key, lowering a role or removing a member stops or narrows what arrives next, and takes nothing back from a copy already made.

Invites and memberships are managed in the account portal, or through the account routes with an ow_a_ account token sent as Authorization: Bearer ow_a_….

Method Route Purpose
POST /api/v2/account/worlds/{world_id}/invites Invite an email address as a member (owner only)
DELETE /api/v2/account/worlds/{world_id}/invites/{invite_id} Cancel an invite
GET /api/v2/account/worlds/{world_id}/members Members and pending invites
PATCH /api/v2/account/worlds/{world_id}/members/{member_id} Change a member’s role, the character an agent or player plays, or who answers for an AI seat, sponsor (a person who is a member, or owner) (owner only; a hidden Character is 422 character_hidden; a character for an AI seat that follows its member is 422 seat_follows_sponsor; a role for an AI seat above the person who answers for it is 422 seat_above_sponsor; a sponsor sent with a role is set first). On an AI seat, may_change_character (since 2026-11-16) says whether it may change the Character it plays: false gives the Character without that right, true or left out gives the right; with character it applies to that Character, alone to the one it plays now, and sending the same character alone keeps the right as it stands. true on a hidden Character is 422 character_hidden, either value on a seat that follows its member 422 seat_follows_sponsor, and it with character null, alone on a seat that plays nothing or whose Character is no longer a Character in this world, on a player seat or a person’s row, or not a boolean is 422 invalid_request (param may_change_character). lenses sent alone sets a row’s lenses, the one change a member makes here on its own row or a seat it answers for
DELETE /api/v2/account/worlds/{world_id}/members/{member_id} Remove a member; their keys for the world are deleted (they then answer 401 invalid_credentials, as an unknown key does), and the AI seats they made there are removed with them
POST /api/v2/account/worlds/{world_id}/links Make an invite link (owner only): reader (person, agent or player, required), role, days, inviter_name, note (a person’s link only: a note for whoever opens it, at most 500 characters and 8 line breaks, served by the preview and never on the link’s row; on an AI or player link it is not kept; the note and inviter_name refuse control characters, a tab included, and the characters that override or isolate text direction, 422 with param the field), with_character, and for a player character (new or a Character’s id) or, for a table, max_uses (2 to 50) and characters (a table takes no character), max_uses on a person’s link (1 to 50; an AI link works once, and max_uses on it is 422, param max_uses), preview (person and player links, off when left out; true on an AI link is 422, param preview), and lands_on on a person’s link (where it opens: site, the default, is this site’s /join page; dashboard is the Dashboard’s, for someone you invite to work there; either page takes the same code, and dashboard on an agent or player link is refused). Every link the routes answer carries lands_on, site on an agent or player link; 201 with the code, the link and a line to send, shown only in this answer. A world holds at most 50 pending email invites and person and player links that can still be used: a new person or player link counts them together, a new email invite counts the email invites alone (422); AI links count with the seats instead
GET /api/v2/account/worlds/{world_id}/links The world’s links, newest first, never a code, each with uses and status (pending, used, revoked, expired); a table’s row adds max_uses and characters ([{id, name, taken}], name null if deleted), its uses counts the seats it made, removed ones included, and it reads used once full
DELETE /api/v2/account/worlds/{world_id}/links/{link_id} Revoke a link: 204
POST /api/v2/account/worlds/{world_id}/seats Make a seat for your own AI (Making a seat): 201 with its key and secret, shown once
GET /api/v2/account/worlds/{world_id}/seats Your seats; the owner sees every seat; never a key. Each row carries may_change_character, may_change_character_note and follows_sponsor as an agent row of the members list does (since 2026-11-16); a seat whose Character is kept from you reads character null, false and no note
DELETE /api/v2/account/worlds/{world_id}/seats/{seat_id} Remove a seat (its sponsor or the owner)
POST /api/v2/account/worlds/{world_id}/seats/{seat_id}/key A new key and secret for a seat; the old key answers key_revoked
POST /api/v2/account/worlds/{world_id}/leave Leave a world; your keys for it are deleted, and the AI seats you made there are removed with them
GET /api/v2/account/invites Invites addressed to your verified email addresses
POST /api/v2/account/invites/{invite_id}/accept Accept: 201 with the new membership
POST /api/v2/account/invites/{invite_id}/refuse Refuse
POST /api/v2/account/join Accept an invite link’s code: 201 with the new membership
GET, POST /api/v2/account/watched List your watched worlds, or add one by a live ow_r_ key
DELETE /api/v2/account/watched/{watch_id} Stop watching
Terminal window
curl -s -X POST "https://www.onlyworlds.com/api/v2/account/worlds/{world_id}/invites" \
-H "Authorization: Bearer ow_a_…" -H "Content-Type: application/json" \
-d '{ "email": "reader@example.com", "role": "contributor" }'
{ "id": "…", "email": "reader@example.com", "role": "contributor", "created_at": "…" }
  • An invite answers the same 201 body whether or not an account uses that email address.
  • Inviting an existing member, or accepting as one, is 409 already_member. Accepting needs no account PIN; minting a write key without one is 409 pin_required.
  • A role change chooses among co_builder, contributor and guest, and applies from the member’s next request. A move to or from contributor or guest resets the member’s change feed cursor. A member made a guest keeps its roster Character only if it created it.

The bodies: an invite takes email and role; a change takes role, character (a Character’s id, or null for an agent), or both; accepting an invite takes an optional roster_character (the id of an existing Character to stand for you in the roster; ignored for guests, who always get a new one). Since 2026-11-12 it must be one nobody plays: the owner’s Character, or one another live member plays, is a 422 with param roster_character and nothing is joined, so the invite can be accepted again with a free one; a Character whose member has left is free; adding a watched world takes key (the world’s ow_r_ key).