---
title: "Revoke an API key"
method: DELETE
path: "/o/{org}/api-keys/{key}"
tags: ["API keys"]
---

# Revoke an API key

`DELETE /o/{org}/api-keys/{key}`

## Request

- Base URL: `https://api.prix.dev`
- URL: `https://api.prix.dev/o/{org}/api-keys/{key}`
- Auth: HTTP bearer

The next request with the key is refused, and its pending webhook retries are dropped. For an OAuth grant, its access and refresh tokens both stop. Any org admin may revoke.

## Response `204`

Revoked.

## Other responses

- `401`: No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.
- `404`: No such resource for the caller, including one in an org the caller is not in or a Project that is private to someone else.

---

[API](https://skmtc.dev/getrush/apis/rush-api.md) · [All operations](https://skmtc.dev/getrush/apis/rush-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getrush/apis/rush-api/revisions/e351f947926b?raw)
