---
title: "Revoke my AI Gateway API key"
method: DELETE
path: "/v1/org/ai-gateway/api-keys/mine/{apiKeyId}"
tags: ["Inference Providers"]
---

# Revoke my AI Gateway API key

`DELETE /v1/org/ai-gateway/api-keys/mine/{apiKeyId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/ai-gateway/api-keys/mine/{apiKeyId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Revokes one of the caller's AI Gateway API keys; the Gateway refuses it from the next request. Works while member keys are off.

## Path parameters

- `apiKeyId` string, typeid, required

## Response `204`

Key revoked.

## Other responses

- `400`: The key id is invalid.
- `401`: Authentication required.
- `404`: No such active key.

## Changes

- **2026-11-10** `02023e0242a2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/ai-gateway/api-keys/mine/:apiKeyId/delete.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
