Docs
Read doc pages, their published revisions and versions. The document-space operations are listed for the apps.
#The page for the reading pane — head version (or published revision), tag, publication and affordances
/doc-pages/{pageId}Path parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenant | string (uuid) | Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3). |
Responses
200The page; ETag carries its aggregate version.application/json
#The page's published revisions, newest first
/doc-pages/{pageId}/revisionsPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenant | string (uuid) | Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3). |
Responses
200A page of revisions.application/json
#The page's retained versions, newest first, with the revisions that bind them
/doc-pages/{pageId}/versionsPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenant | string (uuid) | Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3). |
Responses
200A page of versions.application/json
#One version's frozen title and body
/doc-pages/{pageId}/versions/{number}Path parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
numberrequired | integer | Min 1 |
Headers
X-Kanso-Tenant | string (uuid) | Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3). |
Responses
200The version.application/json
#One level of the project's page tree (the top level, or one parent's children)
/projects/{projectKey}/doc-pagesPath parameters
projectKeyrequired | string | Pattern |
Query parameters
parentId | string (uuid) | Omit for the top level. |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenant | string (uuid) | Optional with a token: the token names its tenant. When you send it, it must equal the token's tenant (05-api §8.3). |
Responses
200The level's live nodes in tree order with counts and the subtitle facts.application/json
#Change the title, meeting date or child order (never the body)
/doc-pages/{pageId}Path parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/merge-patch+jsonrequired
Loading the schema…
Responses
200The page; a title change carries the retitle version as the head when one was recorded.application/json
#Move the node and its children to the trash, exactly as previewed
/doc-pages/{pageId}Path parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Query parameters
previewed | string | The comma-separated page ids of the deletion preview (1–501). Exactly one of previewed and previewDigest; previewDigest is required above 501 pages (Spec DS-1, F-DOC-13.R20). Neither, both or more than 501 ids answer 422 validation.failed with doc_page.preview_missing; a malformed id or a list form answers 400 query.invalid. Max length 18600 |
previewDigest | string | Spec DS-1 — the previewDigest of the deletion preview (F-DOC-13.R20), as the preview gives it. A malformed digest or a list form answers 400 query.invalid. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Responses
204The batch is in the trash.
No body.
#A tenant Admin opens a page outside its audience — an explicit act, audited with a reason (register §76)
/doc-pages/{pageId}/admin-accessPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The page as the Admin may read it for this purpose.application/json
#The files attached to a page, with their state and where they are used
/doc-pages/{pageId}/attachmentsPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The attachments.application/json
#Bind an uploaded file (purpose attachment, target doc_page) to the page
/doc-pages/{pageId}/attachmentsPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The file was already attached; the existing attachment.application/json
201The attachment.application/json
#Detach a file that no current published revision references
/doc-pages/{pageId}/attachments/{fileId}Path parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
fileIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
204The file is detached.
No body.
#The readable pages that link to this page
/doc-pages/{pageId}/backlinksPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of backlinks.application/json
#Apply a new body (rich text or Markdown) to a page's draft as one recorded version, from a named base
/doc-pages/{pageId}/bodyPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The outcome and the recorded version.application/json
#What tagging this page would show to which client, now
/doc-pages/{pageId}/client-tagPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The current client organisation and version, whether a revision becomes visible at once, and the guest count.application/json
#Share the page with the project's client (stamped) or stop sharing it
/doc-pages/{pageId}/client-tagPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The page with its tag state; unchanged when the request matched the current state.application/json
#Open a document session (write or watch) and receive a short-lived token for the collaboration server
/doc-pages/{pageId}/collab-sessionsPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Request body application/jsonrequired
Loading the schema…
Responses
201The grant; mode may be narrower than requested, with the reason.application/json
#Re-decide access and receive a fresh single-use token with the current mode
/doc-pages/{pageId}/collab-sessions/{sessionId}/renewPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
sessionIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A fresh grant; the mode may be narrower than before.application/json
#A page's comment threads by state, newest activity first
/doc-pages/{pageId}/comment-threadsPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Query parameters
state | string | One of: |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of threads.application/json
#Open a page-level or an inline comment thread with its first comment
/doc-pages/{pageId}/comment-threadsPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201The new thread; an inline thread is open, and orphaned when a recorded version does not hold its mark.application/json
#Copy a page, with or without its children, to a parent of any space the member can edit
/doc-pages/{pageId}/copyPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201The copy's root page and the page count; subtreeJob is present when a job finishes a large copy.application/json
#The exact pages a delete would trash that the reader can read, with the tagged count, the restore deadline and the blockers
/doc-pages/{pageId}/deletion-previewPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The preview.application/json
#Admin repair — start a new epoch of the draft from the head version, fencing the old one
/doc-pages/{pageId}/draft/resetPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
202The epoch advanced and sessions closed; the reset version follows when the server confirms.application/json
#Duplicate a page: the page alone as "<title> (copy)", right after the original
/doc-pages/{pageId}/duplicateOwner Q5 (24 Nov 2026, register §230 add. 100). The edit right on the page; a page only (409 doc_page.not_duplicable for a section or a whiteboard). The copy is not shared with a client and not published (register §75); it has no comments, versions, watchers or attachments of the original; its creator watches it. Its body — the original's current body, with copies of the files the body shows — arrives after the commit.
Path parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
201The copy, untagged and without a version yet.application/json
#One page's Git conflict with the Git body
/doc-pages/{pageId}/git-conflictPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The conflict.application/json
#Keep Youniton's or Git's content for a page in conflict
/doc-pages/{pageId}/git-conflict/resolvePath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The page after the resolution.application/json
#Keep a page and its subtree out of Git sync, or let them back in — the page owner or a project admin (register §76)
/doc-pages/{pageId}/git-exclusionPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The visibility view with keepOutOfGit.application/json
#The outgoing links of a page's latest version, each in its state for the reader
/doc-pages/{pageId}/linksPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The links; truncated is true when the version had more than 1,000 targets.application/json
#A page's latest version or published revision as Markdown
/doc-pages/{pageId}/markdownPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Query parameters
source | string | One of: |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The page as Markdown.application/json
#What a move of the page and its subtree would change — size, audience, blockers and depth
/doc-pages/{pageId}/move-previewPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Query parameters
spaceId | string (uuid) | |
parentId | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The preview.application/json
#Hand a page to another owner — the page owner or a project admin
/doc-pages/{pageId}/ownerPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The visibility view with the new owner.application/json
#Move a node to a parent (or the top level) between two neighbours
/doc-pages/{pageId}/positionPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The node with its new parent and position.application/json
#Set or clear one page's public flag
/doc-pages/{pageId}/publicPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The flag and whether the page is on the internet now.application/json
#Publish exactly the named version whose digest the dialog showed
/doc-pages/{pageId}/publishPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201The new revision (200 with the current revision when that version is already published).application/json
#The doc page's presence channel, with the project's audience epoch (F-WRK-37)
/doc-pages/{pageId}/realtimepresence-tenant.{t}.project.{p}.doc.{page}.v{n}.a{m} (R03a), opened like the page's read (DocsGate::page): a hidden page, a client audience or the Docs module off answer as the read does. Docs builds it.
Path parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The channel to join.application/json
#Restore the trashed batch this page belongs to
/doc-pages/{pageId}/restorePath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/json
Loading the schema…
Responses
200The restored nodes in their places that the restorer can read now (Spec DS-1, F-DOC-13.R21); empty with meta.subtreeJob when a subtree job finishes the restore.application/json
#Record a version of the draft now for the Publish dialog and answer it with its diff and outcome
/doc-pages/{pageId}/versionsPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The answered version (recorded, unchanged, covered, or the head when superseded) with its diff against the current revision.application/json
#Apply a version to the live draft as a new version, optionally publishing the result
/doc-pages/{pageId}/versions/{number}/restorePath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
numberrequired | integer | Min 1 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/json
Loading the schema…
Responses
200The recording outcome, the answered version and whether it was published.application/json
#The block diff and the title change between two versions of a page
/doc-pages/{pageId}/versions/comparePath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Query parameters
fromrequired | integer | Min 1 |
torequired | integer | Min 1 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The diff.application/json
#A page's owner, own and inherited audience, edit restriction and client setting
/doc-pages/{pageId}/visibilityPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The visibility view.application/json
#Set a page's audience (kind view) or edit restriction (kind edit) — the page owner or a project admin, or a tenant Admin with an override reason
/doc-pages/{pageId}/visibilityPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The visibility view; subtreeJob is present when a job rewrites a large subtree.application/json
#Watch a page
/doc-pages/{pageId}/watchThe caller (an internal member who can read the page) starts to watch it; idempotent by state, no If-Match and no Idempotency-Key. A hidden, foreign, trashed or unknown page and a client answer 404 doc_page.not_found; a preview answers 403 preview.read_only.
Path parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The member's watch state for the page and its space.application/json
#Stop watching a page
/doc-pages/{pageId}/watchThe caller stops watching the page; idempotent by state. The refusals are the ones of watchDocPage.
Path parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The member's watch state.application/json
#Hide the page from clients until the next publication
/doc-pages/{pageId}/withdraw-publicationPath parameters
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
200The page with its publication state withdrawn.application/json
#Create a page or section at the end of the top level or of a parent
/projects/{projectKey}/doc-pagesPath parameters
projectKeyrequired | string | Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201The created page, untagged and without a version.application/json
#The project's trashed nodes, newest first, with their restore deadline
/projects/{projectKey}/doc-pages/trashPath parameters
projectKeyrequired | string | Pattern |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of trashed nodes.application/json
#XM-989 — Empty trash, deleting every trashed node of the project forever (project Admins; at most 500 per call)
/projects/{projectKey}/doc-pages/trashOwner Q18 (22 Nov 2026). Needs administer on an active project. Per page exactly what docs:purge-trash does — the evidence guard, then the deletes or the evidence tombstone, children first. Each page is audited doc.deleted_forever. hasMore true asks for another call.
Path parameters
projectKeyrequired | string | Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The pages deleted forever and whether the trash holds more.application/json
#XM-989 — Delete forever one trashed node with its trashed subpages of its delete batch (project Admins)
/projects/{projectKey}/doc-pages/trash/{pageId}Owner Q18 (22 Nov 2026). Needs administer on an active project; a page that is not in this project's trash answers 404 doc_page.not_found. The evidence guard of docs:purge-trash applies; each page is audited doc.deleted_forever.
Path parameters
projectKeyrequired | string | Pattern |
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The pages deleted forever (the node and its trashed subpages).application/json
#The team's doc edits of the last 7 days and the 7 days before, with the latest edited pages (the Documents sidebar)
/doc-activityHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The edit summary under the reader's draft read.application/json
#Apply or reject an agent's pending change
/doc-agent-changes/{changeId}/decisionPath parameters
changeIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The change after the decision.application/json
#The readable pages that link to a ticket, a knowledge item, an opportunity or a request
/doc-backlinksQuery parameters
targetKindrequired | string | One of: |
targetRefrequired | string | A ticket key, a knowledge item key, an opportunity id or a request key. Min length 1 · Max length 60 |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of backlinks.application/json
#One thread with its comments, 100 per page
/doc-comment-threads/{threadId}Path parameters
threadIdrequired | string (uuid) |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The thread.application/json
#Reply in a thread (and reopen a resolved one when asked)
/doc-comment-threads/{threadId}/commentsPath parameters
threadIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201The new comment.application/json
#Reopen a resolved thread
/doc-comment-threads/{threadId}/reopenPath parameters
threadIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Responses
200The thread, open or orphaned.application/json
#Resolve a thread
/doc-comment-threads/{threadId}/resolvePath parameters
threadIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Responses
200The resolved thread.application/json
#Edit an own comment
/doc-comments/{commentId}Path parameters
commentIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Request body application/jsonrequired
Loading the schema…
Responses
200The edited comment.application/json
#Delete an own comment, or remove one as a space admin
/doc-comments/{commentId}Path parameters
commentIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
204The comment is a tombstone.
No body.
#Find pages by their words in one space or in every space the reader can read
/doc-searchQuery parameters
qrequired | string | Min length 1 · Max length 120 |
spaceId | string (uuid) | |
lastEditorId | string (uuid) | |
updatedFrom | string (date) | |
updatedTo | string (date) | |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of hits; meta.limitReached is true when more than 200 results exist.application/json
#The spaces the reader can read, with the reader's level
/doc-spacesQuery parameters
kind | string | One of: |
q | string | A part of the space's name, without regard to case. It applies in every lifecycle (live, archived and trash). Min length 2 · Max length 80 |
lifecycle | string | live (the active spaces) by default; archived lists the archived spaces and trash the deleted spaces that the reader administers (owner, 23 Nov 2026). One of: |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of spaces.application/json
#Create a tenant or team space with its default grants and its home page
/doc-spacesHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201The new space.application/json
#One space with its settings, counts and the reader's possible actions
/doc-spaces/{spaceId}Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The space.application/json
#Change a space's key, name, description, home page or default template (the access settings are setDocSpaceAccessSettings)
/doc-spaces/{spaceId}Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/merge-patch+jsonrequired
Loading the schema…
Responses
200The space.application/json
#Move a tenant or team space and all its pages to the trash, exactly as previewed
/doc-spaces/{spaceId}Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
pageCountrequired | integer | Min 0 |
clientVisibleCount | integer | 0 for a company or team space (no client-visible page in this form). Min 0 |
publicCount | integer | 0 for a company or team space (no public page in this form). Min 0 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Responses
204The space and its pages are in the trash.
No body.
#Change the space settings that decide who sees what — the default audience, the reader source and client comments
/doc-spaces/{spaceId}/access-settingsPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The space.application/json
#The space's recent changes for the pages the reader can read
/doc-spaces/{spaceId}/activityPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
kind | string | One of: |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of activity rows.application/json
#The pending agent changes of a space for the members who can apply them
/doc-spaces/{spaceId}/agent-changesPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
state | string | One of: |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of agent changes.application/json
#Make a space read-only
/doc-spaces/{spaceId}/archivePath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Responses
200The archived space.application/json
#The projects whose portals a tenant or team space is linked to, with each link's state
/doc-spaces/{spaceId}/client-linksPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The links.application/json
#Link (or re-link) a tenant or team space to a project's portal for the confirmed client version
/doc-spaces/{spaceId}/client-links/{projectKey}Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Request body application/jsonrequired
Loading the schema…
Responses
200The current link.application/json
#Remove a space's link to a project's portal
/doc-spaces/{spaceId}/client-links/{projectKey}Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
204The link is removed.
No body.
#What linking the space to the project's portal would show to the client
/doc-spaces/{spaceId}/client-links/{projectKey}/consequencePath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The consequence and the client version to confirm.application/json
#What a delete of the space would hide, with the restore deadline and any blocker
/doc-spaces/{spaceId}/deletion-previewPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The preview.application/json
#Export the pages of a space that the requester can read as a ZIP of Markdown files
/doc-spaces/{spaceId}/exportsPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
202The export operation.application/json
#The space's Git sync and its status
/doc-spaces/{spaceId}/git-syncPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The sync.application/json
#Create or change the space's Git sync (branch, folder, direction, content)
/doc-spaces/{spaceId}/git-syncPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The sync; an initial or reconcile run is queued.application/json
#Stop the space's Git sync (the repository's files stay)
/doc-spaces/{spaceId}/git-syncPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
204The sync is disconnected.
No body.
#The pages that changed in Git and in Youniton since the last sync
/doc-spaces/{spaceId}/git-sync/conflictsPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of conflicts (without the Git body; read one page's conflict for it).application/json
#The sync's runs, newest first, for 90 days
/doc-spaces/{spaceId}/git-sync/runsPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of runs.application/json
#Start a reconcile run now
/doc-spaces/{spaceId}/git-sync/runsPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
202The queued run.application/json
#The grants of a tenant or team space with the principals' current names
/doc-spaces/{spaceId}/grantsPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The grants and the version to send back.application/json
#Replace the grants of a tenant or team space
/doc-spaces/{spaceId}/grantsPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The new grants.application/json
#Every page of a space the reader can read, in tree order, 200 per page
/doc-spaces/{spaceId}/page-indexPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of the index.application/json
#One level of a space's tree (the top level, or one parent's children)
/doc-spaces/{spaceId}/pagesPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
parentId | string (uuid) | |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The level.application/json
#Create a page or a section in a space, at any allowed depth, from a template or empty
/doc-spaces/{spaceId}/pagesPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201The new page.application/json
#The pages of the space that carry the public flag
/doc-spaces/{spaceId}/public-pagesPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of public pages.application/json
#Set or clear the public flag of up to 200 named pages
/doc-spaces/{spaceId}/public-pagesPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The counts of changed and unchanged pages.application/json
#The space's public site, its status, address and domain
/doc-spaces/{spaceId}/public-sitePath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The site.application/json
#Create or change the space's public site configuration (draft until published)
/doc-spaces/{spaceId}/public-sitePath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The site.application/json
#Add or replace the site's custom domain (pending until verified)
/doc-spaces/{spaceId}/public-site/domainPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Request body application/jsonrequired
Loading the schema…
Responses
200The domain with the DNS records to create.application/json
#Remove the site's custom domain
/doc-spaces/{spaceId}/public-site/domainPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
204The domain is removed.
No body.
#Check the domain's DNS records now
/doc-spaces/{spaceId}/public-site/domain/verifyPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
200The domain's state after the check.application/json
#Put the public site on the internet
/doc-spaces/{spaceId}/public-site/publishPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
200The published site.application/json
#Take the public site off the internet
/doc-spaces/{spaceId}/public-site/unpublishPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
200The unpublished site.application/json
#Publish up to 50 pages of a space at once, each by its exact version and digest — all or none
/doc-spaces/{spaceId}/publish-batchPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201One new revision per page.application/json
#The channel of a company or team space's doc_space.changed (realtime, owner 23 Nov 2026)
/doc-spaces/{spaceId}/realtimeprivate-tenant.{t}.doc-space.{s}.v{n}.m{audience} — n is the audience epoch: it moves when a membership, a role or a sign-in of the tenant narrows. The audience is a team space's member fingerprint or all for a company space, so a removal from the team renames it. Opened as the space's read: another team's space, a client and an unknown id answer 404. The SPA joins it while the space is on screen and reads the tree, the trash and the open page again on doc_space.changed, and the name again on channels.rotated.
Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The channel to join.application/json
#Connect the chosen repository to the space with a consumed token check
/doc-spaces/{spaceId}/repository-connectionsPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201Connected; a manual hook's URL and secret are returned once.application/json
#Verify a pasted token for a space's Git sync (write access) and list the repositories it can write
/doc-spaces/{spaceId}/repository-token-checksPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Request body application/jsonrequired
Loading the schema…
Responses
200The verified token's facts and repositories; never the token.application/json
#Restore a deleted space with the pages of its delete batch
/doc-spaces/{spaceId}/restorePath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
200The restored space.application/json
#The trashed pages of a space that the reader may see, newest first, with their restore deadline
/doc-spaces/{spaceId}/trashPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of trashed pages; a page that the reader could not read when it was trashed is left out without a count.application/json
#Empty trash of a company or team space — every trashed page of the space deleted forever (space admins; at most 500 per call)
/doc-spaces/{spaceId}/trashAs built (owner #45 and owner Q18; DocSpaceController::emptyTrash, PurgeDocTrashHandler): the space's administer (a tenant admin outside the team is audited, owner Q10); an archived space's trash is read-only (F-DOC-11.R10). Per page exactly what docs:purge-trash does, as F-DOC-05's emptyDocTrash; each page is audited doc.deleted_forever. hasMore true asks for another call.
Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The pages deleted forever and whether the trash holds more.application/json
#Delete forever one trashed page of a company or team space with its trashed subpages (space admins)
/doc-spaces/{spaceId}/trash/{pageId}As built (owner #45 and owner Q18; DocSpaceController::purge, PurgeDocTrashHandler): the space's administer; a page that is not in this space's trash answers 404 doc_page.not_found; an archived space's trash is read-only (F-DOC-11.R10). The evidence guard of docs:purge-trash applies; each page is audited doc.deleted_forever.
Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
pageIdrequired | string (uuid) | A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The pages deleted forever (the page and its trashed subpages).application/json
#Make an archived space writable again
/doc-spaces/{spaceId}/unarchivePath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Responses
200The active space.application/json
#The space's pages whose latest version is not published
/doc-spaces/{spaceId}/unpublished-changesPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of pages with unpublished changes.application/json
#Watch every page of a space
/doc-spaces/{spaceId}/watchThe caller (an internal member who can read the space) starts to watch every page of it; idempotent by state. Until F-DOC-11 the space is the project's own space: spaceId is the project id (getProjectDocSpace answers it as id), and a project outside the caller's scope, of another tenant or unknown answers 404 project.not_found, as getProjectDocSpace does; the Docs module off answers 403 feature.unavailable, a preview 403 preview.read_only.
Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The watch state (page is false).application/json
#Stop watching a space
/doc-spaces/{spaceId}/watchThe caller stops watching the space; idempotent by state. The refusals are the ones of watchDocSpace.
Path parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The watch state.application/json
#The progress of a large move, restriction, client-setting change, copy or restore — its starter and the project admins of its root only, as a percentage
/doc-subtree-jobs/{jobId}Path parameters
jobIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The job.application/json
#The templates offered for one space — the space's, the tenant's and the built-in ones
/doc-templatesQuery parameters
spaceIdrequired | string (uuid) | |
category | string | One of: |
includeArchived | boolean | Template managers only; archived templates are listed after the live ones. Default: |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of templates.application/json
#Save a page as a space or tenant template, or replace a template's body from a page (owner Q15)
/doc-templatesHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
If-Match | string | As built (owner Q15, 24 November 2026; DocTemplateController::create, IfMatch::optional): "Replace <name>" ( Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
201As built (owner Q15, 24 November 2026; DocTemplateController::create): the template's id and its current version — 1 for a new template, the next version for a replace.application/json
#Rename, describe, recategorise, archive or unarchive a template
/doc-templates/{templateId}Path parameters
templateIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/merge-patch+jsonrequired
Loading the schema…
Responses
200As built (owner Q15, 24 November 2026; DocTemplateController::update): {name} renamed the template; its id and current version.application/json
204As built (owner Q15, 24 November 2026): {deleted: true} deleted the template for good; no body.
No body.
#The built-in templates with their "Offered" switch — the registry key docs.templates.builtins (owner Q15; a tenant admin)
/doc-templates/builtinsHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200Every built-in; Blank page is locked on. meta.version is the If-Match of a change.application/json
#Set the built-ins that New page offers (Blank page is always kept)
/doc-templates/builtinsHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The switches after the change.application/json
#The saved templates a manager sees — every live template for a tenant admin, or one space's for its admin (owner Q15)
/doc-templates/managedQuery parameters
spaceId | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The live saved templates, by name.application/json
#The trashed pages of the active company and team spaces whose trash the reader may read, newest first
/doc-trashThe Documents home's Trash tab (owner, 24 Nov 2026; register §230 add. 99). A space adds rows only when the reader passes the two checks of listDocSpaceTrash (view and edit_docs on the space). The answer has no total. Restore and purge use the operations of the row's space.
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of trashed pages with their spaces.application/json
#Usage per space for Admins — pages, versions, attachment bytes, comments, public pages
/doc-usageQuery parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of usage rows.application/json
#The project space of one project
/projects/{projectKey}/doc-spacePath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The project space.application/json
#The tenant and team spaces that the project's AI chat also reads
/projects/{projectKey}/related-doc-spacesPath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The related spaces the reader can read.application/json
#Replace the project's related spaces (at most 10)
/projects/{projectKey}/related-doc-spacesPath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The related spaces.application/json
Was this helpful?