> ## Documentation Index
> Fetch the complete documentation index at: https://docs.littledemo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List API keys

` GET /api/v1/api-keys `

List API keys

## Servers

- ` https://littledemo.com ` — Production

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` bearerAuth `: ` http `

  - HTTP scheme: ` bearer `

  - Live API key, for example `Authorization: Bearer ld_live_...`.

### Alternative 2

- ` cookieAuth `: ` apiKey `

  - Credential: ` better-auth.session_token ` in ` cookie `

  - Dashboard session cookie.

## Responses

### ` 200 ` — API key list

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` keys `

  - ` keys `: type ` array `

    - ` array item `: type ` object `

      - Required fields: ` id `, ` key_prefix `, ` name `, ` type `, ` project_id `, ` allowed_domains `, ` last_used_at `, ` created_at `

      - ` id `: type ` string `

      - ` key_prefix `: type ` string `

      - ` name `: type ` string `

      - ` type `: type ` string `

        - enum: ` ["live","publishable"] `

      - ` project_id `: type ` string `; nullable

      - ` allowed_domains `: type ` string `; nullable — JSON-encoded domain allowlist for publishable keys.

        - example: ` "[\"example.com\",\"docs.example.com\"]" `

      - ` last_used_at `: type ` string `; nullable

      - ` created_at `: type ` string `

## Request examples

### cURL

```curl
curl -X GET 'https://littledemo.com/api/v1/api-keys' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://littledemo.com/api/v1/api-keys', {
  method: 'GET',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN"
  }
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.get('https://littledemo.com/api/v1/api-keys', headers=headers)
print(response.json())
```