---
title: "List API keys"
method: GET
path: "/organizations/{orgId}/api-keys"
tags: ["organizations"]
---

# List API keys

`GET /organizations/{orgId}/api-keys`

Retrieve a list of API keys accessible by the authenticated user.
  - **Organization owner/admin**: Can view all API keys within the organization.
  - **Organization user**: Can only see their own API keys.

## Path parameters

- `orgId` string, uuid, required

## Response `200`

Successfully retrieved the list of API keys.

- ListApiKeysResponse
  - `keys` ApiKeyListItem[], required — A list of API keys.
    - `id` string, uuid, required — The unique identifier for the API key.
    - `name` string, required — The API key name.
    - `type` 'ie_model' — The API key type. This field is deprecated and will be removed in a future version. Use the `scope` field instead to specify the API key's scope.
    - `scope` 'ie_model' | 'ce_resource', required — The API key scope.
    - `partialKey` string, required — The last 10 characters of the API key.
    - `createdAt` integer, required — The UNIX timestamp in seconds when the API key was created (UTC).
    - `expiresAt` integer, required — The UNIX timestamp (in seconds) indicating when the API key will expire (UTC). If the value is `-1`, the API key does not expire.
    - `owner` ApiKeyListOwnerInfo, required — Information about the user who owns this API key.
      - `id` string, uuid, required — The user ID.
      - `firstName` string, required — The user first name.
      - `lastName` string, required — The user last name.

## Other responses

- `400` — - [group:**request**, code:**0**]: Invalid field in the request.
- `404` — - [group:**organization**, code:**2**]: Organization does not exist.
- `500` — - [group:**api-key**, code:**1200**]: Get API key list encountered DB error. - [group:**organization**, code:**1201**]: Get organization encountered DB error.

---

[API](https://skmtc.net/gmicloud/apis/cluster-engine-api.md) · [All operations](https://skmtc.net/gmicloud/apis/cluster-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gmicloud/cluster-engine-api/versions/bcbab016469f/schema)
