---
title: "Revokes one current user API key"
method: DELETE
path: "/zot/auth/apikey"
---

# Revokes one current user API key

`DELETE /zot/auth/apikey`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification/docs/zot/auth/apikey/delete.ts> (a function with typed inputs; its response is checked against the schema)

Revokes one current user API key based on given key ID

## Query parameters

- `id` string, required

## Response `200`

ok

- string

## Other responses

- `400`: bad request
- `401`: unauthorized
- `500`: internal server error

## Changes

- **2023-10-20** `c56ae3fa3f7d`: 1 info
  - endpoint added
- **2021-10-21** `81b68c5e4fde`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification/changes/zot/auth/apikey/delete.md)

---

[API](https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification.md) - [All operations](https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification/revisions/7937343ee83f?raw)
