---
title: "List API Keys"
method: GET
path: "/v1/api-keys"
tags: ["API Keys"]
---

# List API Keys

`GET /v1/api-keys`

## Request

- Base URL: `https://gpucloud.ca/api`
- URL: `https://gpucloud.ca/api/v1/api-keys`
- Auth: HTTP bearer

List the API keys of the authenticated user. Only the key prefix and metadata are returned. Keys are created and revoked from the GPU Cloud console only (Settings, API keys section, signed-in session): an API key cannot create or delete keys.

## Response `200`

List of API keys

- object
  - `data` ApiKey[]
    - `id` string
    - `name` string
    - `prefix` string: Visible prefix of the key (e.g. gpu_k_abc1)
    - `lastUsedAt` string, date-time, nullable
    - `createdAt` string, date-time

## Other responses

- `401`: No API key (accountAction.code NO_API_KEY) or an invalid, expired, revoked or read only key on a write (INVALID_API_KEY). Provide a valid API key as `Authorization: Bearer <key>`; accountAction gives the links to create an account and a key.
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/gpucloud/apis/gpu-cloud-api.md) · [All operations](https://skmtc.dev/gpucloud/apis/gpu-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gpucloud/apis/gpu-cloud-api/revisions/ed530411f5c7?raw)
