---
title: "Delete an API key by numeric identifier."
method: DELETE
path: "/apikey/{id}/"
tags: ["api-keys"]
---

# Delete an API key by numeric identifier.

`DELETE /apikey/{id}/`

## Request

- Base URL: `https://api.capgo.app`
- URL: `https://api.capgo.app/apikey/{id}/`
- Auth: API key in header `x-api-key`

Revoke an API key by numeric identifier. After deletion, requests using that key receive 401.

## Path parameters

- `id` integer, required

## Response `200`

API key deleted.

- SuccessResponse
  - `success` boolean, required

## Other responses

- `401`: The API key is missing, invalid, or expired.
- `403`: The API key is valid but lacks the required scope or org access.
- `429`: Too many requests. Back off and retry later.
- `500`: Unexpected Capgo server error.

---

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