ARouter uses two distinct types of API keys with different permissions:Documentation Index
Fetch the complete documentation index at: https://docs.arouter.ai/llms.txt
Use this file to discover all available pages before exploring further.
| Key Type | Prefix | Purpose |
|---|---|---|
| Standard API Key | lr_live_... | LLM inference, all /v1/* endpoints |
| Management API Key | lr_admin_... | Key management, /api/v1/keys/* endpoints only |
/v1/chat/completions or other inference endpoints. Standard keys cannot manage other keys.
Creating a Management API Key
- Go to ARouter Dashboard
- Click New Key
- Select Management Key type
- Copy the key — it’s shown only once
Use Cases
Management keys are designed for:- CI/CD pipelines that rotate application keys on deployment
- Key provisioning services that create per-user or per-tenant keys
- Admin scripts that audit or clean up unused keys
- Terraform / infrastructure-as-code that manages key lifecycle
Key Management Endpoints
All management endpoints require a Management API key:List Keys
Create a Key
The
key value is returned only once at creation time. Store it securely — it cannot be retrieved again.Update a Key
Delete a Key
Key Object Reference
| Field | Type | Description |
|---|---|---|
hash | string | Unique key identifier (safe to store, not the key itself) |
name | string | Internal name for your reference |
label | string | Display label shown in Dashboard |
created_at | string | ISO 8601 creation timestamp |
last_used_at | string | ISO 8601 timestamp of last use |
usage.prompt_tokens | integer | Cumulative prompt tokens |
usage.completion_tokens | integer | Cumulative completion tokens |
usage.cost | number | Cumulative cost in USD |
limit_usd | number|null | Spending limit. null = unlimited. |
rate_limit.requests_per_minute | integer|null | RPM limit. null = unlimited. |
allowed_models | string[]|null | Model allow-list. null = all models allowed. |
allowed_providers | string[]|null | Provider allow-list. null = all providers allowed. |
Automated Key Rotation
See API Key Rotation for a complete guide to zero-downtime key rotation using Management keys.Related
- Key Management — Managing keys from the Dashboard
- API Key Rotation — Automated rotation strategies
- Guardrails — Setting limits and policies on keys