---
title: "Delete API key"
method: DELETE
path: "/accounts/api-key"
tags: ["API Keys"]
---

# Delete API key

`DELETE /accounts/api-key`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/api-key`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/api-key/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete an API key.
- A key can be delted by providing the full key or by id.
- Deleted API keys cannot be recovered

## Query parameters

- `key` string
- `id` string

## Response `200`

API key deleted successfully

- SuccessResponse
  - `message` string

## Other responses

- `401`: Unauthorized
- `404`: Key not found

## Changes

- **2026-11-12** `700eb1ace61a`: 1 breaking, 2 info
  - removed the required property `data` from the response with the `200` status
  - added the non-success response with the status `404`
  - added the optional property `message` to the response with the `200` status
- **2025-06-12** `4979dfd00eda`: 5 warning, 1 info
  - removed the optional property `created_on` from the response with the `200` status
  - removed the optional property `creds` from the response with the `200` status
  - removed the optional property `expires_on` from the response with the `200` status
  - removed the optional property `key` from the response with the `200` status
  - …2 more

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/api-key/delete.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
