---
title: "Delete API Key"
method: DELETE
path: "/v0/api-keys/{api_key_id}"
tags: ["ApiKeys"]
---

# Delete API Key

`DELETE /v0/api-keys/{api_key_id}`

**CLI:**
```bash
agentmail api-keys delete --api-key-id <api_key_id>
```

## Path parameters

- `api_key_id` string, required — ID of api key.

## Response `204`

## Other responses

- `404`

## Changes

- **2026-07-15** `394ddcdd9c29` — 3 info
  - added the optional property `code` to the response with the `404` status
  - added the optional property `docs` to the response with the `404` status
  - added the optional property `fix` to the response with the `404` status

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/api-keys/:api_key_id/delete.md)

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/394ddcdd9c29/schema)
