activity resource is the API over the activity log. Every
state transition, every decision, every approval, every cost
breach lands in this log, and this endpoint is how you search
and export it.
The log is append-only. There is no POST, no DELETE, no PATCH
through this API. The orchestrator writes entries; you read
them.
Endpoints
| Method | Path | Purpose |
|---|---|---|
GET | /v1/companies/{cid}/activity | Search activity |
GET | /v1/companies/{cid}/activity/{id} | Get one entry |
GET | /v1/companies/{cid}/activity/export | Export filtered results |
GET | /v1/companies/{cid}/audit | The narrower audit trail |
The activity entry
category— high-level group (task, approval, budget, run, delegation, audit)action— the specific event within the category (task.started,approval.denied,budget.breach.hard)actor— who caused it;user:<id>for humans,agent:<id>for agents,system:<component>for the orchestratorsubject— the primary object the event is aboutrelated— other objects the event refers to, so you can join entries on a task or a runpayload— category-specific details
Searching
q— free text, matchespayloadand actor notescategory— one or more categories, comma separatedaction— exact action string (e.g.,task.started)actor— exact or prefix match (user:matches all humans)subject.type,subject.id— filter by subjectrelated.taskId,related.agentId,related.runId— join shortcutssince,until— time range (ISO or relative)cursor,limit— pagination
payload
column plus indexed lookups on the metadata columns. Queries
with a tight time range and a category are fast even on large
companies; open-ended queries can be slow and are rate-limited.
Get one entry
Export
jsonl— one entry per line, losslesscsv— flattened, suitable for spreadsheetspdf— a formatted report
The audit trail
/v1/companies/{cid}/audit is a narrower, stricter subset of
the activity log. It contains only the events that satisfy
compliance requirements:
- All approvals (approved, denied, edited, expired)
- All budget breaches
- All credential creation, rotation, and deletion
- All deployments and prod-touching actions
- Any action flagged as sensitive by the agent’s policy
Retention
Activity log retention is configured at the company level. By default:- Hot storage: 90 days
- Archived: 2 years
- Audit trail: indefinite
Webhooks
You can stream any category of the activity log as webhooks, which is how you wire Company Agents into Slack, PagerDuty, or a custom observability stack. Configure webhook filters at Settings → Webhooks:- Match by category, action, or actor prefix
- Optional payload transformer (JSONPath or jq expression)
- Delivery retry with exponential backoff
Next
- Activity log (guide) for the operator-side view
- Costs — the source of budget events
- Approvals — the source of approval events
- Dashboard — the aggregated view the UI builds on top of the activity log