Skip to main content

Authentication

AtlasCore uses bearer token authentication on all API endpoints.

Key format

PrefixEnvironmentPurpose
ac_test_SandboxDevelopment and testing. No billing.
ac_live_ProductionLive data with billing active.

Making requests

Include your API key in the Authorization header:

curl -H "Authorization: Bearer ac_test_your_key_here" \
https://api.atlascore.com.au/v1/datasets

Pack-scoped requests

Most tenant-facing endpoints require a pack_id parameter. This scopes the request to datasets bound to your entitled pack:

curl -H "Authorization: Bearer ac_test_your_key_here" \
"https://api.atlascore.com.au/v1/emission-factors/scope2?grid=NSW1&pack_id=au_climate_disclosure"

Admin requests

Admin endpoints use a separate key and support tenant-scoped operations via the X-AtlasCore-On-Behalf-Of-Tenant-Id header:

curl -H "Authorization: Bearer admin_key_here" \
-H "X-AtlasCore-On-Behalf-Of-Tenant-Id: tenant_abc" \
https://api.atlascore.com.au/v1/admin/datasets

Auth behaviour

EnvironmentDefault AUTH_REQUIRED
dev, test, localfalse
All otherstrue

When auth is disabled (local development), the API accepts any bearer token and assigns a default tenant context.

Error responses

StatusMeaning
401Missing or invalid bearer token
403Valid token but insufficient entitlement for the requested pack
429Rate limit or quota exceeded

Token rotation

To rotate an API key:

  1. Generate a new key through the AtlasCore dashboard
  2. Update your application to use the new key
  3. Revoke the old key once traffic has migrated

Both keys remain valid during the transition window.

For sustainability consultants

If you're receiving API access from a developer or integration partner, they will provide you with a bearer token. You don't need to manage key rotation — that's handled by the account holder.