---
title: "Revoke Api Key"
method: POST
path: "/me/api-keys/{key_id}/revoke"
tags: ["api_keys"]
---

# Revoke Api Key

`POST /me/api-keys/{key_id}/revoke`

## Request

- Base URL: `https://api.oxlo.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.oxlo.ai/me/api-keys/{key_id}/revoke`
- Auth: HTTP bearer

## Path parameters

- `key_id` string, required

## Response `200`

Successful Response

- ApiKeyResponse
  - `label` string, nullable
  - `plan_id` string, nullable
  - `id` string, required
  - `status` string, required
  - `created_at` string, date-time, required
  - `last_used_at` string, date-time, nullable
  - `revoked_at` string, date-time, nullable
  - `revoked_by` string, nullable
  - `key_fragment` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/oxlo/apis/oxlo-backend.md) - [All operations](https://skmtc.dev/oxlo/apis/oxlo-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/oxlo/apis/oxlo-backend/revisions/bc2ecdc94f31?raw)
