---
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

---

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