← Production readiness overview

Authentication & API keys

Part of Production readiness. Pair with API quickstart.

Overview Auth & keys Webhooks Retries Rate limits Monitoring Data & audit

Where credentials are used

CredentialHeaderUse case
Organization API keyAuthorization: Bearer adcrm_live_…Servers, workers, CI — preferred for automation.
Session JWTAuthorization: Bearer eyJ…After Google OAuth or admin login; same API surface.
Admin login JSONN/A — exchange for JWTPOST /api/v1/auth/login only from trusted scripts.

Issuance & storage

Rotation

  1. Create a new key with a clear name (e.g. include date or system).
  2. Deploy the new secret; verify traffic with a safe read (e.g. GET /api/v1/agents).
  3. Revoke the old key via DELETE /api/v1/api_keys/:id/revoke.

Environments

Use separate organizations or at least separate keys for staging vs production so a leaked non-prod key cannot touch production CRM data.

Field reference — create key

POST /api/v1/api_keys accepts optional name and optional expires_in (integer days). Response includes key (full string once), key_prefix, last_four, expires_at, message reminder to save immediately.

Next: Webhook security →