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

# Revoke an API key

`DELETE /v1/auth/keys/{api_key_id}`

Revoke (delete) an API key for the authenticated user.
    
    This endpoint:
    - Validates the current API key authentication
    - Revokes the specified API key (if it belongs to the user)
    - Returns confirmation of revocation
    
    **Authentication**: Requires valid API key in Authorization header

## Path parameters

- `api_key_id` string, required

## Response `200`

Successful Response

- RevokeApiKeyResponse
  - `success` boolean — Indicates successful revocation
  - `message` string, required — Confirmation message

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — API key not found
- `422` — Validation Error
- `500` — Internal Server Error

## Changes

- **2025-12-10** `5a9a6b9cb07a` — 12 info
  - added the optional property `details` to the response with the `400` status
  - added the optional property `details` to the response with the `401` status
  - added the optional property `details` to the response with the `404` status
  - added the optional property `details` to the response with the `500` status
  - …8 more
- **2025-11-17** `93aa65273d4d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/elicitlabs/apis/elicit-labs-api/changes/v1/auth/keys/:api_key_id/delete.md)

---

[API](https://skmtc.dev/elicitlabs/apis/elicit-labs-api.md) · [All operations](https://skmtc.dev/elicitlabs/apis/elicit-labs-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elicitlabs/elicit-labs-api/revisions/27701839a070/schema)
