Youniton Docs

Agent API

The agent API for agent identities (kanso_agt_ tokens): knowledge items, decisions, meetings and one ticket by key.

24 token operations

#Propose a ticket change for a person's exact approval; nothing changes before it

POST/agent/actions
Agent tokenIdempotency-KeyF-AST-19

Headers

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 pending proposal, with the link that a reviewer opens.application/json
Errors401403404409422429503One problem shape

#The state of the identity's proposal and, after execution, its results

GET/agent/actions/{proposalId}
Agent tokenF-AST-19

Path parameters

proposalIdrequiredstring (uuid)

Responses

200The proposal's state.application/json
Errors401403404429One problem shape

#One page as Markdown — the published revision, or the head for an identity that may write it

GET/agent/doc-pages/{pageId}
Agent tokenF-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: published_revision head · Default: "published_revision"

Responses

200The page.application/json
Errors401403404429One problem shape

#Replace a page's body from a named base — written at once or proposed, by the write mode

PUT/agent/doc-pages/{pageId}/body
Agent tokenIdempotency-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

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.application/json
Errors401403404409422429One problem shape

#Open a page-level thread as the identity

POST/agent/doc-pages/{pageId}/comments
Agent tokenIdempotency-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

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.application/json
Errors401403404422429One problem shape

#Propose the publication of an exact version for a person's approval

POST/agent/doc-pages/{pageId}/publish-proposals
Agent tokenIdempotency-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

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 proposal waiting for approval.application/json
Errors401403404409429One problem shape

#Search the pages the identity may read

GET/agent/doc-search
Agent tokenF-DOC-24

Query parameters

qrequiredstring

Min length 1 · Max length 120

spaceIdstring (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
Errors401404429One problem shape

#The spaces the identity may read

GET/agent/doc-spaces
Agent tokenF-DOC-24

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 spaces.application/json
Errors401403404429One problem shape

#The pages of one space that the identity may read, in tree order

GET/agent/doc-spaces/{spaceId}/page-index
Agent tokenF-DOC-24

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

Responses

200A page of the index.application/json
Errors401404429One problem shape

#Create a page from Markdown or rich text — written at once or proposed, by the write mode

POST/agent/doc-spaces/{spaceId}/pages
Agent tokenIdempotency-KeyF-DOC-24

Path parameters

spaceIdrequiredstring (uuid)

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

Headers

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 outcome (written with the page and version, or proposed with the change).application/json
Errors401403404409422429One problem shape

#Deliver one meeting (contract version 1) into a project's memory

POST/agent/meetings
Agent tokenIdempotency-KeyF-MEM-09

The 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-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 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
Errors400401403404409413422429503One problem shape

#The item-type registry with the tenant's active types

GET/agent/memory/item-types
Agent tokenF-MEM-06

Responses

200The type catalogue.application/json
Errors401403404429One problem shape

#Search or list the knowledge items that the identity may read

GET/agent/memory/items
Agent tokenF-MEM-06

Query parameters

page[cursor]string

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

Max length 512

projectKeystring

Pattern ^[A-Z][A-Z0-9]{1,9}$

qstring

Min length 1 · Max length 200

modestring

One of: keyword semantic · Default: "keyword"

typearray of string
tagarray of string
linkedTicketKeystring

Pattern ^[A-Z][A-Z0-9]{1,9}-[1-9][0-9]{0,8}$

updatedFromstring (date-time)
mineboolean

Only the items that this identity wrote.

Default: false

Responses

200A page of up to 50 rows (20 in semantic mode).application/json
Errors400401403404429One problem shape

#Add a knowledge item as the identity

POST/agent/memory/items
Agent tokenIdempotency-KeyF-MEM-06

Headers

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 existing item of the same external id and body (R10).application/json
201The new item, active (direct mode) or proposed (review mode).application/json
Errors400401403404409413422429One problem shape

#One knowledge item with its provenance and visible links

GET/agent/memory/items/{itemKey}
Agent tokenF-MEM-06

Path parameters

itemKeyrequiredstring

A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404.

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

Responses

200The item as the identity may read it.application/json
Errors401403404429One problem shape

#Revise an item that this identity wrote

PATCH/agent/memory/items/{itemKey}
Agent tokenIdempotency-KeyIf-MatchF-MEM-06

Path parameters

itemKeyrequiredstring

A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404.

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

Headers

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/merge-patch+jsonrequired

Loading the schema…

Responses

200The revised item, or the item with a pending revision in review mode.application/json
Errors401403404409412422428429One problem shape

#Accept a proposed decision that this identity wrote (decisions:accept)

POST/agent/memory/items/{itemKey}/decision-status
Agent tokenIdempotency-KeyIf-MatchF-MEM-06

Path parameters

itemKeyrequiredstring

A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404.

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

Headers

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

200The accepted decision.application/json
Errors401403404409412422428429One problem shape

#The passages of a meeting transcript item, in order

GET/agent/memory/items/{itemKey}/passages
Agent tokenF-MEM-06

Path parameters

itemKeyrequiredstring

A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404.

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

Query parameters

fromPassageinteger

Default: 1 · Min 1 · Max 20000

limitinteger

Default: 500 · Min 1 · Max 500

Responses

200Up to 500 passages from fromPassage.application/json
Errors400401403404429One problem shape

#Retract an item that this identity wrote

POST/agent/memory/items/{itemKey}/retract
Agent tokenIdempotency-KeyIf-MatchF-MEM-06

Path parameters

itemKeyrequiredstring

A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404.

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

Headers

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

200The retracted item.application/json
Errors401403404409412428429One problem shape

#The project's decision log as the identity's owner may see it

GET/agent/projects/{projectKey}/decisions
Agent tokenF-MEM-06

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}$

Query parameters

page[cursor]string

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

Max length 512

statusstring

One of: open all · Default: "open"

Responses

200A keyset page of up to 50 decisions.application/json
Errors400401403404429One problem shape

#One ticket of the identity's projects, in the owner's mask (tickets:read)

GET/agent/tickets/{ticketKey}
Agent tokenF-MEM-06

Path parameters

ticketKeyrequiredstring

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

Pattern ^[A-Z][A-Z0-9]{1,9}-[1-9][0-9]{0,8}$

Responses

200The ticket, masked fields absent.application/json
Errors401403404429One problem shape

#The calling identity, its owner, abilities, projects and effective write mode

GET/agent/whoami
Agent tokenF-MEM-06

Responses

200The identity's scope as it is now.application/json
Errors401403404429One problem shape

Was this helpful?