---
title: "Lists all API keys for a tenant."
method: GET
path: "/api/tenants/{tenantId}/api-keys"
tags: ["ApiKeys"]
---

# Lists all API keys for a tenant.

`GET /api/tenants/{tenantId}/api-keys`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/api/tenants/{tenantId}/api-keys`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/api/tenants/:tenantId/api-keys/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenantId` string, required

## Response `200`

List of API keys (without the actual key values).

- ApiKeyListItem[]
  - `keyHash` string, required
  - `keyPrefix` string, required
  - `name` string, required
  - `description` string, nullable
  - `status` string, required
  - `scopes` string[], required
  - `createdAt` string, date-time, required
  - `lastUsedAt` string, date-time, nullable
  - `expiresAt` string, date-time, nullable

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
