Documentation
05Administration

API keys

Create scoped keys for the HTTP API, and rotate or revoke them.

API keys give programs and AI agents scoped access to a team's data. Manage them on the team's API Keys page.

Create a key

  1. Choose Create key.
  2. Enter a Key name that describes its purpose, for example "Production sync".
  3. Select Permissions. Grant the least privileges the integration needs.
  4. Choose Site access. Leaving it empty means every current and future site in the team. Otherwise select the specific sites.
  5. Choose when the key expires: 30, 90, 180, or 365 days, or never.
  6. Create the key and copy it immediately. The full key is shown only once.

Permissions

PermissionAllows
Analytics readView visits, visitors, page views, and other analytics data.
Analysis definitions readView shared saved filters, funnel definitions, and goal definitions.
Analysis definitions writeCreate, update, or delete funnel and goal definitions.
Site readView the site list and site details.
Site writeCreate, update, or delete sites.
Config readView site settings such as the tracking code and domain whitelist.
Config writeModify site settings such as tracking strength and path blacklist.

In the API these are the scopes analytics:read, analysis:read, analysis:write, site:read, site:write, site_config:read, and site_config:write.

API keys can never manage members, users, ownership, or other keys.

Use a key

Send it as a Bearer token. See the API overview.

Rotate and revoke

  • Rotate issues a new key and revokes the old one immediately. Copy the new key when it is shown.
  • Revoke disables the key immediately.

The key list shows each key's name, permissions, sites, expiry, last used time, and status (Active, Expired, or Revoked).

Keys are stored as hashes derived from MAIN_SECRET. If you change MAIN_SECRET, existing keys stop working.