---
title: "DELETE /api-keys/{key_id}"
method: DELETE
path: "/api-keys/{key_id}"
---

# DELETE /api-keys/{key_id}

`DELETE /api-keys/{key_id}`

## Request

- Base URL: `https://api.farpy.com/v1`
- URL: `https://api.farpy.com/v1/api-keys/{key_id}`
- Auth: API key in cookie `farpy_session`

## Path parameters

- `key_id` string, required

## Response `200`

API key revoked

- ApiKeyRevoked
  - `ok` true, required
  - `key_id` string, required
  - `revoked` true, required

## Other responses

- `401`: Not authenticated
- `404`: API key not found

---

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