---
search:
  tags:
    - Access
    - GET
seo:
  description: >-
    List API keys. Reference for the GET /api-keys endpoint in the piecemeal
    API.
sidebar:
  label: List API keys
  badge: GET
title: List API keys
type: openapi-operation
---
`GET /api-keys`

**Responses**

- `200` — OK
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

Response example, 200:

```json
{
  "items": [
    {
      "createdAt": "2019-08-24T14:15:22Z",
      "id": 0,
      "lastUsedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "prefix": "string",
      "scope": "full",
      "userId": 0,
      "username": "string"
    }
  ]
}
```
