# Client portal

The operations of the client portal.

0 operation(s) for tokens, 41 app-only. The full schemas are in [openapi.json](https://docs.youniton.com/openapi.json) (search the operation ID).

## Approve or request changes — the first valid decision of an eligible reviewer closes the request

`POST /portal/approval-requests/{requestId}/decision`

- Operation ID: `decideApproval`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-11

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `requestId` | path | string (uuid) | yes |  |

Request body (application/json, required): `ApprovalDecisionRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The recorded decision. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Delete one's own client reply (soft, audited)

`DELETE /portal/comments/{commentId}`

- Operation ID: `deletePortalReply`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-09

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `commentId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Deleted (also for a reply that was already deleted). |  |  |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Edit one's own client reply within the tenant's edit window

`PATCH /portal/comments/{commentId}`

- Operation ID: `editPortalReply`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-09

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |
| `commentId` | path | string (uuid) | yes |  |

Request body (application/merge-patch+json, required): `PortalReplyRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The edited reply as a conversation entry. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Mark the conversation read up to this message (the guest's own read marker; forward only, idempotent)

`PUT /portal/comments/{commentId}/read`

- Operation ID: `markThreadRead`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-09

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `commentId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Recorded — also when the marker is already at or after this message (no write). |  |  |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## A shared page's latest published revision for reading in the portal

`GET /portal/doc-pages/{docPageId}`

- Operation ID: `getPortalDocument`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-16

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `docPageId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The title, revision, publication date, the sharing member and the body. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## A client deletes their own message

`DELETE /portal/messages/{messageId}`

- Operation ID: `deletePortalMessage`
- Call with: Session of the Youniton apps (app only)
- Feature: F-MSG-06

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `messageId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Deleted (or already deleted). |  |  |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## A client edits their own message inside the edit window

`PATCH /portal/messages/{messageId}`

- Operation ID: `editPortalMessage`
- Call with: Session of the Youniton apps (app only)
- Feature: F-MSG-06

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `messageId` | path | string (uuid) | yes |  |
| `If-Match` | header | string | yes | The resource version in quotes (05-api §7.1); missing answers 428, different answers 412. |

Request body (application/merge-patch+json, required): `MessagePatch`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The edited message as the client sees it. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 412 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 428 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The portal overview — title, status strip, waiting approvals, contact and recently updated tickets

`GET /portal/projects/{projectKey}`

- Operation ID: `getPortalOverview`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-06

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `timeZone` | query | string | no | The browser's zone, used when the reader's profile has none (D-128). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The overview for the acting guest or the previewed role. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The portal's approval queue (never paged) and decided history (25 per page)

`GET /portal/projects/{projectKey}/approval-requests`

- Operation ID: `listPortalApprovals`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-12

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `q` | query | string | no |  |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The queue, one page of the history and its total; links.next continues the history. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Reply in a client thread of this portal

`POST /portal/projects/{projectKey}/doc-comment-threads/{threadId}/comments`

- Operation ID: `postPortalDocComment`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DOC-20

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `threadId` | path | string (uuid) | yes |  |

Request body (application/json, required): `DocCommentRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new comment. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client threads of a page in this portal

`GET /portal/projects/{projectKey}/doc-pages/{docPageId}/comment-threads`

- Operation ID: `listPortalDocCommentThreads`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DOC-20

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `docPageId` | path | string (uuid) | yes |  |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of client threads. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Open a page-level client thread

`POST /portal/projects/{projectKey}/doc-pages/{docPageId}/comment-threads`

- Operation ID: `openPortalDocCommentThread`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DOC-20

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `docPageId` | path | string (uuid) | yes |  |

Request body (application/json, required): `DocCommentRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The new client thread. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Find the portal's published, client-visible pages by their words

`GET /portal/projects/{projectKey}/doc-search`

- Operation ID: `searchPortalDocs`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DOC-18

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `q` | query | string | yes |  |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of hits. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## A linked space's page as the client reads it — its latest published revision

`GET /portal/projects/{projectKey}/doc-space-pages/{docPageId}`

- Operation ID: `getPortalDocSpacePage`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DOC-20

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `docPageId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The page. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The linked spaces that the portal shows, with their counts of readable pages

`GET /portal/projects/{projectKey}/doc-spaces`

- Operation ID: `listPortalDocSpaces`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DOC-20

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The spaces. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client-visible pages of one linked space, in tree order, 25 per page

`GET /portal/projects/{projectKey}/doc-spaces/{spaceId}/pages`

- Operation ID: `listPortalDocSpacePages`
- Call with: Session of the Youniton apps (app only)
- Feature: F-DOC-20

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `spaceId` | path | string (uuid) | yes | A space id; a hidden, foreign or purged space answers 404 doc_space.not_found. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A page of rows. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The portal's shared documents (published revisions) and shared files, 25 per panel page

`GET /portal/projects/{projectKey}/documents`

- Operation ID: `getPortalDocuments`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-15

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `panel` | query | string | no | both on the first load; documents or files to continue one panel. |
| `q` | query | string | no |  |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The panels with their counts and next cursors. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client-shared knowledge items of the project, for the client's portal

`GET /portal/projects/{projectKey}/knowledge`

- Operation ID: `listClientKnowledge`
- Call with: Session of the Youniton apps (app only)
- Feature: F-MEM-04
- Deprecated: yes

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `type` | query | string | no |  |
| `q` | query | string | no | XM-1046: a keyword search of the client-visible items — the key (a prefix) or the title (contains), never the body. The cursor is bound to it. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A keyset page of 50, newest change first. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One client-shared knowledge item in its client projection

`GET /portal/projects/{projectKey}/knowledge/{itemKey}`

- Operation ID: `getClientKnowledgeItem`
- Call with: Session of the Youniton apps (app only)
- Feature: F-MEM-04
- Deprecated: yes

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `itemKey` | path | string | yes | A knowledge item key, upper-cased and resolved through the project key aliases; hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The client projection of the item. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client-visible memory entries of the project, for the portal's Knowledge page (R11, R13)

`GET /portal/projects/{projectKey}/memory/entries`

- Operation ID: `listClientMemoryEntries`
- Call with: Session of the Youniton apps (app only)
- Feature: F-MEM-14

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `q` | query | string | no | The search of the visible entries only (path and text). The cursor is bound to it. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A keyset page of 50 in path order, or in the search's rank with q. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | Not found (05-api §6.4; XM-787). The code is route.not_found (no route for the URL, a path value outside the route's pattern, or an audience outside the route's area), tenant.not_found (an unknown, foreign or inactive X-Kanso-Tenant) or <resource>.not_found (an unknown resource or a resource that the caller cannot see). A hidden resource and a missing resource get the same body: only instance and traceId change from call to call. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One client-visible memory entry with its Markdown (R13)

`GET /portal/projects/{projectKey}/memory/entries/{entryId}`

- Operation ID: `getClientMemoryEntry`
- Call with: Session of the Youniton apps (app only)
- Feature: F-MEM-14

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `entryId` | path | string (uuid) | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The entry. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | Not found (05-api §6.4; XM-787). The code is route.not_found (no route for the URL, a path value outside the route's pattern, or an audience outside the route's area), tenant.not_found (an unknown, foreign or inactive X-Kanso-Tenant) or <resource>.not_found (an unknown resource or a resource that the caller cannot see). A hidden resource and a missing resource get the same body: only instance and traceId change from call to call. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client's side of the project conversation — current period and shared messages

`GET /portal/projects/{projectKey}/messages`

- Operation ID: `listPortalMessages`
- Call with: Session of the Youniton apps (app only)
- Feature: F-MSG-04

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `after` | query | string | no | An opaque cursor from a previous page's lastCursor or a message's cursor. |
| `before` | query | string | no |  |
| `limit` | query | integer | no |  |
| `q` | query | string | no | Search inside the current period (F-MSG-10). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Portal message views oldest first (a search answers newest first) with the conversation facts. | application/json | `PortalMessagePage` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Post a client message in the project conversation

`POST /portal/projects/{projectKey}/messages`

- Operation ID: `postPortalMessage`
- Call with: Session of the Youniton apps (app only)
- Feature: F-MSG-05

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |

Request body (application/json, required): `MessagePostRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The posted message as the client sees it. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## A client moves their read marker in the project conversation

`PUT /portal/projects/{projectKey}/messages/read`

- Operation ID: `markPortalMessagesRead`
- Call with: Session of the Youniton apps (app only)
- Feature: F-MSG-07

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |

Request body (application/json, required): `PortalReadMarkRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | The marker moved (or stayed, moving only forward). No body: a client never receives a sequence or a conversation id (R06, CFL-906, S08); the portal's messages page carries the unread count (`meta.conversation.unreadCount`). XM-719 (a). |  |  |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The portal channel to subscribe — the guest's client channel at its current epoch, or a preview's own channel (SEC-WRK2-07)

`GET /portal/projects/{projectKey}/realtime`

- Operation ID: `getPortalRealtimeChannel`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-01

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The channel. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The Requests tab's counts for the portal shell (R13)

`GET /portal/projects/{projectKey}/request-counts`

- Operation ID: `getPortalRequestCounts`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The counts over the requests the reader may read. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The current request form as a client reads it

`GET /portal/projects/{projectKey}/request-form`

- Operation ID: `getPortalRequestForm`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-01

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Categories, fields and the intro without archived items or internal mapping. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client's requests of a project

`GET /portal/projects/{projectKey}/requests`

- Operation ID: `listPortalRequests`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `projectKey` | path | string | yes |  |
| `status` | query | string | no |  |
| `q` | query | string | no |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A keyset page of 25. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Register a request in the portal

`POST /portal/projects/{projectKey}/requests`

- Operation ID: `submitPortalRequest`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-02

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `projectKey` | path | string | yes |  |

Request body (application/json, required): `HelpDeskRequestDraft`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The request as the guest reads it. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client's ticket list — client-visible tickets, open by due date then done, 25 per page

`GET /portal/projects/{projectKey}/tickets`

- Operation ID: `listPortalTickets`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-07

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `projectKey` | path | string | yes | A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404. |
| `segment` | query | string | no | all, or the id of a shown stage. |
| `q` | query | string | no |  |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | One page of rows with the total under All, the segments and whether the due-date column applies. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One request as the client reads it

`GET /portal/requests/{requestKey}`

- Operation ID: `getPortalRequest`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `requestKey` | path | string | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The client view. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client-visible messages, oldest first

`GET /portal/requests/{requestKey}/messages`

- Operation ID: `listPortalRequestMessages`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |
| `requestKey` | path | string | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | A keyset page of 50. | application/json | `object` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Reply on a request

`POST /portal/requests/{requestKey}/messages`

- Operation ID: `postPortalRequestMessage`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `requestKey` | path | string | yes |  |

Request body (application/json, required): `HelpDeskMessageDraft`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The request view with the new message. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Withdraw an open request

`POST /portal/requests/{requestKey}/withdraw`

- Operation ID: `withdrawPortalRequest`
- Call with: Session of the Youniton apps (app only)
- Feature: F-HLP-03

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |
| `requestKey` | path | string | yes |  |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The withdrawn request. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## One shared ticket as the client may see it

`GET /portal/tickets/{ticketKey}`

- Operation ID: `getPortalTicket`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-08

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The masked ticket with files, the open request and the reader's can. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Attach an uploaded file to the ticket as the client — always Shared with client

`POST /portal/tickets/{ticketKey}/attachments`

- Operation ID: `attachPortalFile`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-10

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |

Request body (application/json, required): `PortalAttachRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The attachment as the portal lists it (status scanning until the scan is clean). | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client conversation — the Client thread and decision entries, 50 per page, newest page first

`GET /portal/tickets/{ticketKey}/comments`

- Operation ID: `listPortalConversation`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-08

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `page[cursor]` | query | string | no | The opaque cursor of the previous page's links.next (05-api §5). |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | Entries in chronological order; links.next names the earlier page. | application/json | `object` |
| 400 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Post a client reply in the ticket's Client thread

`POST /portal/tickets/{ticketKey}/comments`

- Operation ID: `postPortalReply`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-09

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |
| `Idempotency-Key` | header | string | yes | Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent. |

Request body (application/json, required): `PortalReplyRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 201 | The reply as a conversation entry. | application/json | `object` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 409 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Record that the client opened the ticket (throttled; never for previews)

`POST /portal/tickets/{ticketKey}/views`

- Operation ID: `recordPortalTicketView`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-08

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |
| `ticketKey` | path | string | yes | A ticket key, upper-cased and resolved through the project key aliases (04 §5.3); hidden and missing are one 404. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 204 | Recorded, or skipped by the throttle or the tenant setting. |  |  |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## The client guest's tour progress and whether to show it

`GET /portal/tour`

- Operation ID: `getClientTour`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-19

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The three steps and visibility; in View as client always `visible` false. | application/json | `object` |
| 401 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | Not found (05-api §6.4; XM-787). The code is route.not_found (no route for the URL, a path value outside the route's pattern, or an audience outside the route's area), tenant.not_found (an unknown, foreign or inactive X-Kanso-Tenant) or <resource>.not_found (an unknown resource or a resource that the caller cannot see). A hidden resource and a missing resource get the same body: only instance and traceId change from call to call. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |

## Skip one step or dismiss the tour

`PUT /portal/tour`

- Operation ID: `saveClientTour`
- Call with: Session of the Youniton apps (app only)
- Feature: F-POR-19

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `X-Kanso-Tenant` | header | string (uuid) | yes | The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found. |

Request body (application/json, required): `ClientTourRequest`

| Status | Description | Content type | Type |
|---|---|---|---|
| 200 | The progress after the change. | application/json | `object` |
| 401 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 403 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 404 | Not found (05-api §6.4; XM-787). The code is route.not_found (no route for the URL, a path value outside the route's pattern, or an audience outside the route's area), tenant.not_found (an unknown, foreign or inactive X-Kanso-Tenant) or <resource>.not_found (an unknown resource or a resource that the caller cannot see). A hidden resource and a missing resource get the same body: only instance and traceId change from call to call. | application/problem+json | `Problem` |
| 422 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
| 429 | A problem (application/problem+json); the code names the reason. | application/problem+json | `Problem` |
