Audit log
Audit log 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/audit-log |
List the workspace’s audit trail |
GET |
/v1/api/audit-log/{id} |
Get one audit entry and its correlated rows |
GET |
/v1/api/audit-log/projects/{projectId} |
List one project’s audit trail |
GET |
/v1/api/audit-log/verify |
Verify the tamper-evidence hash chain |
List the workspace’s audit trail
Section titled “List the workspace’s audit trail”GET /v1/api/audit-log · operation ID listAuditLog
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
limit |
query | no | string | Page size, clamped to 1–200. Defaults to 50. |
cursor |
query | no | string | The previous page’s nextCursor, verbatim. Opaque — never construct one. |
actorType |
query | no | string | user | api_key | agent | system. |
actorId |
query | no | string | Exact id of the actor. |
action |
query | no | string | Exact action name, such as project.create. Unknown actions are ignored and leave the results unfiltered. |
category |
query | no | string | create | read | update | delete | execute | auth | export. |
resourceType |
query | no | string | Exact resource type, such as project. |
resourceId |
query | no | string | Exact resource id. |
outcome |
query | no | string | success | failure | denied. |
severity |
query | no | string | info | notice | warning | critical. |
source |
query | no | string | Where the action came in: web | api | cli | telegram | linear | github | webhook | internal | system. |
requestId |
query | no | string | Correlation id of one request. |
traceId |
query | no | string | Correlation id shared with the other planes. |
from |
query | no | string | Inclusive lower bound on occurredAt, as an ISO timestamp. Unparseable values are ignored. |
to |
query | no | string | Inclusive upper bound on occurredAt, ISO. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
AuditPage | One keyset page of audit rows, newest first. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is not an owner or admin of this workspace — or is not a member of it at all. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Get one audit entry and its correlated rows
Section titled “Get one audit entry and its correlated rows”GET /v1/api/audit-log/{id} · operation ID getAuditEntry
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. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
AuditEntryDetail | The entry, plus the events, agent runs and log lines sharing its trace id. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is not an owner or admin of this workspace — or is not a member of it at all. |
404 |
ApiError | No such audit entry in this workspace. |
List one project’s audit trail
Section titled “List one project’s audit trail”GET /v1/api/audit-log/projects/{projectId} · operation ID listProjectAuditLog
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
projectId |
path | yes | string | |
limit |
query | no | string | Page size, clamped to 1–200. Defaults to 50. |
cursor |
query | no | string | The previous page’s nextCursor, verbatim. Opaque — never construct one. |
action |
query | no | string | Exact action name. |
actorType |
query | no | string | user | api_key | agent | system. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
AuditPage | Rows where the project is the resource, the parent resource, or the value of metadata.projectId. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is not an owner or admin of this workspace — or is not a member of it at all. |
404 |
ApiError | No such project in this workspace. |
Verify the tamper-evidence hash chain
Section titled “Verify the tamper-evidence hash chain”GET /v1/api/audit-log/verify · operation ID verifyAuditChain
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. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
AuditChainVerification | Hash-chain verification result. Check ok; HTTP 200 alone does not confirm chain integrity. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | The caller is not an owner or admin of this workspace — or is not a member of it at all. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
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.
Next steps
Section titled “Next steps”API reference
Browse endpoints, request fields and responses.
API & OpenAPI
Download the contract, generate a client, and read the compatibility policy.
TypeScript SDK
Auth, retries, typed errors, uploads and streaming, already built.
CLI reference
The same operations from a terminal, with a stable JSON envelope.