Skip to main content

API Keys API

Manage personal API keys for programmatic access.

Endpoints Overview

MethodEndpointDescription
GET/api-keys/me/api-keysList my API keys
POST/api-keys/me/api-keysCreate a new API key
DELETE/api-keys/me/api-keys/{key_id}Revoke an API key

List API Keys

GET /api-keys/me/api-keys

Returns a list of active API keys for the current user.

Response

[
{
"id": "uuid-of-key",
"name": "CI/CD Integration",
"key_prefix": "qarion_...",
"is_active": true,
"created_at": "2026-02-01T12:00:00Z",
"last_used_at": "2026-02-08T09:00:00Z",
"expires_at": null
}
]

Create API Key

POST /api-keys/me/api-keys

Creates a new API key. Important: The full key is only returned in this response.

Request Body

{
"name": "Development Key",
"expires_in_days": 30
}
  • expires_in_days: Optional. If omitted, the key never expires.

Response

{
"id": "uuid-of-key",
"name": "Development Key",
"key_prefix": "qarion_...",
"is_active": true,
"created_at": "2026-02-08T10:00:00Z",
"full_key": "qarion_live_sk_..."
}

Revoke API Key

DELETE /api-keys/me/api-keys/{key_id}

Revokes (deletes) an API key, rendering it invalid immediately.

Response

Standard success response or 404 if not found.