---
title: "View a user API key"
method: GET
path: "/v0/users/{user}/keys/{key}"
tags: ["users", "keys"]
---

# View a user API key

`GET /v0/users/{user}/keys/{key}`

View an API key for a user. Only the authenticated user themselves and server admins have access to this endpoint. When authenticated with a user API key, only that key itself may be viewed: a key cannot inspect the user's other keys. Authenticate with a JWT (user session token) to view other keys.

## Path parameters

- `key` string, uuid, required
- `user` string, required

## Response `200`

successful operation

- JsonUserKey
  - `creation` string, date-time, required
  - `expiration` string, date-time, required
  - `name` string, required
  - `revoked` string, date-time
  - `user` string, uuid, required
  - `uuid` string, uuid, required

## Other responses

- `4XX` — Error
- `5XX` — Error

## Changes

- **2026-06-12** `43de45aea19d` — 1 info
  - endpoint added
- **2026-03-20** `36c8ad753527` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/bencherdev/apis/bencher-api/changes/v0/users/:user/keys/:key/get.md)

---

[API](https://skmtc.dev/bencherdev/apis/bencher-api.md) · [All operations](https://skmtc.dev/bencherdev/apis/bencher-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bencherdev/bencher-api/revisions/74e9728a444e/schema)
