Youniton Docs

Platform services

Long-running operations, previews, realtime channels and approval requests.

#The workspace's pending client approvals and the requests that need action

GET/approval-requests
Session (app only)F-POR-14

Query parameters

filter[segment]string

One of: pending needs_action · Default: "pending"

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 ^[A-Za-z][A-Za-z0-9]{1,9}$

filter[requestedBy]string

me for the caller's own requests.

One of: me

qstring

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

sortstring

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: waiting requestedAt -requestedAt ticket -ticket · Default: "waiting"

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

200Rows in the order of sort (default overdue first then oldest first), with the segment counts.application/json
Errors400404One problem shape

#Remind the request's eligible reviewers (at most once per cooldown)

POST/approval-requests/{requestId}/remind
Session (app only)Idempotency-KeyF-POR-14

Path parameters

requestIdrequiredstring (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._:-]+$

Responses

200The request with its updated reminders.application/json
Errors403404409422One problem shape

#Withdraw an open approval request

POST/approval-requests/{requestId}/withdraw
Session (app only)F-POR-13

Path parameters

requestIdrequiredstring (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 withdrawn request.application/json
Errors403404409One problem shape

#The caller's own long-running operations in the tenant, newest first, cursor-paged

GET/operations
Session (app only)F-AUD-03

Requester-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: 25 · Min 1 · Max 100

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

200One page of the caller's operations.application/json
Errors400401404429One problem shape

#One of the caller's long-running operations — its state, progress, result or problem

GET/operations/{operationId}
Session (app only)F-AUD-03

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

operationIdrequiredstring (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 operation.application/json
Errors401403404429One problem shape

#Open or renew View as client for one project's client role — a read-only token of at most 15 minutes

POST/previews
Session (app only)F-POR-05

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 session, its token and expiry, the role, the project and the organisation.application/json
Errors403404409422One problem shape

#End View as client; the only operation a preview token may write

POST/previews/{previewId}/end
Session (app only)F-POR-05

Path parameters

previewIdrequiredstring (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 session ended (or had already ended).

No body.

Errors403404One problem shape

#Whether View as client is available for a project and which client roles it offers

GET/previews/options
Session (app only)F-POR-05

Query 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

200Availability, the offered roles, the default and whether the selector is shown.application/json
Errors403404One problem shape

#The reader's current tenant and user channel names, with their audience epochs (XM-116)

GET/realtime/channels
Session (app only)F-WSP-01

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

Was this helpful?