Authentication

Send your API key in the X-API-Key header on every request.

X-API-Key: comp_your_key_here

Plan requirement

API access is available on paid plans. On the Free plan, requests with an API key return 403.

Scopes

Each key carries scopes in the form resource:action, for example organization:read or member:update. A request that needs a scope the key lacks is rejected with 403. Choose the smallest set of scopes that works. Keys must be created with explicit scopes; keys without scopes are no longer accepted.

Organization access

A key belongs to one organization and can only read and change that organization's data. You do not pass an organization ID.

Expiry and revocation

Set an expiry when you create a key and rotate keys regularly. Revoke a key in Settings, API Keys at any time; it stops working immediately. Never put a key in browser code, mobile apps or public repositories.

Keys are stored hashed. Complianz cannot show you a key again after creation. If you lose one, create a new key and revoke the old one.