Skip to main content
The Agent API is what your agent, script or workflow calls to ask a person. Every integration (the CLI, MCP, n8n, Zapier) is a thin client for it, so anything they can do, you can do over HTTP.

Base URL

All paths start with /v1.

Authentication

Approval endpoints need two headers: GET /v1/agents needs only X-Api-Key. Tools use it to check a key and let you pick an agent. One key works for every agent in its workspace. These are automation credentials: never use your own password or session, and keep the key out of source code and logs. See Workspace settings and API keys.

Endpoints

{requestId} is the request_id from the create response: yours if you sent one, otherwise a UUID the server generated. The fields of the request and the result are described in The approval object.

A full round trip

1

Create

The people assigned to the agent get a push notification.
2

Wait

Poll GET /v1/approvals/deploy-v2.4-prod/result until status isn’t pending, or set callback.url and FinalSay POSTs the result to you. See Callbacks.
3

Act

Proceed only on the value you treat as approval. Handle custom_instruction and expired too.

Rate limits and quotas

  • Create burst limit: 60 create attempts per agent per 60 seconds (sliding window). Every attempt counts, including ones that fail validation and idempotent replays. Over the limit you get 429 rate_limited: back off with jitter and retry.
  • Plan quota: each approval counts toward the workspace’s monthly allowance. At the limit, creates return 403 USAGE_APPROVAL_LIMIT until the next period or an upgrade. Replays of an existing request_id don’t count. See Plans and limits.
  • Reading results (GET) isn’t rate limited, but poll politely: every 2 to 15 seconds is plenty.

Health check

GET https://api.finalsay-hitl.com/health returns { "ok": true } and needs no headers.

The approval object

Every request field, limit and result field.

Errors

Every error code and what to do about it.

Idempotency and retries

Retry without asking twice.

Callbacks

Get the result pushed to you.