Skip to content

Events

Events operations in the Hlix API.

See the OpenAPI document for schemas and operation IDs.

  • Protected operations require an API key in x-api-key or 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.ai by default
Method Path Operation
GET /v1/api/events List activity events
GET /v1/api/events/summary Summarize recorded workspace activity

GET /v1/api/events · operation ID listEvents

Parameters

Name In Required Type Description
days query no string UTC calendar-day window: 7, 30, 90 or 365, including today. Summary defaults to 30; omitted on the recent feed means all retained events.
projectId query no string Only events owned by this project, through its cycle/task/run or explicitly recorded project context. Always workspace-fenced.
actorType query no string Only events recorded as user, agent or system.
actorId query no string Only events with this exact recorded actor id.
cycleId query no string The cycle’s events and its tasks’ events. This selector takes precedence over all others.
traceId query no string Every event of one trace. Checked second, ahead of eventType and the entity pair.
eventType query no string Exact event name, such as task.merged. Checked third.
entityType query no string cycle | task | project | agent_run | approval. Only read together with entityId.
entityId query no string The entity’s id. Required with entityType.
limit query no string Recent-activity page size, integer 1–500 (default 100). Supplying it, before or an activity filter selects the recent feed.
before query no string ISO timestamp from the last event. Include beforeId for complete pagination when events share a timestamp. Without beforeId, preserves the legacy strictly-older behavior.
beforeId query no string The last event id from the previous page, together with before. Results are ordered by timestamp and id descending; the database cursor retains full timestamp precision.
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 ActivityEvent[] The matching events, newest first — except the cycleId timeline, which is oldest first.
400 ApiError Invalid activity filters, no selector, or no active organization.
401 ApiError No valid session or API key.
403 ApiError Agency membership required.
404 ApiError The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist.

GET /v1/api/events/summary · operation ID getActivitySummary

Parameters

Name In Required Type Description
days query no string UTC calendar-day window: 7, 30, 90 or 365, including today. Summary defaults to 30; omitted on the recent feed means all retained events.
projectId query no string Only events owned by this project, through its cycle/task/run or explicitly recorded project context. Always workspace-fenced.
actorType query no string Only events recorded as user, agent or system.
actorId query no string Only events with this exact recorded actor id.
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 ActivitySummary Agency-only. Counts all matching retained events in the period, independently of feed pagination. Daily counts are zero-filled UTC dates; actor breakdown is the top 50 and event types the top 20. This is best-effort activity, not the audit log or a guarantee of completed work.
400 ApiError Invalid filters or no active workspace.
401 ApiError No valid session or API key.
403 ApiError Agency membership required.
404 ApiError The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist.

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. A ValidationError body carries the failing fields; an ApiError body carries only error.
  • 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.