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

# Revoke an API key

`DELETE /api-keys/{key_id}`

## Request

- Base URL: `https://eu.bisibility.com/api/v1`
- URL: `https://eu.bisibility.com/api/v1/api-keys/{key_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Query parameters

- `project` string

## Headers

- `Bisibility-API-Version` 'v1'
- `X-Bisibility-Project` string
- `X-Bisibility-Source` 'sdk' | 'cli' | 'mcp'

## Response `200`

JSON response

- ApiKey
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, nullable, required
  - `id` string, required
  - `last_used_at` string, date-time, nullable, required
  - `name` string, required
  - `prefix` string, required
  - `revoked_at` string, date-time, nullable, required
  - `scope` 'read' | 'write' | 'admin', required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Unsupported API version
- `429`: Rate limited

## Changes

- **2026-10-19** `a6e1ec0dec82`: 5 info
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `400`
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `401`
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `403`
  - media type `application/json` was changed to a more specific media type `application/problem+json` for the response status `404`
  - …1 more

[Operation history](https://skmtc.dev/bisibility/apis/bisibility-public-api/changes/api-keys/:key_id/delete.md)

---

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