ZaltharDocs

API reference

Authentication

Authenticate API requests with a Zalthar API key.

Every request needs an API key in the Authorization header:

Authorization: Bearer zal-...

Zalthar API keys start with zal-. Create them in Settings → API keys; see API keys for scopes, rate limits, expiry and rotation.

Scopes

Calls to /v1 need a key with the inference scope. A key without it gets 403 permission_denied.

Keep keys secret

  • Store keys in environment variables or a secrets manager. The console’s code samples read ZALTHAR_API_KEY.
  • Never commit keys to source control or ship them in front-end code.
  • If a key may have leaked, revoke it in the console. Revocation takes effect immediately.

Errors

Status Code Cause
401 missing_api_key No Authorization header.
401 invalid_api_key The key is wrong, revoked or expired.
403 permission_denied The key lacks the inference scope, or the organisation is suspended.