---
title: "Get API key details"
method: GET
path: "/v1/apikeys/{keyId}"
tags: ["API Keys"]
---

# Get API key details

`GET /v1/apikeys/{keyId}`

Retrieves details for a specific API key. The complete API key secret is not included in the response.

## Path parameters

- `keyId` string, required

## Response `200`

API key details retrieved successfully

- ApiKeyDto
  - `id` string
  - `name` string
  - `prefix` string
  - `active` boolean
  - `lastUsed` string, date-time
  - `expiresAt` string, date-time
  - `usageCount` integer
  - `permissions` string
  - `created` integer

## Other responses

- `401` — User is not authorized to access this endpoint
- `404` — API key not found
- `500` — Internal server error

---

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