Agent API
The agent API for agent identities (kanso_agt_ tokens): knowledge items, decisions, meetings and one ticket by key.
#Propose a ticket change for a person's exact approval; nothing changes before it
/agent/actionsHeaders
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 pending proposal, with the link that a reviewer opens.application/json
#The state of the identity's proposal and, after execution, its results
/agent/actions/{proposalId}Path parameters
proposalIdrequired | string (uuid) |
Responses
200The proposal's state.application/json
#One page as Markdown — the published revision, or the head for an identity that may write it
/agent/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
source | string | One of: |
Responses
200The page.application/json
#Replace a page's body from a named base — written at once or proposed, by the write mode
/agent/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
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.application/json
#Open a page-level thread as the identity
/agent/doc-pages/{pageId}/commentsPath 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
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.application/json
#Propose the publication of an exact version for a person's approval
/agent/doc-pages/{pageId}/publish-proposalsPath 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
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 proposal waiting for approval.application/json
#Search the pages the identity may read
/agent/doc-searchQuery parameters
qrequired | string | Min length 1 · Max length 120 |
spaceId | string (uuid) | |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Responses
200A page of hits.application/json
#The spaces the identity may read
/agent/doc-spacesQuery parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Responses
200A page of spaces.application/json
#The pages of one space that the identity may read, in tree order
/agent/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 |
Responses
200A page of the index.application/json
#Create a page from Markdown or rich text — written at once or proposed, by the write mode
/agent/doc-spaces/{spaceId}/pagesPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
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 outcome (written with the page and version, or proposed with the change).application/json
#Deliver one meeting (contract version 1) into a project's memory
/agent/meetingsThe meeting's segment (segmentKey, else the fallbacks of F-MEM-13.R08) must be in the identity's segments ∩ the owner's readable segments; otherwise 422 validation.failed with memory.segment_not_allowed, and nothing is stored.
Headers
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 stored result of the same revision and digest, or of a higher revision applied to the items.application/json
201The items of a new meeting.application/json
#The item-type registry with the tenant's active types
/agent/memory/item-typesResponses
200The type catalogue.application/json
#Search or list the knowledge items that the identity may read
/agent/memory/itemsQuery parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
projectKey | string | Pattern |
q | string | Min length 1 · Max length 200 |
mode | string | One of: |
type | array of string | |
tag | array of string | |
linkedTicketKey | string | Pattern |
updatedFrom | string (date-time) | |
mine | boolean | Only the items that this identity wrote. Default: |
Responses
200A page of up to 50 rows (20 in semantic mode).application/json
#Add a knowledge item as the identity
/agent/memory/itemsHeaders
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 existing item of the same external id and body (R10).application/json
201The new item, active (direct mode) or proposed (review mode).application/json
#One knowledge item with its provenance and visible links
/agent/memory/items/{itemKey}Path parameters
itemKeyrequired | string | A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404. Pattern |
Responses
200The item as the identity may read it.application/json
#Revise an item that this identity wrote
/agent/memory/items/{itemKey}Path parameters
itemKeyrequired | string | A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404. Pattern |
Headers
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/merge-patch+jsonrequired
Loading the schema…
Responses
200The revised item, or the item with a pending revision in review mode.application/json
#Accept a proposed decision that this identity wrote (decisions:accept)
/agent/memory/items/{itemKey}/decision-statusPath parameters
itemKeyrequired | string | A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404. Pattern |
Headers
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
200The accepted decision.application/json
#Link an item that this identity wrote
/agent/memory/items/{itemKey}/linksPath parameters
itemKeyrequired | string | A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404. Pattern |
Headers
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 item with its visible links.application/json
#Remove a link of an item that this identity wrote
/agent/memory/items/{itemKey}/links/{linkId}Path parameters
itemKeyrequired | string | A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404. Pattern |
linkIdrequired | string (uuid) |
Responses
204The link is gone.
No body.
#The passages of a meeting transcript item, in order
/agent/memory/items/{itemKey}/passagesPath parameters
itemKeyrequired | string | A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404. Pattern |
Query parameters
fromPassage | integer | Default: |
limit | integer | Default: |
Responses
200Up to 500 passages from fromPassage.application/json
#Retract an item that this identity wrote
/agent/memory/items/{itemKey}/retractPath parameters
itemKeyrequired | string | A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404. Pattern |
Headers
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
200The retracted item.application/json
#The project's decision log as the identity's owner may see it
/agent/projects/{projectKey}/decisionsPath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Query parameters
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
status | string | One of: |
Responses
200A keyset page of up to 50 decisions.application/json
#One ticket of the identity's projects, in the owner's mask (tickets:read)
/agent/tickets/{ticketKey}Path parameters
ticketKeyrequired | string | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Responses
200The ticket, masked fields absent.application/json
#The calling identity, its owner, abilities, projects and effective write mode
/agent/whoamiResponses
200The identity's scope as it is now.application/json
Was this helpful?