Skip to main content

API key authentication

The Indigenius Developer API uses static API keys passed in a request header. There are no OAuth flows or session tokens. Send your key in the X-API-Key header on every request:

Key anatomy

When you create or list a key you’ll see two distinct identifiers: The actual secret used in X-API-Key is returned only at creation time. Store it immediately in a secret manager — it cannot be retrieved again. If it is lost, rotate the key.

Scopes

Every key is issued with a set of permission scopes. Calling an endpoint without the required scope returns 403 Forbidden. Scopes follow a resource:action pattern:
You can inspect or update scopes at any time — see Auth & Keys.

Error responses

Best practices

  • Never expose keys client-side. API keys must only be used in server-side code or secure environments. Do not embed them in frontend JavaScript, mobile apps, or public repositories.
  • Use environment variables. Store keys as INDIGENIUS_API_KEY and read them at runtime — never hardcode them.
  • One key per environment. Create separate keys for dev, staging, and prod so a compromised key cannot affect all environments.
  • Least privilege. Grant only the scopes a key actually needs.
  • Rotate regularly. Use POST /v1/auth/keys/{id}/rotate on a schedule and immediately after any suspected exposure.