---
title: "Revoke an API key by prefix"
method: DELETE
path: "/api/v1/keys"
tags: ["API Keys"]
---

# Revoke an API key by prefix

`DELETE /api/v1/keys`

## Request

- Base URL: `https://www.agenttax.io`
- URL: `https://www.agenttax.io/api/v1/keys`
- Auth: HTTP bearer

## Request body

- RevokeApiKeyRequest
  - `prefix` string, required: Key prefix to revoke (the first 16 chars of the original key).

## Response `200`

Key revoked (or `revoked: false` if no matching key).

## Other responses

- `400`: Missing prefix in body.
- `401`: Authentication required.

---

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