---
title: "Revoke one of your API keys."
method: POST
path: "/api/account/keys/revoke"
---

# Revoke one of your API keys.

`POST /api/account/keys/revoke`

## Request

- Base URL: `https://okfindex.com`
- URL: `https://okfindex.com/api/account/keys/revoke`
- Auth: API key in cookie `__Host-mm-auth`

Stops the key at once. Repeating is harmless.
Returns: { ok }

## Request body

- object
  - `id` string, required: The key `id`.

## Response `200`

{ ok }

- object
  - `ok` boolean, required: true

## Other responses

- `400`: invalid_key_id
- `401`: invalid_session
- `403`: invalid_origin / invalid_csrf
- `404`: key_not_found
- `503`: auth_unavailable

---

[API](https://skmtc.dev/okfindex/apis/okf-index.md) · [All operations](https://skmtc.dev/okfindex/apis/okf-index/llms.txt) · [OpenAPI document](https://skmtc.dev/okfindex/apis/okf-index/revisions/4b13ca3c739f?raw)
