Skip to main content
Scopes define exactly which endpoints an API key can access. When you create a key, you choose one or more scopes. Every request is checked against the key’s scopes before it reaches the handler. If the key lacks the required scope, the request is rejected with a 403 Forbidden response.

All available scopes

How scope enforcement works

Every public API endpoint declares one or more required scopes. When a request arrives, the authorizer:
  1. Validates the API key from the X-API-Key header
  2. Loads the key’s assigned scopes from the database
  3. Checks if the key has at least one of the endpoint’s required scopes
  4. If the key lacks the required scope, the request is rejected before the handler runs

403 Forbidden response

When a key does not have the required scope, the API returns:
The required_scopes array in details tells you exactly which scope(s) you need. Add the scope to your API key in the Hrizn Dashboard, or create a new key with the correct scopes.

Presets

When creating an API key in the dashboard, you can use presets to quickly assign common scope combinations:

Endpoints that do not require a specific scope

The following endpoints require a valid API key but are accessible with any scope: The health check endpoint does not require an API key at all:

Check your key’s scopes programmatically

Last modified on June 30, 2026