Platform services
Long-running operations, previews, realtime channels and approval requests.
#The workspace's pending client approvals and the requests that need action
/approval-requestsQuery parameters
filter[segment] | string | One of: |
filter[projectKey] | string | One project's requests; an unknown key and a project the reader cannot see both answer an empty list (hidden ≡ missing, REV-POR2-09). Pattern |
filter[requestedBy] | string | me for the caller's own requests. One of: |
q | string | G-CP-01 (XM-1315): 2–120 characters, case-insensitive: the ticket key starts with the text, or the ticket title that the reader sees contains it. The segment counts do not apply q. Min length 2 · Max length 120 |
sort | string | G-CP-03 (XM-1315): waiting = overdue first, then the oldest request (the default); requestedAt / -requestedAt = the oldest / the newest request first; ticket / -ticket = by project key, then ticket number. The cursor is bound to q and sort. 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
200Rows in the order of sort (default overdue first then oldest first), with the segment counts.application/json
#Remind the request's eligible reviewers (at most once per cooldown)
/approval-requests/{requestId}/remindPath parameters
requestIdrequired | 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
200The request with its updated reminders.application/json
#Withdraw an open approval request
/approval-requests/{requestId}/withdrawPath parameters
requestIdrequired | 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 withdrawn request.application/json
#The caller's own long-running operations in the tenant, newest first, cursor-paged
/operationsRequester-only (05-api §10.2; XM-16) — never another member's. filter[state] and filter[kind] are comma lists ("any of"); the next link keeps them. A cursor is sealed to its reader, tenant and filters.
Query parameters
filter[state] | string | Any of queued, running, succeeded, failed, cancelled (comma-separated). Max length 200 |
filter[kind] | string | Any of the operation kinds (comma-separated), e.g. audit_export. Max length 4100 |
page[size] | integer | Default: |
page[cursor] | string | The opaque cursor of the previous page's links.next (05-api §5). Max length 512 |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200One page of the caller's operations.application/json
#One of the caller's long-running operations — its state, progress, result or problem
/operations/{operationId}Requester-only (05-api §10.2; XM-16). Retry-After tells a poller when to ask again while the operation is queued or running; links.result is the authorised download of an export's file until it expires.
Path parameters
operationIdrequired | 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 operation.application/json
#Open or renew View as client for one project's client role — a read-only token of at most 15 minutes
/previewsHeaders
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Request body application/jsonrequired
Loading the schema…
Responses
200The session, its token and expiry, the role, the project and the organisation.application/json
#End View as client; the only operation a preview token may write
/previews/{previewId}/endPath parameters
previewIdrequired | string (uuid) |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
204The session ended (or had already ended).
No body.
#Whether View as client is available for a project and which client roles it offers
/previews/optionsQuery parameters
projectKeyrequired | string | Pattern |
Headers
X-Kanso-Tenantrequired | string (uuid) | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
Responses
200Availability, the offered roles, the default and whether the selector is shown.application/json
#The reader's current tenant and user channel names, with their audience epochs (XM-116)
/realtime/channelsprivate-tenant.{t}.v{n} and private-tenant.{t}.user.{u}.v{n}: every narrowing of Access's authority-change map that reaches the channels' audience moves n (tenancy.channel-epoch), publishers publish on the current names only and /broadcasting/auth signs only them, so an authorisation fetched before a narrowing subscribes to a name nobody publishes on (07-… §5.4; 08-… §6.9). The workspace shell and the portal read the names when they open and again on channels.rotated (and on reconnect). tenant is null for a client guest (the tenant channel is internal); a View as client is refused. Members and client guests of the tenant; an operator under a support grant answers 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 channel names to subscribe.application/json
Was this helpful?