Authentication
Every request to the AnchorGrid API must include your API key in the X-API-Key header.
The X-API-Key header
Include the header on every request. The value is the full key secret you copied from the portal. It starts with ag-prod- followed by 64 hex characters.
GET https://api.anchorgrid.ai/v1/documents
X-API-Key: ag-prod-<64 hex chars>| Header name | X-API-Key |
| Format | ag-prod- + 64 hex characters |
| Storage | The raw key is never stored, only a SHA-256 hash. |
| Missing or invalid | 401 The response is intentionally generic. |
Get an API key
Sign in to the AnchorGrid portal, open API Keys and create a new key. Copy the secret right away. No account yet? Request API access first.
Plans and rate limits
Each API key carries its account's plan, which sets the rate limit, upload size, document retention, usage allowance and webhook delivery. See Usage for how analyses are counted.
| Plan | Rate limit | Webhooks |
|---|---|---|
free | 5 requests / min | No |
developer | 60 requests / min | Yes |
pro | 120 requests / min | Yes |
enterprise | 300 requests / min | Yes |
Rate-limited requests return 429 with X-RateLimit-* headers and a retry_after_seconds field in the body.