Skip to main content

GET /api-keys

This endpoint returns a list of all API keys associated with the authenticated user’s account.

Response

apiKeys
array
An array of API key objects.
id
string
The unique identifier for the API key.
name
string
The user-defined name for the API key.
description
string
A description of the API key’s purpose.
expiresAt
string
The expiration date of the API key.
curl -X GET https://api.llmgenerator.com/api/v1/api-keys \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "apiKeys": [
    {
      "id": "key_xxxxxxxxxxxxx",
      "name": "Production Key",
      "description": "Used for the main application",
      "expiresAt": "2025-12-31T23:59:59Z"
    },
    {
      "id": "key_yyyyyyyyyyyyy",
      "name": "Staging Key",
      "description": "For testing in the staging environment",
      "expiresAt": null
    }
  ],
  "total": 2
}