Skip to main content
Use scoped API keys to call the Public API v1 from your servers. Each key only reaches the endpoints its scopes allow, and you can restrict it to specific IP addresses, set an expiry date, rotate it, or revoke it.
Legacy API keys are deprecated. Existing legacy keys still work, but you can no longer generate or manage them in AGO. Move your integrations to API v1 keys (see Migrate from legacy API keys).

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.
To create keys from your own tools instead, use the API Keys API.

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 the X-API-Key header:
Use API v1 keys with endpoints under /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

  1. Go to Studio > API Keys.
  2. 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.
  3. 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

  1. Go to Studio > API Keys.
  2. Click Revoke on the key’s row and confirm.
Revocation immediately blocks new requests authenticated with the key on the Public API, and also revokes the keys it created through the API Keys API. AGO App calls authorized before revocation can continue for up to five minutes. A revoked key cannot be restored.

Migrate from legacy API keys

  1. Create an API v1 key with the scopes your integration needs.
  2. Update your integration to send the new key to the /api/v1/ endpoints. See the API reference for the endpoint that replaces each call.
  3. Contact AGO support to revoke the legacy key.

Troubleshooting

  • Check that the X-API-Key header is present and contains the full key.
  • Check that the key hasn’t been revoked, rotated more than 24 hours ago, locked, or expired.
  • If the key has an IP allowlist, check that your server’s public IP address is in it.
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.
You exceeded the rate limit of 900 requests per minute per IP address. Wait, then retry.