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

# Revoke an API key

`DELETE /api-keys/{id}`

## Request

- Base URL: `https://saturnsql.com/api`
- URL: `https://saturnsql.com/api/api-keys/{id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Revokes a key by id. Takes effect immediately; the key can no longer authenticate. Requires a session token.

## Path parameters

- `id` string, cuid, required

## Response `200`

Revoked

- object
  - `success` boolean

## Other responses

- `401`: Bad or missing credentials
- `404`: Key not found

---

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