---
title: "Revoke an API key"
method: POST
path: "/api/auth/api-key/delete"
tags: ["Accounts"]
---

# Revoke an API key

`POST /api/auth/api-key/delete`

## Request

- Base URL: `https://agentdrives.com`
- URL: `https://agentdrives.com/api/auth/api-key/delete`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Request body

- object
  - `keyId` string, required

## Response `200`

Revoked

---

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