Assistant & AI
Assistant runs, AI policy, budgets and project AI settings.
#The tenant's AI pool, usage, reset, remaining and allocation for the current period (read-only)
/ai/budgetHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The tenant budget; meta.warnings may hold ai.allocation_above_budget.application/json
#The tenant AI policy with its version
/ai/policyHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The policy; ETag carries the version.application/json
#Replace the tenant AI policy (all keys) — the write path of the assist policy keys
/ai/policyHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The saved policy with its new version.application/json
#The per-project AI table — enabled, limit, effective limit, used, derived sources, repository index states
/ai/project-settingsQuery parameters
q | string | Min length 2 · Max length 120 |
sort | string | One of: |
page[number] | integer | Min 1 |
page[size] | integer | One of: |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200A page of projects; meta.warnings may hold ai.allocation_above_budget or ai.limit_below_minimum_answer.application/json
#The caller's AI proposals across projects — waiting (pending) or decided — no access to the initiator's conversation follows from it
/assist/approvalsQuery parameters
filter[view] | string | R16 (XM-1085): waiting = the pending proposals the caller may decide, soonest expiry first; decided = the proposals that are no longer pending and name the caller as a reviewer, the newest state change first. The cursor is bound to the view. One of: |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The rows of the view, 25 per page, with the counts of both views (R16).application/json
#The person's assistant tokens of the current month
/assist/budget/meHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200Used, reserved and the limit (never above the tenant pool), and when the month resets.application/json
#The person's current workspace conversation with the assistant, or null
/assist/conversationQuery parameters
before | string | The cursor of older turns (from links.older). Max length 80 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The newest 50 turns, oldest first; data is null when the person has no current conversation.application/json
#Start a new workspace conversation ("New conversation")
/assist/conversationsHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
201The new, empty conversation; it is the person's current one.application/json
#Send a message to the assistant; the answer arrives through the run's events
/assist/conversations/{conversationId}/messagesPath parameters
conversationIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
202The run that answers; messageId is the person's message, replyId the assistant's answer.application/json
#Edit a person message — the conversation from it on is replaced, and the assistant answers again (G256, F-AST-21.R12)
/assist/conversations/{conversationId}/messages/{messageId}/editPath parameters
conversationIdrequired | string (uuid) | |
messageIdrequired | string (uuid) | The person message to edit (a turn with editable true). |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
202The run that answers the new message; messageId is the new person message, replyId the new answer.application/json
#Retry the answer — a new run for the same person message (G188, F-AST-21.R10)
/assist/conversations/{conversationId}/messages/{messageId}/retryPath parameters
conversationIdrequired | string (uuid) | |
messageIdrequired | string (uuid) | The assistant answer to retry (the conversation's newest answer). |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
202The new run; messageId is the same person message, replyId the new answer.application/json
#The caller's current conversation with one tenant or team space
/assist/doc-spaces/{spaceId}/conversationPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The conversation, its messages re-authorised.application/json
#Start a new, empty conversation with one tenant or team space
/assist/doc-spaces/{spaceId}/conversationsPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
201The new conversation with no messages.application/json
#Ask one tenant or team space — a run whose answer arrives through the run's events
/assist/doc-spaces/{spaceId}/messagesPath parameters
spaceIdrequired | string (uuid) | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
202The run, its answer message and its events URL.application/json
#The Youniton pages that the caller can open and that match a question — for the assistant's navigation answers
/assist/pagesQuery parameters
qrequired | string | What the person looks for, in their words. Min length 2 · Max length 120 |
projectKey | string | The project of the panel's page context — a hint only; used only when the caller can see it and the page's gate holds. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200At most 5 pages, best match first; an empty list when no page that the caller can open matches.application/json
#The project's AI budget line for the current period — the same counters as AI limits
/assist/projects/{projectKey}/budgetPath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200Used, reserved, limit, the reset instant and whether the project is in cache-only mode.application/json
#The caller's current conversation in the project — messages re-authorised, the derived scope
/assist/projects/{projectKey}/conversationPath 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 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The newest 50 messages (older ones by cursor); text only where released or not required and still valid.application/json
#Start a new, empty current conversation in the project (D-100)
/assist/projects/{projectKey}/conversationsPath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/json
Loading the schema…
Responses
201The new conversation with no messages.application/json
#The project-chat facade — start a project_question run in the conversation; the answer arrives through the run's events
/assist/projects/{projectKey}/messagesPath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
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 run, its answer message and its events URL.application/json
#The project's run history for the caller — their own runs; every run's summary for an Admin
/assist/projects/{projectKey}/runsPath 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 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
20025 runs per page, newest first.application/json
#The suggestion chips the caller may use in this project now
/assist/projects/{projectKey}/suggestionsPath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
2000–3 chips; disabled in cache-only mode; empty for client askers.application/json
#The workflows the caller may start in this project, with their parameters, intended outcome and proposed actions
/assist/projects/{projectKey}/workflowsPath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The catalogue entries for this caller; unavailable ones carry the reason.application/json
#The reviewer's projection of one proposal by its id alone — the notification deep link (R17)
/assist/proposals/{proposal}Path parameters
proposalrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The same projection as getAssistProposal; a superseded proposal names its newer version (supersededBy).application/json
#Create a durable run of a workflow; 202 only after the run and its dispatch intent committed
/assist/runsHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
202The run exists; Location is /api/v1/assist/runs/{run}; follow eventsUrl.application/json
#The authorised snapshot of a run — status, progress, pending proposal, receipts, outcome; text only for its actor
/assist/runs/{run}Path parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The snapshot; sequence is the cursor to continue the stream from.application/json
#Persist the cancel intent, fence new effects and answer 202 with the run's status; safe to repeat
/assist/runs/{run}/cancelPath parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
202The cancel intent is recorded (CG-26) — the run's status and status version after it (cancelling, cancelled, or its terminal status if it had already ended); the run's events and snapshot report the end.application/json
#Request the catalogue's compensating action for one committed receipt, as a linked run that needs its own approval
/assist/runs/{run}/compensationsPath parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
202The compensation run; it proposes the inverse for approval.application/json
#The run's events after a cursor — text/event-stream, or paged JSON with Accept application/json
/assist/runs/{run}/eventsPath parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
Query parameters
after | integer | The last event sequence the client holds; SSE's Last-Event-ID carries the same value. Min 0 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Last-Event-ID | string | Pattern |
Responses
200SSE (Cache-Control no-store, X-Accel-Buffering no) — run.status first, stored events in order, unavailable markers on replay, resync for a lost cursor, ping every 15 s; or a JSON page.text/event-stream
#The reviewer's projection of one exact proposal — items, targets with versions, before/after, recipients, expiry, state
/assist/runs/{run}/proposals/{proposal}Path parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
proposalrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The proposal as this reviewer may see it; can tells whether they may approve or reject and which step-up is needed.application/json
#The confirmation card of the assistant's write, from its record
/assist/runs/{run}/proposals/{proposal}/cardPath parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
proposalrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The proposal's state and the card; only the initiator reads it.application/json
#Approve or reject the exact proposal version and digest; a rejection always records
/assist/runs/{run}/proposals/{proposal}/decisionPath parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
proposalrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Request body application/jsonrequired
Loading the schema…
Responses
200The recorded decision; for an approval the run is queued to resume (it may wait for a slot or a budget).application/json
#Prepare a fresh proposal for an expired or stale one — the run resumes and re-plans from current evidence
/assist/runs/{run}/proposals/{proposal}/renewPath parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
proposalrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200The run's snapshot, queued to prepare the new version.application/json
#Start a linked run again after a rejected proposal; nothing of the rejected proposal executes (R18)
/assist/runs/{run}/proposals/{proposal}/start-againPath parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
proposalrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
202The linked run (restart_of); follow its events URL.application/json
#Start a linked run of a failed, retryable run; committed receipts of the chain are never repeated
/assist/runs/{run}/retryPath parameters
runrequired | string (uuid) | The run id; unknown and not visible are one 404. |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Idempotency-Keyrequired | string | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. Min length 8 · Max length 128 · Pattern |
Responses
202The linked run; follow its events URL.application/json
#Four starting points of the assistant panel
/assist/suggestionsHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200Words only; a suggestion grants nothing.application/json
#Switch a project's AI (its Project chat module) and set its monthly limit
/projects/{projectKey}/ai-settingsPath parameters
projectKeyrequired | string | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
If-Matchrequired | string | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. Pattern |
Request body application/merge-patch+jsonrequired
Loading the schema…
Responses
200The project's row after the change.application/json
Was this helpful?