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

# Revoke an API key

`DELETE /api/v1/keys/{id}`

## Request

- Base URL: `https://spoofy.social`
- URL: `https://spoofy.social/api/v1/keys/{id}`
- Auth: API key in cookie `better-auth.session_token`

The key stops working at once.

## Path parameters

- `id` string, required

## Response `200`

Revoked.

- object
  - `ok` unknown

## Other responses

- `404`: Not found on your account.
- `429`: Slow down: too many requests in a short time. Wait `Retry-After` seconds and carry on.

---

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