Client portal
Client portal operations in the Hlix API.
See the OpenAPI document for schemas and operation IDs.
Prerequisites
Section titled “Prerequisites”- Protected operations require an API key in
x-api-keyor a browser session cookie; some actions require a verified user session - Tenant-scoped operations use
X-Organization-Id; browser sessions can use their active workspace. Discovery and personal-workspace bootstrap do not require an active workspace - The base URL for your deployment,
https://server.hlix.aiby default
Operations
Section titled “Operations”| Method | Path | Operation |
|---|---|---|
GET |
/v1/api/client-portal/activity |
List client-visible activity |
GET |
/v1/api/client-portal/overview |
Get the portal landing view |
GET |
/v1/api/client-portal/requests |
List your personal requests or the agency’s client requests |
POST |
/v1/api/client-portal/requests |
Start a personal request conversation visible to the agency |
GET |
/v1/api/client-portal/requests/{id} |
Read an authorized request and its canonical conversation |
POST |
/v1/api/client-portal/requests/{id}/approve |
Approve the exact saved plan once and enter operator sources |
POST |
/v1/api/client-portal/requests/{id}/attachments |
Upload a request-owned file or voice recording |
GET |
/v1/api/client-portal/requests/{id}/attachments/{attachmentId} |
Read a request-owned attachment |
List client-visible activity
Section titled “List client-visible activity”GET /v1/api/client-portal/activity · operation ID listClientPortalActivity
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
type |
query | no | string | One ClientActivityType, applied on the server before the twenty-item overview limit. An unrecognized type returns an empty list. |
limit |
query | no | string | Page size, clamped to 1–500; 100 when omitted or not an integer. |
offset |
query | no | string | Items to skip, newest first. Ask for the next page with offset + limit until a page comes back shorter than limit. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
X-Client-Portal |
header | no | string | The agency Workspace ID for a signed-in client’s portal requests. A verified user session and portal membership are required; API keys cannot authenticate portal access. This header does not grant agency administration access. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ClientActivityItem[] | Client-visible activity, newest first. There is no actor field: a customer is told what changed, never who inside the agency changed it. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Get the portal landing view
Section titled “Get the portal landing view”GET /v1/api/client-portal/overview · operation ID getClientPortalOverview
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
X-Client-Portal |
header | no | string | The agency Workspace ID for a signed-in client’s portal requests. A verified user session and portal membership are required; API keys cannot authenticate portal access. This header does not grant agency administration access. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ClientPortalOverview | The viewer’s projects and their twenty most recent client-visible events, of every kind. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
List your personal requests or the agency’s client requests
Section titled “List your personal requests or the agency’s client requests”GET /v1/api/client-portal/requests · operation ID listClientRequests
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
projectId |
query | no | string | Limit to this accessible project |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
X-Client-Portal |
header | no | string | The agency Workspace ID for a signed-in client’s portal requests. A verified user session and portal membership are required; API keys cannot authenticate portal access. This header does not grant agency administration access. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ClientRequestList | Requests with current work status |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Start a personal request conversation visible to the agency
Section titled “Start a personal request conversation visible to the agency”POST /v1/api/client-portal/requests · operation ID createClientRequest
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
X-Client-Portal |
header | no | string | The agency Workspace ID for a signed-in client’s portal requests. A verified user session and portal membership are required; API keys cannot authenticate portal access. This header does not grant agency administration access. |
Request body — application/json, CreateClientRequest (required)
| Property | Type | Required | Notes |
|---|---|---|---|
projectId |
string | yes | min length 1, max length 128 |
title |
string | no | max length 200 |
Responses
| Status | Body | Description |
|---|---|---|
201 |
ClientRequestDetail | Request created without starting work |
400 |
ValidationError | ApiError | The JSON body failed schema validation (ValidationError), or the request named no active organization (ApiError). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only the author can respond or approve |
404 |
ApiError | Request or attachment not found |
409 |
ApiError | The request or plan changed |
Read an authorized request and its canonical conversation
Section titled “Read an authorized request and its canonical conversation”GET /v1/api/client-portal/requests/{id} · operation ID getClientRequest
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
X-Client-Portal |
header | no | string | The agency Workspace ID for a signed-in client’s portal requests. A verified user session and portal membership are required; API keys cannot authenticate portal access. This header does not grant agency administration access. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ClientRequestDetail | Request, plan, attachments and messages |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only the author can respond or approve |
404 |
ApiError | Request or attachment not found |
409 |
ApiError | The request or plan changed |
Approve the exact saved plan once and enter operator sources
Section titled “Approve the exact saved plan once and enter operator sources”POST /v1/api/client-portal/requests/{id}/approve · operation ID approveClientRequest
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
X-Client-Portal |
header | no | string | The agency Workspace ID for a signed-in client’s portal requests. A verified user session and portal membership are required; API keys cannot authenticate portal access. This header does not grant agency administration access. |
Request body — application/json, ApproveClientRequest (required)
| Property | Type | Required | Notes |
|---|---|---|---|
hash |
string | yes | |
revision |
integer | yes | max 9007199254740991 |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ClientRequestDetail | Approved request; retries return the same proposal |
400 |
ValidationError | ApiError | The JSON body failed schema validation (ValidationError), or the request named no active organization (ApiError). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only the author can respond or approve |
404 |
ApiError | Request or attachment not found |
409 |
ApiError | The request or plan changed |
Upload a request-owned file or voice recording
Section titled “Upload a request-owned file or voice recording”POST /v1/api/client-portal/requests/{id}/attachments · operation ID uploadClientRequestAttachment
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
X-Client-Portal |
header | no | string | The agency Workspace ID for a signed-in client’s portal requests. A verified user session and portal membership are required; API keys cannot authenticate portal access. This header does not grant agency administration access. |
Request body — multipart/form-data (required)
| Property | Type | Required | Notes |
|---|---|---|---|
file |
string (binary) | yes |
Responses
| Status | Body | Description |
|---|---|---|
201 |
ChatAttachment | Stored attachment; artifactKey is the request-owned attachment ID and audio may include its transcript |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
402 |
PaymentRefusal | The workspace is over a spend cap — its free monthly credit, its plan’s included usage while extra usage is not allowed for the project, or a limit it set itself. The body names which one and what to do about it, and code is the stable reason. |
403 |
ApiError | Only the author can respond or approve |
404 |
ApiError | Request or attachment not found |
409 |
ApiError | The request or plan changed |
413 |
ApiError | Upload too large |
502 |
ApiError | Upload failed |
503 |
ApiError | Usage could not be verified, so new spending is paused until the meter is available. Nothing changed. |
Read a request-owned attachment
Section titled “Read a request-owned attachment”GET /v1/api/client-portal/requests/{id}/attachments/{attachmentId} · operation ID downloadClientRequestAttachment
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
attachmentId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
X-Client-Portal |
header | no | string | The agency Workspace ID for a signed-in client’s portal requests. A verified user session and portal membership are required; API keys cannot authenticate portal access. This header does not grant agency administration access. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
string (binary) | Authenticated attachment bytes |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only the author can respond or approve |
404 |
ApiError | Request or attachment not found |
409 |
ApiError | The request or plan changed |
If a request fails
Section titled “If a request fails”The response table for each operation lists its documented errors. Common status codes include:
400— the body failed schema validation, or the request named no active organization. AValidationErrorbody carries the failing fields; anApiErrorbody carries onlyerror.401— no valid session or API key.403— authenticated, but not a member of the named organization, or a client collaborator without the required access.404— check the resource ID and your access to the selected Workspace.409— the expected revision or state is stale, or another operation currently owns the transition.500— the operation failed server-side. Retry only where an idempotency key makes that safe.