Youniton Docs

Docs

Read doc pages, their published revisions and versions. The document-space operations are listed for the apps.

5 token operations · 112 app-only

#The page for the reading pane — head version (or published revision), tag, publication and affordances

GET/doc-pages/{pageId}
Personal tokendocs:readSessionF-DOC-01

Path parameters

pageIdrequiredstring (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-Tenantstring (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
Errors403404One problem shape

#The page's published revisions, newest first

GET/doc-pages/{pageId}/revisions
Personal tokendocs:readSessionF-DOC-09

Path parameters

pageIdrequiredstring (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-Tenantstring (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
Errors400404One problem shape

#The page's retained versions, newest first, with the revisions that bind them

GET/doc-pages/{pageId}/versions
Personal tokendocs:readSessionF-DOC-04

Path parameters

pageIdrequiredstring (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-Tenantstring (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
Errors400404One problem shape

#One version's frozen title and body

GET/doc-pages/{pageId}/versions/{number}
Personal tokendocs:readSessionF-DOC-04

Path parameters

pageIdrequiredstring (uuid)

A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found.

numberrequiredinteger

Min 1

Headers

X-Kanso-Tenantstring (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)

GET/projects/{projectKey}/doc-pages
Personal tokendocs:readSessionF-DOC-01

Path parameters

projectKeyrequiredstring

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Query parameters

parentIdstring (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-Tenantstring (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
Errors400403404One problem shape

#Change the title, meeting date or child order (never the body)

PATCH/doc-pages/{pageId}
Session (app only)If-MatchF-DOC-05

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

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
Errors403404409412422428One problem shape

#Move the node and its children to the trash, exactly as previewed

DELETE/doc-pages/{pageId}
Session (app only)If-MatchF-DOC-05

Path parameters

pageIdrequiredstring (uuid)

A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found.

Query parameters

previewedstring

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

previewDigeststring

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 ^[0-9a-f]{64}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

204The batch is in the trash.

No body.

Errors400403404409412422428One problem shape

#A tenant Admin opens a page outside its audience — an explicit act, audited with a reason (register §76)

POST/doc-pages/{pageId}/admin-access
Session (app only)Idempotency-KeyF-DOC-12

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The page as the Admin may read it for this purpose.application/json
Errors403404One problem shape

#The files attached to a page, with their state and where they are used

GET/doc-pages/{pageId}/attachments
Session (app only)F-DOC-17

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (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

POST/doc-pages/{pageId}/attachments
Session (app only)Idempotency-KeyF-DOC-17

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The file was already attached; the existing attachment.application/json
201The attachment.application/json
Errors403404409422One problem shape

#Detach a file that no current published revision references

DELETE/doc-pages/{pageId}/attachments/{fileId}
Session (app only)F-DOC-17

Path parameters

pageIdrequiredstring (uuid)

A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found.

fileIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (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.

Errors403404409One problem shape

#Apply a new body (rich text or Markdown) to a page's draft as one recorded version, from a named base

PUT/doc-pages/{pageId}/body
Session (app only)Idempotency-KeyF-DOC-24

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The outcome and the recorded version.application/json
Errors403404409413422One problem shape

#What tagging this page would show to which client, now

GET/doc-pages/{pageId}/client-tag
Session (app only)F-DOC-03

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (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
Errors403404409One problem shape

#Share the page with the project's client (stamped) or stop sharing it

PUT/doc-pages/{pageId}/client-tag
Session (app only)If-MatchF-DOC-03

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The page with its tag state; unchanged when the request matched the current state.application/json
Errors403404409412422428One problem shape

#Open a document session (write or watch) and receive a short-lived token for the collaboration server

POST/doc-pages/{pageId}/collab-sessions
Session (app only)F-DOC-06

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (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
Errors403404409422503One problem shape

#Re-decide access and receive a fresh single-use token with the current mode

POST/doc-pages/{pageId}/collab-sessions/{sessionId}/renew
Session (app only)F-DOC-07

Path parameters

pageIdrequiredstring (uuid)

A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found.

sessionIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404409One problem shape

#A page's comment threads by state, newest activity first

GET/doc-pages/{pageId}/comment-threads
Session (app only)F-DOC-15

Path parameters

pageIdrequiredstring (uuid)

A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found.

Query parameters

statestring

One of: open resolved orphaned all · Default: "open"

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (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

POST/doc-pages/{pageId}/comment-threads
Session (app only)Idempotency-KeyF-DOC-15

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

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
Errors403404409422429One problem shape

#Copy a page, with or without its children, to a parent of any space the member can edit

POST/doc-pages/{pageId}/copy
Session (app only)Idempotency-KeyF-DOC-13

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

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
Errors403404409422One problem shape

#The exact pages a delete would trash that the reader can read, with the tagged count, the restore deadline and the blockers

GET/doc-pages/{pageId}/deletion-preview
Session (app only)F-DOC-05

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (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
Errors403404One problem shape

#Admin repair — start a new epoch of the draft from the head version, fencing the old one

POST/doc-pages/{pageId}/draft/reset
Session (app only)Idempotency-KeyIf-MatchF-DOC-08

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

202The epoch advanced and sessions closed; the reset version follows when the server confirms.application/json
Errors403404409412428One problem shape

#Duplicate a page: the page alone as "<title> (copy)", right after the original

POST/doc-pages/{pageId}/duplicate
Session (app only)Idempotency-KeyF-DOC-13

Owner 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

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

201The copy, untagged and without a version yet.application/json
Errors403404409One problem shape

#One page's Git conflict with the Git body

GET/doc-pages/{pageId}/git-conflict
Session (app only)F-DOC-22

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (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

POST/doc-pages/{pageId}/git-conflict/resolve
Session (app only)Idempotency-KeyF-DOC-22

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The page after the resolution.application/json
Errors403404409One problem shape

#Keep a page and its subtree out of Git sync, or let them back in — the page owner or a project admin (register §76)

PUT/doc-pages/{pageId}/git-exclusion
Session (app only)If-MatchF-DOC-22

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The visibility view with keepOutOfGit.application/json
Errors403404412428One problem shape

#A page's latest version or published revision as Markdown

GET/doc-pages/{pageId}/markdown
Session (app only)F-DOC-24

Path parameters

pageIdrequiredstring (uuid)

A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found.

Query parameters

sourcestring

One of: head published_revision · Default: "head"

Headers

X-Kanso-Tenantrequiredstring (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

GET/doc-pages/{pageId}/move-preview
Session (app only)F-DOC-13

Path parameters

pageIdrequiredstring (uuid)

A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found.

Query parameters

spaceIdstring (uuid)
parentIdstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#Hand a page to another owner — the page owner or a project admin

PUT/doc-pages/{pageId}/owner
Session (app only)If-MatchF-DOC-12

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The visibility view with the new owner.application/json
Errors403404409412428One problem shape

#Move a node to a parent (or the top level) between two neighbours

PUT/doc-pages/{pageId}/position
Session (app only)If-MatchF-DOC-05

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The node with its new parent and position.application/json
Errors403404409412428One problem shape

#Set or clear one page's public flag

PUT/doc-pages/{pageId}/public
Session (app only)If-MatchF-DOC-21

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The flag and whether the page is on the internet now.application/json
Errors403404409412428One problem shape

#Publish exactly the named version whose digest the dialog showed

POST/doc-pages/{pageId}/publish
Session (app only)Idempotency-KeyF-DOC-09

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The new revision (200 with the current revision when that version is already published).application/json
Errors403404409422One problem shape

#The doc page's presence channel, with the project's audience epoch (F-WRK-37)

GET/doc-pages/{pageId}/realtime
Session (app only)F-WRK-37

presence-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

pageIdrequiredstring (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-Tenantrequiredstring (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
Errors403404One problem shape

#Restore the trashed batch this page belongs to

POST/doc-pages/{pageId}/restore
Session (app only)Idempotency-KeyF-DOC-05

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

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
Errors403404409One problem shape

#Record a version of the draft now for the Publish dialog and answer it with its diff and outcome

POST/doc-pages/{pageId}/versions
Session (app only)F-DOC-09

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (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
Errors403404409503One problem shape

#Apply a version to the live draft as a new version, optionally publishing the result

POST/doc-pages/{pageId}/versions/{number}/restore
Session (app only)Idempotency-KeyF-DOC-04

Path parameters

pageIdrequiredstring (uuid)

A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found.

numberrequiredinteger

Min 1

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/json

Loading the schema…

Responses

200The recording outcome, the answered version and whether it was published.application/json
Errors403404409503One problem shape

#The block diff and the title change between two versions of a page

GET/doc-pages/{pageId}/versions/compare
Session (app only)F-DOC-19

Path parameters

pageIdrequiredstring (uuid)

A doc page id; a hidden, foreign or (for readers without edit_docs) trashed page answers 404 doc_page.not_found.

Query parameters

fromrequiredinteger

Min 1

torequiredinteger

Min 1

Headers

X-Kanso-Tenantrequiredstring (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
Errors400403404One problem shape

#A page's owner, own and inherited audience, edit restriction and client setting

GET/doc-pages/{pageId}/visibility
Session (app only)F-DOC-12

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (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

PUT/doc-pages/{pageId}/visibility
Session (app only)If-MatchF-DOC-12

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The visibility view; subtreeJob is present when a job rewrites a large subtree.application/json
Errors403404409412422428One problem shape

#Watch a page

PUT/doc-pages/{pageId}/watch
Session (app only)F-DOC-15

The 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

pageIdrequiredstring (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-Tenantrequiredstring (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
Errors403404One problem shape

#Stop watching a page

DELETE/doc-pages/{pageId}/watch
Session (app only)F-DOC-15

The caller stops watching the page; idempotent by state. The refusals are the ones of watchDocPage.

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (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
Errors403404One problem shape

#Hide the page from clients until the next publication

POST/doc-pages/{pageId}/withdraw-publication
Session (app only)Idempotency-KeyF-DOC-09

Path parameters

pageIdrequiredstring (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-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The page with its publication state withdrawn.application/json
Errors403404409One problem shape

#Create a page or section at the end of the top level or of a parent

POST/projects/{projectKey}/doc-pages
Session (app only)Idempotency-KeyF-DOC-02

Path parameters

projectKeyrequiredstring

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The created page, untagged and without a version.application/json
Errors403404409422One problem shape

#The project's trashed nodes, newest first, with their restore deadline

GET/projects/{projectKey}/doc-pages/trash
Session (app only)F-DOC-05

Path parameters

projectKeyrequiredstring

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#XM-989 — Empty trash, deleting every trashed node of the project forever (project Admins; at most 500 per call)

DELETE/projects/{projectKey}/doc-pages/trash
Session (app only)F-DOC-05

Owner 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

projectKeyrequiredstring

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404409One problem shape

#XM-989 — Delete forever one trashed node with its trashed subpages of its delete batch (project Admins)

DELETE/projects/{projectKey}/doc-pages/trash/{pageId}
Session (app only)F-DOC-05

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

projectKeyrequiredstring

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

pageIdrequiredstring (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-Tenantrequiredstring (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
Errors403404409One problem shape

#The team's doc edits of the last 7 days and the 7 days before, with the latest edited pages (the Documents sidebar)

GET/doc-activity
Session (app only)F-DOC-01

Headers

X-Kanso-Tenantrequiredstring (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

POST/doc-agent-changes/{changeId}/decision
Session (app only)Idempotency-KeyF-DOC-24

Path parameters

changeIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The change after the decision.application/json
Errors403404409One problem shape

#The readable pages that link to a ticket, a knowledge item, an opportunity or a request

GET/doc-backlinks
Session (app only)F-DOC-16

Query parameters

targetKindrequiredstring

One of: ticket knowledge_item opportunity help_desk_request

targetRefrequiredstring

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-Tenantrequiredstring (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
Errors400404One problem shape

#One thread with its comments, 100 per page

GET/doc-comment-threads/{threadId}
Session (app only)F-DOC-15

Path parameters

threadIdrequiredstring (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-Tenantrequiredstring (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)

POST/doc-comment-threads/{threadId}/comments
Session (app only)Idempotency-KeyF-DOC-15

Path parameters

threadIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The new comment.application/json
Errors403404409422429One problem shape

#Reopen a resolved thread

POST/doc-comment-threads/{threadId}/reopen
Session (app only)Idempotency-KeyIf-MatchF-DOC-15

Path parameters

threadIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

200The thread, open or orphaned.application/json
Errors403404412428One problem shape

#Resolve a thread

POST/doc-comment-threads/{threadId}/resolve
Session (app only)Idempotency-KeyIf-MatchF-DOC-15

Path parameters

threadIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

200The resolved thread.application/json
Errors403404412428One problem shape

#Edit an own comment

PATCH/doc-comments/{commentId}
Session (app only)F-DOC-15

Path parameters

commentIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404422One problem shape

#Delete an own comment, or remove one as a space admin

DELETE/doc-comments/{commentId}
Session (app only)F-DOC-15

Path parameters

commentIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (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.

Errors403404One problem shape

#Find pages by their words in one space or in every space the reader can read

GET/doc-search
Session (app only)F-DOC-18

Query parameters

qrequiredstring

Min length 1 · Max length 120

spaceIdstring (uuid)
lastEditorIdstring (uuid)
updatedFromstring (date)
updatedTostring (date)
page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (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
Errors400404422429503One problem shape

#The pages shared with clients across every project that the reader may see (the Documents sidebar)

GET/doc-shared-pages
Session (app only)F-DOC-03

Query parameters

cursorstring

Max length 1024

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The shared pages, newest share first, 50 per page.application/json
Errors400404One problem shape

#The spaces the reader can read, with the reader's level

GET/doc-spaces
Session (app only)F-DOC-11

Query parameters

kindstring

One of: tenant team project

qstring

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

lifecyclestring

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: live archived trash · Default: "live"

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (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
Errors400404One problem shape

#Create a tenant or team space with its default grants and its home page

POST/doc-spaces
Session (app only)Idempotency-KeyF-DOC-11

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The new space.application/json
Errors403404409422One problem shape

#One space with its settings, counts and the reader's possible actions

GET/doc-spaces/{spaceId}
Session (app only)F-DOC-11

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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)

PATCH/doc-spaces/{spaceId}
Session (app only)If-MatchF-DOC-11

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/merge-patch+jsonrequired

Loading the schema…

Responses

200The space.application/json
Errors403404409412422428One problem shape

#Move a tenant or team space and all its pages to the trash, exactly as previewed

DELETE/doc-spaces/{spaceId}
Session (app only)If-MatchF-DOC-11

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Query parameters

pageCountrequiredinteger

Min 0

clientVisibleCountinteger

0 for a company or team space (no client-visible page in this form).

Min 0

publicCountinteger

0 for a company or team space (no public page in this form).

Min 0

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

204The space and its pages are in the trash.

No body.

Errors403404409412428One problem shape

#Change the space settings that decide who sees what — the default audience, the reader source and client comments

PUT/doc-spaces/{spaceId}/access-settings
Session (app only)If-MatchF-DOC-11

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The space.application/json
Errors403404409412422428One problem shape

#The space's recent changes for the pages the reader can read

GET/doc-spaces/{spaceId}/activity
Session (app only)F-DOC-19

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Query parameters

kindstring

One of: created version published withdrawn moved trashed restored commented

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (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

GET/doc-spaces/{spaceId}/agent-changes
Session (app only)F-DOC-24

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Query parameters

statestring

One of: pending applied rejected expired · Default: "pending"

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (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

POST/doc-spaces/{spaceId}/archive
Session (app only)Idempotency-KeyIf-MatchF-DOC-11

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

200The archived space.application/json
Errors403404409One problem shape

#Link (or re-link) a tenant or team space to a project's portal for the confirmed client version

PUT/doc-spaces/{spaceId}/client-links/{projectKey}
Session (app only)F-DOC-20

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404409One problem shape

#Remove a space's link to a project's portal

DELETE/doc-spaces/{spaceId}/client-links/{projectKey}
Session (app only)F-DOC-20

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (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.

Errors403404One problem shape

#What linking the space to the project's portal would show to the client

GET/doc-spaces/{spaceId}/client-links/{projectKey}/consequence
Session (app only)F-DOC-20

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404409One problem shape

#What a delete of the space would hide, with the restore deadline and any blocker

GET/doc-spaces/{spaceId}/deletion-preview
Session (app only)F-DOC-11

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#Export the pages of a space that the requester can read as a ZIP of Markdown files

POST/doc-spaces/{spaceId}/exports
Session (app only)Idempotency-KeyF-DOC-25

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

202The export operation.application/json
Errors403404409One problem shape

#The space's Git sync and its status

GET/doc-spaces/{spaceId}/git-sync
Session (app only)F-DOC-22

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#Create or change the space's Git sync (branch, folder, direction, content)

PUT/doc-spaces/{spaceId}/git-sync
Session (app only)If-MatchF-DOC-22

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The sync; an initial or reconcile run is queued.application/json
Errors403404409412422428One problem shape

#Stop the space's Git sync (the repository's files stay)

DELETE/doc-spaces/{spaceId}/git-sync
Session (app only)F-DOC-22

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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.

Errors403404One problem shape

#The pages that changed in Git and in Youniton since the last sync

GET/doc-spaces/{spaceId}/git-sync/conflicts
Session (app only)F-DOC-22

Path parameters

spaceIdrequiredstring (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-Tenantrequiredstring (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
Errors403404One problem shape

#The sync's runs, newest first, for 90 days

GET/doc-spaces/{spaceId}/git-sync/runs
Session (app only)F-DOC-22

Path parameters

spaceIdrequiredstring (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-Tenantrequiredstring (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
Errors403404One problem shape

#Start a reconcile run now

POST/doc-spaces/{spaceId}/git-sync/runs
Session (app only)Idempotency-KeyF-DOC-22

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

202The queued run.application/json
Errors403404409One problem shape

#The grants of a tenant or team space with the principals' current names

GET/doc-spaces/{spaceId}/grants
Session (app only)F-DOC-12

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#Replace the grants of a tenant or team space

PUT/doc-spaces/{spaceId}/grants
Session (app only)If-MatchF-DOC-12

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The new grants.application/json
Errors403404409412422428One problem shape

#Every page of a space the reader can read, in tree order, 200 per page

GET/doc-spaces/{spaceId}/page-index
Session (app only)F-DOC-13

Path parameters

spaceIdrequiredstring (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-Tenantrequiredstring (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)

GET/doc-spaces/{spaceId}/pages
Session (app only)F-DOC-13

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Query parameters

parentIdstring (uuid)
page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (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

POST/doc-spaces/{spaceId}/pages
Session (app only)Idempotency-KeyF-DOC-13

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The new page.application/json
Errors403404409422One problem shape

#The pages of the space that carry the public flag

GET/doc-spaces/{spaceId}/public-pages
Session (app only)F-DOC-21

Path parameters

spaceIdrequiredstring (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-Tenantrequiredstring (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
Errors403404One problem shape

#Set or clear the public flag of up to 200 named pages

POST/doc-spaces/{spaceId}/public-pages
Session (app only)Idempotency-KeyF-DOC-21

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The counts of changed and unchanged pages.application/json
Errors403404409422One problem shape

#The space's public site, its status, address and domain

GET/doc-spaces/{spaceId}/public-site
Session (app only)F-DOC-21

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#Create or change the space's public site configuration (draft until published)

PUT/doc-spaces/{spaceId}/public-site
Session (app only)If-MatchF-DOC-21

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The site.application/json
Errors403404409412422428One problem shape

#Add or replace the site's custom domain (pending until verified)

PUT/doc-spaces/{spaceId}/public-site/domain
Session (app only)F-DOC-21

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404409422One problem shape

#Remove the site's custom domain

DELETE/doc-spaces/{spaceId}/public-site/domain
Session (app only)F-DOC-21

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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.

Errors403404One problem shape

#Check the domain's DNS records now

POST/doc-spaces/{spaceId}/public-site/domain/verify
Session (app only)Idempotency-KeyF-DOC-21

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The domain's state after the check.application/json
Errors403404409One problem shape

#Put the public site on the internet

POST/doc-spaces/{spaceId}/public-site/publish
Session (app only)Idempotency-KeyF-DOC-21

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The published site.application/json
Errors403404409One problem shape

#Take the public site off the internet

POST/doc-spaces/{spaceId}/public-site/unpublish
Session (app only)Idempotency-KeyF-DOC-21

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The unpublished site.application/json
Errors403404One problem shape

#Publish up to 50 pages of a space at once, each by its exact version and digest — all or none

POST/doc-spaces/{spaceId}/publish-batch
Session (app only)Idempotency-KeyF-DOC-19

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201One new revision per page.application/json
Errors403404409422One problem shape

#The channel of a company or team space's doc_space.changed (realtime, owner 23 Nov 2026)

GET/doc-spaces/{spaceId}/realtime
Session (app only)F-DOC-11

private-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

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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

POST/doc-spaces/{spaceId}/repository-connections
Session (app only)Idempotency-KeyF-DOC-22

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201Connected; a manual hook's URL and secret are returned once.application/json
Errors403404409422502One problem shape

#Verify a pasted token for a space's Git sync (write access) and list the repositories it can write

POST/doc-spaces/{spaceId}/repository-token-checks
Session (app only)F-DOC-22

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404409422502One problem shape

#Restore a deleted space with the pages of its delete batch

POST/doc-spaces/{spaceId}/restore
Session (app only)Idempotency-KeyF-DOC-11

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The restored space.application/json
Errors403404409One problem shape

#The trashed pages of a space that the reader may see, newest first, with their restore deadline

GET/doc-spaces/{spaceId}/trash
Session (app only)F-DOC-13

Path parameters

spaceIdrequiredstring (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-Tenantrequiredstring (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
Errors403404One problem shape

#Empty trash of a company or team space — every trashed page of the space deleted forever (space admins; at most 500 per call)

DELETE/doc-spaces/{spaceId}/trash
Session (app only)F-DOC-13

As 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

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404409One problem shape

#Delete forever one trashed page of a company or team space with its trashed subpages (space admins)

DELETE/doc-spaces/{spaceId}/trash/{pageId}
Session (app only)F-DOC-13

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

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

pageIdrequiredstring (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-Tenantrequiredstring (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
Errors403404409One problem shape

#Make an archived space writable again

POST/doc-spaces/{spaceId}/unarchive
Session (app only)Idempotency-KeyIf-MatchF-DOC-11

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

200The active space.application/json
Errors403404409One problem shape

#The space's pages whose latest version is not published

GET/doc-spaces/{spaceId}/unpublished-changes
Session (app only)F-DOC-19

Path parameters

spaceIdrequiredstring (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-Tenantrequiredstring (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
Errors403404One problem shape

#Watch every page of a space

PUT/doc-spaces/{spaceId}/watch
Session (app only)F-DOC-15

The 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

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#Stop watching a space

DELETE/doc-spaces/{spaceId}/watch
Session (app only)F-DOC-15

The caller stops watching the space; idempotent by state. The refusals are the ones of watchDocSpace.

Path parameters

spaceIdrequiredstring (uuid)

A space id; a hidden, foreign or purged space answers 404 doc_space.not_found.

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#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

GET/doc-subtree-jobs/{jobId}
Session (app only)F-DOC-13

Path parameters

jobIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (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

GET/doc-templates
Session (app only)F-DOC-14

Query parameters

spaceIdrequiredstring (uuid)
categorystring

One of: general meeting decision how_to retrospective release_notes requirements runbook handover

includeArchivedboolean

Template managers only; archived templates are listed after the live ones.

Default: false

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (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
Errors400404One problem shape

#Save a page as a space or tenant template, or replace a template's body from a page (owner Q15)

POST/doc-templates
Session (app only)Idempotency-KeyF-DOC-14

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchstring

As built (owner Q15, 24 November 2026; DocTemplateController::create, IfMatch::optional): "Replace <name>" (replaceId) sends the template's version in quotes. A different version answers 412 stale-version, and nothing changes; a replace without it answers 422 (/expectedVersion). "Save as template" sends none.

Pattern ^"[0-9]+"$

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
Errors403404409412422One problem shape

#Rename, describe, recategorise, archive or unarchive a template

PATCH/doc-templates/{templateId}
Session (app only)If-MatchF-DOC-14

Path parameters

templateIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

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.

Errors403404409412422428One problem shape

#The built-in templates with their "Offered" switch — the registry key docs.templates.builtins (owner Q15; a tenant admin)

GET/doc-templates/builtins
Session (app only)F-DOC-14

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#Set the built-ins that New page offers (Blank page is always kept)

PUT/doc-templates/builtins
Session (app only)If-MatchF-DOC-14

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The switches after the change.application/json
Errors403404412422428One problem shape

#The saved templates a manager sees — every live template for a tenant admin, or one space's for its admin (owner Q15)

GET/doc-templates/managed
Session (app only)F-DOC-14

Query parameters

spaceIdstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#The trashed pages of the active company and team spaces whose trash the reader may read, newest first

GET/doc-trash
Session (app only)F-DOC-13

The 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-Tenantrequiredstring (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

GET/doc-usage
Session (app only)F-DOC-25

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#The project space of one project

GET/projects/{projectKey}/doc-space
Session (app only)F-DOC-11

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#The tenant and team spaces that the project's AI chat also reads

GET/projects/{projectKey}/related-doc-spaces
Session (app only)F-DOC-23

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (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
Errors403404One problem shape

#Replace the project's related spaces (at most 10)

PUT/projects/{projectKey}/related-doc-spaces
Session (app only)If-MatchF-DOC-23

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The related spaces.application/json
Errors403404412422428One problem shape

Was this helpful?