---
title: "Delete an API key"
method: DELETE
path: "/api-keys/{key_id}"
tags: ["api-keys"]
---

# Delete an API key

`DELETE /api-keys/{key_id}`

Revokes an API key. Subsequent requests using its value are rejected as unauthorized.

## Path parameters

- `key_id` string, uuid, required — API key identifier to delete

## Response `200`

OK

- DeleteAPIKeyOutputBody — Confirmation that the API key was deleted.
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `message` string, required — Human-readable result message.

## Other responses

- `default` — Error

## Changes

> 18 revisions in range; 5 could not be searched.

- **2026-07-23** `5a989777701c` — 1 breaking
  - for the `path` request parameter `key_id`, the type/format was changed from `string`/`` to `string`/`uuid`

[Change history](https://skmtc.dev/axilioai/apis/axilio-api/changes/api-keys/:key_id/delete.md)

---

[API](https://skmtc.dev/axilioai/apis/axilio-api.md) · [All operations](https://skmtc.dev/axilioai/apis/axilio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/axilioai/axilio-api/revisions/8a66f81813b3/schema)
