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

# Revoke an API key

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

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/api-keys/{id}`
- Auth: API key in cookie `better-auth.session_token`

The key stops opening the team at once. Whatever it filed stays filed, under its name.

## Path parameters

- `id` string, required

## Response `200`

Revoked.

- object
  - `ok` unknown, required
  - `data` object, required
    - `revoked` unknown, required
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `404`: No open key of yours with that id.

---

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