---
title: "Admin Revoke Key"
method: DELETE
path: "/admin/key/{key_id}"
---

# Admin Revoke Key

`DELETE /admin/key/{key_id}`

## Request

- Base URL: `https://api.optionsdataapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.optionsdataapi.com/admin/key/{key_id}`
- Auth: none declared

Revoke (deactivate) an API key by its database id.

Requires X-API-Key header with tier=admin.
The key's is_active flag is set to 0, immediately invalidating it.

## Path parameters

- `key_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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