List what links to a law
Changed onThe elements you can read that link to this law, across every type, each as a short row that says through which field it links (via), never a whole body: read one with its own route. Types come in the registry's order, each type's elements by change_seq then id, the list route's order. The first page also says how many link from each type and through each field (counts, total). An element that names the id in a field your view of it leaves empty (a field a known-of element does not show) is not among them. Reads the schema's link fields and a Pin's element. An id kept in an extension key or in text is not found. It serves what the list routes serve you, a parlor's room lines, reading aids and proposed elements included. A law you cannot read answers as its own GET does (404, or 410 for one deleted). A tool that signs you in with OnlyWorlds may read with that sign-in instead of a key: send its account token as Authorization: Bearer ow_a_... with world=<id>, and the read answers as your own access in that world.
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
Path parameters
The law's id (a malformed id is a 422).
Query parameters
Only the elements of this type. A type that holds no link to a law is a 422 (param source_type).
With source_type only: the elements that link through this one field (a Pin's element included). A field that is not one of that type's links to a law, or field without source_type, is a 422 (param field).
With source_type only: comma-separated keys of that type's body to add to each row, checked as that type's own ?fields= checks them (a 422 names the unknown). Without source_type it is a 422 (param fields).
Page size; clamped to 1-1000. A non-integer is a 422.
Opaque: the next_cursor of the previous page, sent with the same source_type and field. One that does not decode, or names another element or a type this call does not read, is a 422 (param cursor).
View as (the owner's keys only: a key with no member): read as another reader would. A membership id of this world (a person, an AI seat or a player seat) reads as that member's own key, its own creations included; a Character id reads as a guest of that Character with no membership (what it knows, the roster, nothing counted as its own); public reads everything that is not hidden. A hidden element is the plain 404, never a 410. An unknown value is a 422 (param as); a member key sending it is a 403 view_as_owner_only. Writes, /changes, /members, /me, the world and the files routes do not take it (422).
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).
Response
A page of what links here.
A page of what links to an element. Reads the schema's link fields and a Pin's element. An id kept in an extension key or in text is not found.
Pass back as cursor, with the same source_type and field, for the next page; null on the last.
First page only: for every type that can link here (one, with source_type), how many of its elements do, and how many through each field (an element in two fields counts under each, once in elements).
First page only: how many elements link here, all pages.
Changes
- info
endpoint added
- info