---
title: "List API keys"
method: GET
path: "/v0/users/{user-id}/api-keys"
tags: ["API keys"]
---

# List API keys

`GET /v0/users/{user-id}/api-keys`

List all your active API keys.

## Path parameters

- `user-id` string, required

## Query parameters

- `sort` '-created-at' | 'created-at'
- `page[size]` integer
- `page[after]` string, byte
- `page[before]` string, byte

## Response `200`

OK

- object
  - `api-keys` object[], required
    - `api-key-url` union, required — The resource path for the API key
      - string
      - string
    - `api-key-name` string, required — The immutable display name for the API key
    - `api-key-live?` boolean, required
    - `organization-url` string, required — Link to the [organization](#tag/Organizations).
    - `user-url` string, required — Link to the user.
    - `created-at` string, date-time, required — ISO 8601 formatted date-time.
  - `links` object, required
    - `prev` string, nullable, required
    - `next` string, nullable, required

## Other responses

- `400` — Bad Request
- `401` — Requires an API key to continue

---

[API](https://skmtc.net/griffin/apis/the-griffin-api.md) · [All operations](https://skmtc.net/griffin/apis/the-griffin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/griffin/the-griffin-api/revisions/e56cd4bb9677/schema)
