Skip to content
v1
Feedback

Authenticate with API keys

Create scoped API keys, send them in the Authorization header and rotate them safely.

You are reading the v1 docs of Acme Cloud. Go to the latest version (v2) →

On this page

Every request to the Acme Cloud REST API must include an API key. Keys belong to a workspace and can be limited to specific projects and permissions.

Create an API key#

  1. Go to Settings → API keys.
  2. Click Create key, name it after where it will be used (for example “GitHub Actions”).
  3. Choose scopes, such as deployments:write or projects:read.
  4. Copy the key now — it is shown only once.

Send the key#

Pass the key as a bearer token:

GET /v2/projects
curl https://api.acme.example/v2/projects \
  -H "Authorization: Bearer $ACME_TOKEN"

Test keys#

Keys that start with acme_test_ work against a sandbox and never touch production.

Rotate a key#

Create the new key first, update your secrets, then revoke the old key. Revoked keys stop working within a minute.

Keep keys secret

Never commit API keys to Git. If a key leaks, revoke it immediately — GitHub secret scanning will also notify us.

Was this article helpful?

81% found this helpful