/api/v1/keysRequires management scope. The plaintext key is returned only once on successful creation; store it securely.
Back to API Key endpoint listRequest parameters
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | See the OpenAPI schema for field details. |
scopes | string[] | No | See the OpenAPI schema for field details. |
expires_at | string | No | Format: date-time. |
Response fields
| Field | Type | Required | Description |
|---|---|---|---|
data | object | No | See the OpenAPI schema for field details. |
Errors
401
UNAUTHORIZEDMissing or invalid Authorization Bearer token.
403
FORBIDDENThe current API key is not authorized for this scope, model, or management capability.
422
VALIDATION_ERRORThe request body, path parameters, or query parameters do not match the endpoint schema.
Notes
- Use a GlobalRouter API key; upstream OpenRouter API keys are never exposed to tenants.