API keys & connecting automations
Automations (n8n, Zapier, scripts) call the Agent API using two values from the web dashboard or mobile app:- Agent ID — identifies which agent is creating approvals.
- Workspace API key — authenticates your team. Keys are created at the workspace level and work with any agent in that workspace.
Where to find them
Mobile
Open an agent, then go to Credentials (or the screen that shows integration credentials).Web
Open Quickstart Integration for a guided flow, or Workspace (Integrations in the sidebar) for workspace keys, or an agent’s detail screens for Agent ID and related settings—follow the labels in the web dashboard.Agent ID
The product displays the Agent ID (UUID). Copy it—you will send it on every API request as theX-Agent-Id header.
Workspace API key
- Use Generate API key (only workspace owners can create keys).
- The plaintext key appears once after generation. Copy it immediately and store it in a password manager or your automation’s secret store.
- Pass the key as the
X-Api-Keyheader on each request.
Required HTTP headers
Most Agent API requests must include:| Header | Value |
|---|---|
X-Agent-Id | Your agent’s UUID |
X-Api-Key | The full workspace API key (plain text, only shown at creation) |
GET /v1/agents uses X-Api-Key only (no X-Agent-Id) to list agents for the key’s team. See the Agent API.
Use your deployment’s base URL (for example https://api.example.com) with paths such as POST /v1/approvals. Your administrator or onboarding materials supply the exact base URL. The official Zapier integration in this repo targets https://api.finalsay-hitl.com and does not ask for a base URL.
Next steps
- Agent API reference — JSON body and responses
- OpenAPI spec — machine-readable Agent API
- Automation limits & billing — quotas and
USAGE_APPROVAL_LIMIT - n8n, Zapier, MCP, or custom HTTP — integration options