Get Org Chart
Get the reporting tree of non-terminated agents. Returns the root nodes, each with nested `reports`. Agents without a manager, or whose manager is terminated, are roots. Every agent carries the same month-to-date stats as the agent list.
Get the reporting tree of non-terminated agents.
Returns the root nodes, each with nested reports. Agents without a manager,
or whose manager is terminated, are roots. Every agent carries the same
month-to-date stats as the agent list.
HTTPBearerAuthorizationBearer <token>company_id*Company IduuidSuccessful Response
application/json- response
[index: integer]?curl -X GET "https://example.com/api/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/org"[ { "agent": { "adapter": "string", "avatar_seed": 0, "capabilities": [ null ], "company_id": "b2e6a1c3-1a5e-44ae-a8fd-81f76fd715cf", "created_at": "2019-08-24T14:15:22Z", "heartbeat_cron": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instructions": "string", "last_activity": "2019-08-24T14:15:22Z", "monthly_budget_cents": 0, "name": "string", "open_tasks": 0, "reports_to_id": "9a08cb01-6bdc-412f-ad45-35a6f5d74f8e", "role": "string", "spend_mtd_cents": 0, "status": "string", "title": "string" }, "reports": [] }]Wake Agent POST
Queue a run for the agent (a manual heartbeat). The run is only recorded here; an external runner executes queued runs. An optional `task_id` must belong to this company. If an identical run (same agent and task) is already queued, that run is returned instead of a new one. Fails with 400 `INVALID_STATE` for agents that are `paused`, `pending_approval` or `terminated`. Publishes `run.created`.
List Tasks GET
List the company's tasks, filtered and capped at `limit` (default 500, max 1000). Filters combine with AND: `status` (repeatable), assignee, project, goal, parent, `created_by=me` and `q`, a case-insensitive substring match on title and description. Results are ordered by `sort_order`, then newest task number first. Each task carries its `key` (e.g. `SAT-12`).