Skip to content

API reference

API: Agents

Markdown version

MethodPathWhat it doesScope
GET/v1/policy-decisionsPolicy engine decisions on agent actions, newest firstagents:read
GET/v1/runsList runs, newest firstagents:read
GET/v1/runs/:idGet a run with its effect-tagged step traceagents:read
POST/v1/runs/:id/approveApprove the run's pending action and resume itapprovals:write
POST/v1/runs/:id/cancelCancel a run that hasn't finishedagents:write
POST/v1/runs/:id/rejectReject the run's pending action; the run endsapprovals:write

Examples

GET /v1/policy-decisions

Policy engine decisions on agent actions, newest first

curl -s "https://api.ferryseal.com/v1/policy-decisions" \
  -H "Authorization: Bearer $FT_API_KEY"
const res = await fetch(`https://api.ferryseal.com/v1/policy-decisions`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.FT_API_KEY}` },
});
const data = await res.json();

GET /v1/runs

List runs, newest first

curl -s "https://api.ferryseal.com/v1/runs" \
  -H "Authorization: Bearer $FT_API_KEY"
const res = await fetch(`https://api.ferryseal.com/v1/runs`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.FT_API_KEY}` },
});
const data = await res.json();

GET /v1/runs/$ID

Get a run with its effect-tagged step trace

curl -s "https://api.ferryseal.com/v1/runs/$ID" \
  -H "Authorization: Bearer $FT_API_KEY"
const res = await fetch(`https://api.ferryseal.com/v1/runs/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.FT_API_KEY}` },
});
const data = await res.json();

POST /v1/runs/$ID/cancel

Cancel a run that hasn't finished

curl -s -X POST "https://api.ferryseal.com/v1/runs/$ID/cancel" \
  -H "Authorization: Bearer $FT_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.ferryseal.com/v1/runs/${id}/cancel`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.FT_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

Request and response schemas: https://www.ferryseal.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.