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

# List Api Keys

`GET /admin/api-keys`

## Request

- Base URL: `https://developer.claimmind.life` (the document declares no server; this is the origin it was published from)
- URL: `https://developer.claimmind.life/admin/api-keys`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

List API keys based on role scope.

Access control:
- MTK Admin: Must specify tenant_id, can access any tenant
- Super Admin: If tenant_id provided, lists for that tenant (must be in hospital group).
               If not provided, lists all keys for tenants in hospital group.
- Org Admin: Lists keys for their own tenant only

## Query parameters

- `tenant_id` string, nullable: Tenant ID to list keys for. Required for MTK Admin, optional for Super Admin (lists all in hospital group), auto-set for Org Admin.

## Response `200`

Successful Response

- APIKeyResponse[]
  - `id` integer, required: Unique identifier for the API key
  - `description` string, required: Name of the API key
  - `key_identifier` string, required: Display identifier: sk-cm-abc..xyz
  - `scopes` string[], required: Permission scopes assigned to this key
  - `status` string, required: Key status: ENABLED or DISABLED
  - `organization_id` string, required: Organization this key belongs to
  - `is_org_key` boolean, required: True if organization-level key
  - `created_at` string, date-time, required: When the key was created
  - `updated_at` string, date-time, nullable: When the key was last updated

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/claimmind/apis/claimmind-open-api-service.md) - [All operations](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/revisions/ee8bfbeadb8a?raw)
