Home / Docs / Authentication

Authentication

Every request to APIHub Star is authenticated with a bearer API key. Keys are scoped, environment-aware and fully auditable.

API keys

Pass your key in the Authorization header:

request
Authorization: Bearer ah_live_•••••••

Keys are prefixed by environment — ah_live_ for production and ah_test_ for sandbox — so they can never be confused.

Scopes

Grant the least privilege a key needs. Scopes are checked on every call.

Rotation & security

Never embed a live key in client-side code or a repository. Use environment variables or a secrets manager, and prefer short-lived keys for CI.