Axelered AI

Authentication

Bearer tokens, scopes, and how API keys secure your workspace.

All API requests are authenticated using bearer tokens in the standard Authorization header. Tokens use the ax_ prefix and are cryptographically signed, so forged or malformed tokens are rejected before they reach the database.

Authorization: Bearer ax_...

Tokens are bearer instruments: anyone with the token string can use it. Store them the way you would store a password. Only a salted digest is stored server-side, so even a database breach does not reveal usable tokens.


🔐 Scopes

Tokens carry one of two scope levels, determined at creation time:

ScopeDescription
ServerGlobal access across all workspaces. Used for administrative operations and workspace management.
WorkspaceScoped to a single workspace. Can access documents, collections, process runs, and configurations within that workspace only.

A workspace-scoped token is bound to its workspace at creation and cannot be moved or escalated. Server-scoped tokens are typically reserved for platform administration and are not issued through the standard key creation flow.

🛠️ Key Management

API keys are managed at the workspace level. For a detailed technical reference of every field and parameter, see the API Auth Reference.

Create an API Key

Issue a new bearer token for a workspace. You can optionally set a name and an expiration date.

curl -X POST "https://api.axelered.com/v1/w/{workspace_id}/keys" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Production Key",
    "expires_in": "90d"
  }'

The response includes the full token string in the secret field. This is the only time the token is returned in full: store it securely. The token cannot be retrieved again.

List, Read & Revoke

To manage existing keys, use the following endpoints:

  • List API Keys: Retrieve all active keys within a workspace.
  • Delete API Key: Immediately revoke a key. It stops working the moment deletion completes.

On this page