---
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

---

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