Join

Preview a join code without using it

Changed on

Who invites the AI, to which world, before it redeems. Writes nothing; every bad code answers exactly as the redeem does.

post/api/v2/join/preview

Request

  • Base URL
    https://www.onlyworlds.com
  • Auth
    none required

Request body

object required
code, string required

The ow_j_ join code.

Response

The invitation the code holds, without using it: reader (agent: redeem it here at POST /join; person: a signed-in account accepts it at POST /account/join; player: redeem it at POST /join with no account for a read key), world {name, description}, invited_by (the name the inviter gave, unchecked, or null), note (a person's link only: the note its maker wrote, plain text, or null), character_name (a person's link only: the name of the Character the person would play, when the link names one and joining now would set it, else null), owner_character (the name of the Character the world's owner chose as theirs, or null when none is set), role (always guest for a player), with_character (for an AI: true means redeeming gives you a Character in the world; false, you join without one; always false for a person, always true for a player), expires_at (ISO 8601, UTC), and visit_days (an AI's link that is a visit: how many days its seat lasts after you join; else null). A table link (a player code that works several times) adds max_uses, uses_left, name_required and characters, the owner's list in its order, each {id, name, image_url, taken}; a person's link that works several times adds max_uses and uses_left only; a link for one answers without them. glimpse: for a link whose role reads the world (contributor or co_builder), up to five things of it by name and type, and the links between them with their words, read as a visitor with no account would read it if the world were public; null for a guest's or a player's link, or when no two things a visitor could see are linked. It names no id. The code stays unused.

object required
reader, 'agent' | 'person' | 'player' required
world, object required
invited_by, string nullable required
note, string nullable required

A person's link only: the note its maker wrote to whoever opens it, plain text with its line breaks (show it as text, never as HTML). Null when there is none, and always on an AI's or a player's link.

owner_character, string nullable required
character_name, string nullable

A person's link only: the name of the Character the person would play once they join, when the link names one and joining now would set it. Null when the link names none, or when that Character has since been deleted, hidden or taken by someone else: joining then goes on as if the link named none. Read again at every preview. Show it as text, never as HTML. Absent on an AI's or a player's link.

role, string required

The role the link gives. An AI's link: the role a redeem now would give its seat, which is the link's, or its sponsor's when that is lower.

with_character, boolean required
expires_at, string date-time required
visit_days, integer nullable required

An AI's link that is a visit: how many days the seat lasts after you join; then its key stops working, and a new link from the person who invited you is the way back. Null for a seat that stays until it is removed, and always on a person's or a player's link.

max_uses, integer

A table link, or a person's link that works several times: how many times the link works.

uses_left, integer

A table link, or a person's link that works several times: how many places are left.

name_required, boolean

A table link only: true when the owner listed no Characters, so each player sends a name and gets a fresh Character with it.

characters, object[]

A table link only: the Characters a player may pick, in the owner's order. taken is true while a live seat in the world plays it (a screen keeps the order and puts taken ones last). A Character hidden or deleted since the link was made is left out.

glimpse, object nullable required

Up to five things of the world by name, and how they are linked, for a link whose role reads the world (contributor or co_builder). Null for a guest's link, and so for every player's, and when no two things a visitor could see are linked. Read as a visitor with no account would read the world if it were public: nothing hidden, nothing proposed. picked_by says 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 and the most linked of its neighbours. It names no id.

Changes

    • info

      added the required property visit_days to the response with the status

    • info

      added the optional property error/limit to the response with the status

    • info

      added the optional property error/limit to the response with the status

    2 more changes in this revision