---
title: "List API keys"
---

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

# List API keys

Path: CloudRaker Paperwork API › Account

`GET /api-keys`

Lists every API key issued for the caller's organization (metadata only — plaintext key values are never returned by this list). Each key carries `createdBy` (the member or API key that issued it), which is `null` for keys created before that was recorded. Authorization: organization administrators only. Not paginated.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.cloudraker.com/api-keys \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/api-keys';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/api-keys"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

API key metadata (never the plaintext values).

#### Example

```json
{
  "apiKeys": [
    {
      "id": "key_01H…",
      "name": "CI pipeline",
      "permissions": [
        "string"
      ],
      "v1Only": true,
      "lastUsedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "createdBy": {
        "id": "user_01H…",
        "type": "user",
        "name": "Jérôme Lin",
        "email": "string"
      }
    }
  ]
}
```

- `apiKeys` (`listApiKeys.response.200.apiKeys`; array<object>, required)
  - `id` (`listApiKeys.response.200.apiKeys.id`; string, required)
    - example `"key_01H…"`
  - `name` (`listApiKeys.response.200.apiKeys.name`; string, required)
    - example `"CI pipeline"`
  - `permissions` (`listApiKeys.response.200.apiKeys.permissions`; array<string>, required)
  - `v1Only` (`listApiKeys.response.200.apiKeys.v1Only`; boolean, required) — Restricted to the public /v1 API — all other routes answer 403.
  - `lastUsedAt` (`listApiKeys.response.200.apiKeys.lastUsedAt`; any of, required)
    - any of: `string`, `null`
  - `createdAt` (`listApiKeys.response.200.apiKeys.createdAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `createdBy` (`listApiKeys.response.200.apiKeys.createdBy`; any of, required) — Who created the key, or null when that is not known.
    - any of: `ApiKeyCreator`, `null`


Source: https://docs.cloudraker.com/paperwork/api/account/list-api-keys/index.md
