Base URL
/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
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
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_LIMITuntil the next period or an upgrade. Replays of an existingrequest_iddon’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.
Related
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.