Skip to main content
GET
/
v1
/
api-keys
curl -X GET "https://api.danubeai.com/v1/api-keys" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
[
  {
    "id": "abc123",
    "key_prefix": "dk_abc12",
    "name": "Production Key",
    "created_at": "2026-01-15T10:00:00Z",
    "last_used": "2026-02-20T14:30:00Z",
    "permissions": null
  },
  {
    "id": "def456",
    "key_prefix": "dk_def45",
    "name": "Restricted Key",
    "created_at": "2026-02-01T10:00:00Z",
    "last_used": null,
    "permissions": {
      "allowed_services": ["service_uuid_1"],
      "allowed_tools": null,
      "max_spend_per_call_cents": null,
      "max_spend_per_day_cents": null
    }
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.danubeai.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Returns all active API keys for the authenticated user. The plaintext key value is never returned after creation — only the key_prefix (first 8 characters) is shown for identification. Auth: Requires JWT token (Authorization: Bearer <token>).

Response

Returns an array of API key objects.
id
string
API key UUID
key_prefix
string
First 8 characters of the key (for identification)
name
string
Display name for the key
created_at
string
ISO 8601 creation timestamp
last_used
string
ISO 8601 timestamp of last usage (null if never used)
permissions
object
Resource permissions. null means unrestricted access.

Example

curl -X GET "https://api.danubeai.com/v1/api-keys" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
[
  {
    "id": "abc123",
    "key_prefix": "dk_abc12",
    "name": "Production Key",
    "created_at": "2026-01-15T10:00:00Z",
    "last_used": "2026-02-20T14:30:00Z",
    "permissions": null
  },
  {
    "id": "def456",
    "key_prefix": "dk_def45",
    "name": "Restricted Key",
    "created_at": "2026-02-01T10:00:00Z",
    "last_used": null,
    "permissions": {
      "allowed_services": ["service_uuid_1"],
      "allowed_tools": null,
      "max_spend_per_call_cents": null,
      "max_spend_per_day_cents": null
    }
  }
]