---
title: "Gets details of a specific API key."
method: GET
path: "/api/tenants/{tenantId}/api-keys/{keyHash}"
tags: ["ApiKeys"]
---

# Gets details of a specific API key.

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

## Path parameters

- `tenantId` string, required
- `keyHash` string, required

## Response `200`

OK

- ApiKeyRecord
  - `keyHash` string
  - `tenantId` string
  - `name` string
  - `description` string, nullable
  - `keyPrefix` string
  - `status` string
  - `scopes` string[]
  - `expiresAt` string, date-time, nullable
  - `lastUsedAt` string, date-time, nullable
  - `lastUsedFromIp` string, nullable
  - `allowedIpAddresses` string[], nullable
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `createdBy` string, nullable
  - `metadata` object, nullable

## Other responses

- `404` — Not Found

---

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