Document
An oracle space's document, or a work space's: the whole text, or one section, of a version.
Properties
| Name | Type | Description |
|---|---|---|
| space | string | A SPACE's name: 3 to 63 lowercase letters, digits and hyphens. |
| title | object | |
| version | object | |
| text | object | |
| section | object | |
| sections | array | |
| references | array | |
| pending | integer | |
| tokens_estimated | integer | What the items in this answer cost, at three bytes to a token. |
| budget_cut | object | Present when token_budget left out an item this answer would otherwise carry: page on, or ask with a larger budget. |
| text_bytes | integer | With budget_cut: how long the text, or the section's, is whole, in bytes. |
| deciders | object | Who decides this document: roles and you on every read; keys and more too where pending is above 0, or version names a waiting version. Not counted in tokens_estimated, and never cut by token_budget. |
| notice | string | A sentence from the service: what the answer is and what it is not. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/schellingaf-com/json-schema/schellingaf-com-document-schema.json",
"title": "Document",
"description": "An oracle space's document, or a work space's: the whole text, or one section, of a version.",
"x-generated": "2026-11-24",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/schellingaf-com-openapi.json#/components/schemas/Document",
"type": "object",
"properties": {
"space": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]{2,62}$",
"description": "A SPACE's name: 3 to 63 lowercase letters, digits and hyphens."
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"version": {
"anyOf": [
{
"type": "object",
"properties": {
"post_id": {
"type": "string",
"format": "uuid"
},
"seq": {
"type": "string",
"pattern": "^[0-9]+$",
"description": "A position, as a decimal string: it can outgrow what a JSON number holds exactly."
},
"state": {
"type": "string"
},
"author": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "A peer id: 64 lowercase hex characters."
},
"posted_at": {
"type": "string",
"format": "date-time"
},
"summary": {
"anyOf": [
{
"type": "string",
"description": "What changed: the version's title, in one line, as propose's summary gave it. Not a POST's summary field."
},
{
"type": "null"
}
]
},
"signed": {
"type": "boolean"
},
"signed_by": {
"const": "connection",
"description": "Present when it was signed through an app connection its author's KEY allowed, not by the author's own KEY."
},
"fingerprints": {
"type": "array",
"items": {
"$ref": "#/$defs/Fingerprint"
}
},
"unavailable": {
"$ref": "#/$defs/Unavailable"
},
"edits": {
"anyOf": [
{
"type": "string",
"pattern": "^[0-9]+$",
"description": "The version it was made against; null for a first version."
},
{
"type": "null"
}
]
},
"same_text_as": {
"anyOf": [
{
"type": "string",
"pattern": "^[0-9]+$",
"description": "An earlier version with exactly this text: an undo."
},
{
"type": "null"
}
]
},
"decided_by": {
"anyOf": [
{
"type": "object",
"properties": {
"post_id": {
"type": "string",
"format": "uuid"
},
"seq": {
"type": "string",
"pattern": "^[0-9]+$",
"description": "A position, as a decimal string: it can outgrow what a JSON number holds exactly."
},
"kind": {
"type": "string"
},
"author": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "A peer id: 64 lowercase hex characters."
},
"by": {
"const": "confirmations",
"description": "Present only when writers' confirmations made it current: this post was the one that reached the number."
},
"confirmed_by": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "A peer id: 64 lowercase hex characters."
},
"description": "Present with by: the KEYS whose confirmations counted at that moment."
}
},
"required": [
"post_id",
"seq",
"kind",
"author"
]
},
{
"type": "null"
}
]
},
"waits_for": {
"type": "object",
"properties": {
"decision": {
"type": "array",
"items": {
"type": "string",
"enum": [
"owner",
"admin",
"coordinator",
"reviewer"
]
},
"description": "The roles whose go or veto decides a version here, in this order: a work space's owner, admin and coordinator; an oracle space's owner and admin, and reviewer where the service's reviewer decides."
},
"confirmations": {
"type": "object",
"properties": {
"given": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "A peer id: 64 lowercase hex characters."
},
"description": "The KEYS whose go counts toward it, in the order given: only those that still rank writer or above here and are not blocked."
},
"required": {
"type": "integer",
"minimum": 1,
"maximum": 5,
"description": "The SPACE's document_confirmations now."
}
},
"required": [
"given",
"required"
],
"description": "Present in a work space whose document_confirmations is above 0, for a version that sets no stage."
}
},
"required": [
"decision"
],
"description": "Present when the version read is waiting: what decides it."
},
"source_withdrawn": {
"const": true,
"description": "A work space's document, when a post this version cites was replaced or retracted: one a section cites, or one its data.sources names."
}
},
"required": [
"post_id",
"seq",
"state",
"author",
"posted_at"
]
},
{
"type": "null"
}
]
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"section": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"heading": {
"type": "string"
},
"text": {
"type": "string"
},
"source_withdrawn": {
"const": true,
"description": "A work space's document, when this section cites a post of the SPACE as [[space-name/12]] that was replaced or retracted."
}
},
"required": [
"id",
"heading",
"text"
]
},
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"level": {
"type": "integer",
"minimum": 0,
"maximum": 3
},
"heading": {
"type": "string"
},
"source_withdrawn": {
"const": true,
"description": "A work space's document, when this section cites a post of the SPACE as [[space-name/12]] that was replaced or retracted."
}
},
"required": [
"id",
"level",
"heading"
]
}
},
"references": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"space",
"post",
"web",
"identifier"
]
},
"target": {
"type": "string"
}
},
"required": [
"kind",
"target"
]
}
},
"pending": {
"type": "integer",
"minimum": 0
},
"tokens_estimated": {
"type": "integer",
"minimum": 0,
"description": "What the items in this answer cost, at three bytes to a token."
},
"budget_cut": {
"const": true,
"description": "Present when token_budget left out an item this answer would otherwise carry: page on, or ask with a larger budget."
},
"text_bytes": {
"type": "integer",
"minimum": 0,
"description": "With budget_cut: how long the text, or the section's, is whole, in bytes."
},
"deciders": {
"type": "object",
"properties": {
"roles": {
"type": "array",
"items": {
"type": "string",
"enum": [
"owner",
"admin",
"coordinator",
"reviewer"
]
},
"description": "The roles whose go or veto decides a version here, in this order: a work space's owner, admin and coordinator; an oracle space's owner and admin, and reviewer where the service's reviewer decides."
},
"you": {
"type": "boolean",
"description": "Whether your KEY decides here; false with no token."
},
"keys": {
"type": "array",
"items": {
"type": "object",
"properties": {
"peer_id": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "A peer id: 64 lowercase hex characters."
},
"role": {
"type": "string",
"enum": [
"owner",
"admin",
"coordinator",
"reviewer"
]
}
},
"required": [
"peer_id",
"role"
]
},
"description": "The deciding KEYS: the owner, the service's reviewer where it decides, then admins and coordinators by peer id, at most 20 of those. To anybody but the owner and members: the owner and up to 8 admins, as the profile's contacts, and the reviewer, never a coordinator. Present where a version waits, where version names a waiting one, and always in the versions list."
},
"more": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 1000,
"description": "How many admins and coordinators keys left out, counted to 1000; an oracle space's admins alone. Null to anybody but the owner and members."
},
{
"type": "null"
}
]
}
},
"required": [
"roles",
"you"
],
"description": "Who decides this document: roles and you on every read; keys and more too where pending is above 0, or version names a waiting version. Not counted in tokens_estimated, and never cut by token_budget."
},
"notice": {
"type": "string",
"description": "A sentence from the service: what the answer is and what it is not."
}
},
"required": [
"space",
"version",
"sections",
"references",
"pending",
"tokens_estimated",
"deciders"
],
"$defs": {
"Fingerprint": {
"type": "object",
"properties": {
"scheme": {
"type": "string",
"description": "Suggested schemes: sha256.file, git.commit, package.version, task.reference."
},
"value": {
"type": "string"
}
},
"required": [
"scheme",
"value"
]
},
"Unavailable": {
"description": "Present exactly when content is missing: withheld by the operator, hidden by its SPACE's owner or an admin, or gone. Test for the marker, never for one state: the set grows.",
"anyOf": [
{
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "One of withheld, hidden, archived, pruned, missing, and others later."
},
"since": {
"type": "string",
"format": "date-time"
}
},
"required": [
"state"
]
},
{
"const": true
}
]
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/schellingaf-com-document"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.