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

# Revoke a user API key

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

Revoke an API key for a user. Revocation is terminal: a revoked key can no longer authenticate any request, and the revocation cannot be undone. 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 revoked: a key can always destroy itself, but it cannot revoke the user's other keys. Authenticate with a JWT (user session token) to revoke other keys.

## Path parameters

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

## Response `204`

successful deletion

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