Terminate Agent
Terminate an agent (soft delete): it leaves the org chart but its history stays. The agent's direct reports move to the agent's own manager (or become roots), and its `queued` and `running` runs are cancelled with the error "Agent terminated". Assigned tasks and routines are left unchanged. Publishes `agent.updated` and `run.updated` for each cancelled run.
Terminate an agent (soft delete): it leaves the org chart but its history stays.
The agent's direct reports move to the agent's own manager (or become roots),
and its queued and running runs are cancelled with the error
"Agent terminated". Assigned tasks and routines are left unchanged. Publishes
agent.updated and run.updated for each cancelled run.
HTTPBearerAuthorizationBearer <token>agent_id*Agent Iduuidcompany_id*Company IduuidSuccessful Response
application/json- response
adapter*string|nullavatar_seed*Avatar Seedcapabilities*array<unknown>|nullcompany_id*|nullcreated_at*|nullheartbeat_cron*string|nullid*Iduuidinstructions*string|nulllast_activity*|nullmonthly_budget_cents*Monthly Budget Centsname*Nameopen_tasks?Open Tasks0reports_to_id*|nullrole*string|nullspend_mtd_cents?Spend Mtd Cents0status*Statustitle*string|nullcurl -X POST "https://example.com/api/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/terminate"{ "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"}Resume Agent POST
Resume a paused agent, setting it back to `idle`. Only `paused` agents can be resumed (400 `INVALID_STATE` otherwise). Resuming does not decide a pending `budget_override` approval, and an agent still over its budget is paused again when its next run finishes. Publishes `agent.updated`.
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`.