# List API keys

```http
GET /api-keys
```

List the caller's API keys, or the keys bound to one project, newest first; every surface returns active keys unless status selects expired, revoked or all.

## Parameters

| Name                | In    | Required | Description                                                                                                                                                                                                           |
| ------------------- | ----- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | query |          | Project ID or slug. Listing the keys bound to a project requires project.api\_keys.read. Omit to list the caller's own keys; a project-scoped API-key caller retains its enforced project when this field is omitted. |
| `status`            | query |          |                                                                                                                                                                                                                       |
| `sort_by`           | query |          |                                                                                                                                                                                                                       |
| `sort_order`        | query |          |                                                                                                                                                                                                                       |
| `cursor`            | query |          | Opaque cursor pointing at the next page. Omit it to read the first page.                                                                                                                                              |
| `limit`             | query |          | Maximum number of entries to return. Defaults to 20 and is capped at 100.                                                                                                                                             |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Paginated list of API keys                                                                                  |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | Not found                                                                                                   |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
