Automate Certificates documentation

API keys and scopes

An API key gives a script or service access to your workspace without a person signing in. Keys carry scopes, so a key can be limited to what its job needs.

Create a key

  1. Sign in as an admin and open API Keys.
  2. Name the key, choose its scopes and, if you want, an expiry in days.
  3. Copy the key when it is shown. It starts with xcrt_ and cannot be shown again.

Only a signed-in admin can create or revoke a key, and a key can only be given scopes that its creator holds. A new key gets certs:read unless you choose others.

Use a key

curl -H "Authorization: Bearer xcrt_your_key" \
     https://api.automate-certificates.com/v1/certificates

Scopes

ScopeAllows
certs:readList and read certificates and their challenges.
certs:writeRequest, renew, import, revoke and delete certificates.
targets:readList and read targets.
targets:writeCreate, change and delete targets.
deploy:readRead deployments.
deploy:executeRun deployments and manage deployment rules.
monitoring:readRead monitoring results.
alerts:readRead alerts.
alerts:writeSet alert rules and manage webhooks.
audit:readRead the audit log.

What a scoped key cannot do

Managing members, roles, API keys, ACME accounts and cloud credentials needs a signed-in admin or a full-access key. A scoped key is refused with 403 insufficient_scope, even when its owner is an admin. A few admin actions, such as running a discovery scan or a bulk renewal, accept a key that holds the matching scope and belongs to an admin.

Limits

Each plan allows a fixed number of keys. Requests are limited to 120 per minute for a workspace.