Open Browser API
Send Authorization: Bearer <API key>. Machine-readable spec: /openapi.json. Agents: /AGENTS.md, MCP, A2A card.
GET | /api/health | Service health, database and worker status | public |
GET | /api/revision | Deployed revision | public |
GET | /api/v1/capabilities | Verified capabilities and external gates | public |
GET | /api/v1/plans | Plans and limits | public |
GET | /api/v1/runs | List runs (cursor pagination via before=nextCursor) | runs:read |
POST | /api/v1/runs | Start a run | runs:write |
POST | /api/v1/runs/plan | Preview the plan and outcome contract for a goal without running it | runs:read |
GET | /api/v1/runs/{id} | Get a run with events (after=<event id>) and artifacts | runs:read |
GET | /api/v1/runs/{id}/stream | Server-sent events for a run; resume with Last-Event-ID | runs:read |
GET | /api/v1/runs/{id}/takeover | Whether the run is waiting for its user (authorized takeover) and until when | runs:read |
POST | /api/v1/runs/{id}/takeover | Take control of the waiting run in its isolated browser. Signed-in members only; API keys are refused | session |
DELETE | /api/v1/runs/{id}/takeover | Release control without finishing | session |
GET | /api/v1/runs/{id}/takeover/frame | Latest frame as image/jpeg (X-Takeover-Token header; after=<seq> answers 204 when unchanged) | session |
POST | /api/v1/runs/{id}/takeover/input | Relay a click, typed text (max 200), an allowed key or a scroll to the page (X-Takeover-Token header; 10 per second) | session |
POST | /api/v1/runs/{id}/takeover/done | Tell the run to continue in the same browser | session |
POST | /api/v1/runs/{id}/cancel | Cancel a run | runs:write |
POST | /api/v1/runs/{id}/retry | Retry a read-only run | runs:write |
POST | /api/v1/runs/{id}/save-skill | Compile a verified run into a versioned skill | skills:write |
GET | /api/v1/artifacts/{id}/link | Signed download link valid for 10 minutes | artifacts:read |
GET | /api/v1/skills | List skills | skills:read |
POST | /api/v1/skills | Create or version a skill | skills:write |
GET | /api/v1/skills/{slug} | Skill detail: guided steps, inputs with examples, versions, quality from real runs, drift, candidate | skills:read |
POST | /api/v1/skills/{slug}/candidate | Stage an edited copy as a candidate version (step edits) | skills:write |
DELETE | /api/v1/skills/{slug}/candidate | Discard the candidate | skills:write |
POST | /api/v1/skills/{slug}/test | Test run of the active or candidate version (not counted in quality) | runs:write |
POST | /api/v1/skills/{slug}/promote | Make the candidate active; requires its latest replay (a test run is a one-run replay) to be verified on every input set | skills:write |
POST | /api/v1/skills/{slug}/replay | Replay a version on up to 5 input sets (default: recent verified production inputs; explicit sets required for skills with secret inputs). Not counted in quality | runs:write |
GET | /api/v1/skills/{slug}/replays/{id} | Replay batch state: running, verified, failed or incomplete, with each run | skills:read |
GET | /api/v1/skills/{slug}/compare | Before/after: changed steps, quality, last run and last replay of two versions (default: in use vs candidate) | skills:read |
POST | /api/v1/skills/{slug}/pin | Pin this workspace to an active version ({"version": n}) or unpin ({"version": null}) | skills:write |
GET | /api/v1/runs/{id}/frames | Redacted frames captured during the run (signed image links) | runs:read |
POST | /api/v1/runs/{id}/viewer-grants | Create a 10-minute watch-only link for this run | runs:write |
DELETE | /api/v1/runs/{id}/viewer-grants | Revoke all watch-only links for this run | runs:write |
GET | /api/v1/runs/{id}/live | Watch-only state, timeline and frames; session or ?grant= token | public |
POST | /api/v1/skills/{slug}/run | Run a skill | runs:write |
GET | /api/v1/portals | Supported supplier portals (today: the controlled test fixture only) | runs:read |
GET | /api/v1/connections | List linked portal accounts with status and health; secrets are never returned | runs:read |
POST | /api/v1/connections | Link a portal account with explicit consent and an expiry (signed-in account only) | account |
DELETE | /api/v1/connections/{id} | Revoke a link at once: secret wiped, schedules paused, queued runs refused | account |
POST | /api/v1/connections/{id}/run | Run the portal task for a linked account (the run carries no secret) | runs:write |
POST | /api/v1/connections/{id}/schedule | Schedule the portal task: daily, weekly or monthly | schedules:write |
GET | /api/v1/documents | Normalized documents collected through connections (filter: connection, period) | artifacts:read |
GET | /api/v1/runs/{id}/deliveries | Webhook delivery receipts for a run | runs:read |
GET | /api/v1/webhooks | List webhooks with delivery stats | account |
POST | /api/v1/webhooks | Register a signed webhook (secret returned once) | account |
DELETE | /api/v1/webhooks/{id} | Disable a webhook | account |
GET | /api/v1/webhooks/{id}/deliveries | Recent deliveries of a webhook (delivered, pending, dead) | account |
POST | /api/v1/webhooks/{id}/redrive | Queue dead deliveries again (same event ids) | account |
GET | /api/v1/evidence | Saved files across runs: filter by q, host, state, from, to (YYYY-MM-DD), sha prefix; cursor paging; format=csv exports up to 1000 rows | artifacts:read |
GET | /api/v1/runs/{id}/receipt | Signed receipt of a finished run (Ed25519 over canonical JSON; verify with the SDK verifyReceipt) | runs:read |
GET | /api/v1/schedules | List schedules | runs:read |
POST | /api/v1/schedules | Create a schedule | schedules:write |