Create an API key
1
Open the API keys page
Go to Studio > API Keys and click Create API Key.
2
Describe the key
Enter a name, for example “Production CRM sync”, and optionally a description.
3
Choose scopes
Select only the scopes your integration needs (see Scopes).
4
Restrict the key (optional)
In IP Allowlist, enter comma-separated IP addresses or CIDR blocks, for example
203.0.113.0/24, 198.51.100.1. Leave it empty to allow all IP addresses. You can also set an Expiry Date.5
Copy the key
Click Create Key and copy the key right away. It is shown only once.
Active keys and history
Studio > API Keys opens on Active keys, showing current keys that have not been rotated, revoked, expired or locked. Switch to History to see those older or unavailable keys and their status. A rotated key appears in History even during its grace period. You can still revoke it there to end the grace period. For AGO Apps, calls authorized before revocation can continue for up to five minutes.Scopes
A
write scope includes the matching read scope: knowledge:write also grants knowledge:read. The * scope overrides every other selection.
knowledge:files:read is never included in knowledge:read or knowledge:write, and the Read only shortcut does not select it: check it on its own row. An original file can contain more than the text AGO uses, such as comments, tracked changes or hidden sheets, so grant it only to integrations that need the files.
To let one of your servers call a single AGO App, select the
apps:invoke scope and choose the app, or create the key from the app’s page. This key can only call that app and has no other access to AGO.Make API requests
Send the key in theX-API-Key header:
/api/v1/. A key with apps:invoke can also call its AGO App directly using Authorization: Bearer <key>. The widget and the SDK API authenticate end users differently; see Widget & SDK Authentication.
Security features
IP allowlisting. Requests from an IP address outside the key’s allowlist are rejected. Automatic lockout. After 10 consecutive failed authentication attempts with a key, AGO locks it. Its status changes to Locked on the API keys page. Usage tracking. The API keys page shows when each key was last used. Studio > Monitoring > API Logs lists the calls made with each key, with the endpoint, response status and client IP. Rotation. Rotating a key creates a new secret with the same scopes and settings. The old key has a grace period of up to 24 hours to update your integration, unless it expires, is locked or is revoked sooner.Rotate a key
- Go to Studio > API Keys.
- Click Rotate on the key’s row and confirm. You become the owner of the new key, even when another admin created the old one. The new key keeps its scopes, IP restrictions and expiry date; owner-dependent access, including AGO Apps, follows your permissions.
- Copy the new key and update your integration within 24 hours. After that, the old key is refused; AGO App calls authorized before the cutoff can continue for up to five minutes.
Revoke a key
- Go to Studio > API Keys.
- Click Revoke on the key’s row and confirm.
Migrate from legacy API keys
- Create an API v1 key with the scopes your integration needs.
- Update your integration to send the new key to the
/api/v1/endpoints. See the API reference for the endpoint that replaces each call. - Contact AGO support to revoke the legacy key.
Troubleshooting
403 Forbidden
403 Forbidden
Read the error message: the key may lack a required scope, or its owner may lack access to the requested feature or app. For AGO Apps, also check that the feature is enabled, the owner has access to AGO Apps and to the specific app, and the caller’s IP is allowed. Adding scopes does not grant the owner access.
429 Too Many Requests
429 Too Many Requests
You exceeded the rate limit of 900 requests per minute per IP address. Wait, then retry.
