---
title: "Revoke Api Key Endpoint"
method: DELETE
path: "/api/v1/auth/api-keys/{key_id}"
tags: ["authentication"]
---

# Revoke Api Key Endpoint

`DELETE /api/v1/auth/api-keys/{key_id}`

## Request

- Base URL: `https://calorieapiadmin.com`
- URL: `https://calorieapiadmin.com/api/v1/auth/api-keys/{key_id}`
- Auth: none declared

Revoke an API key (requires JWT token).

## Path parameters

- `key_id` integer, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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