Heartbeat Run
Extend the runner's lease on a running run by stamping `heartbeat_at`. `runner_id` must match the runner that claimed the run. 409 `RUN_LEASE_LOST` means stop work: the run is no longer `running` (cancelled, expired or finished) or is held by another runner. Publishes no events.
Extend the runner's lease on a running run by stamping heartbeat_at.
runner_id must match the runner that claimed the run. 409 RUN_LEASE_LOST
means stop work: the run is no longer running (cancelled, expired or
finished) or is held by another runner. Publishes no events.
HTTPBearerAuthorizationBearer <token>run_id*Run Iduuidcompany_id*Company Iduuidapplication/json- body
runner_id*Runner Id1 <= length <= 100Successful Response
application/json- response
agent_id*Agent Iduuidcost_cents*Cost Centscreated_at*|nullended_at*|nullerror*string|nullheartbeat_at?|nullid*Iduuidroutine_id*|nullrunner_id?string|nullstarted_at*|nullstatus*Statussummary*string|nulltask_id*|nulltokens_in*Tokens Intokens_out*Tokens Outtrigger*Triggercurl -X POST "https://example.com/api/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/heartbeat" \ -H "Content-Type: application/json" \ -d '{ "runner_id": "string" }'{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "cost_cents": 0, "created_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "error": "string", "heartbeat_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "routine_id": "f53c5ff7-cfb7-4f43-8b79-3421a01d8e2a", "runner_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "string", "summary": "string", "task_id": "736fde4d-9029-4915-8189-01353d6982cb", "tokens_in": 0, "tokens_out": 0, "trigger": "string"}Get Run Context GET
Get the same context `POST /runs/claim` returns, without claiming the run. Use it to inspect or re-run a run: the run with its transcript, the agent and its manager, the company brief, the task with its comments, the task's goal chain and project, and `lease_seconds`. Answers 404 `NOT_FOUND` for runs outside this company.
List Approvals GET
List the company's approvals, newest first. Filter with `status` (`pending`, `approved` or `rejected`). Types are `hire_agent`, `budget_override` and `action`.