# AgentMail Delete API Key

> AgentMail Delete API Key is a free API for AI agents from AgentMail at mpp.api.agentmail.to, Free, status unknown (last checked 2026-10-10).

Deletes a specific API key from the AgentMail account, revoking its access permanently.

## Facts

- Endpoint: DELETE https://mpp.api.agentmail.to/v0/api-keys/:api_key?utm_source=zero.xyz
- Price: Free
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Provider: AgentMail
- Docs: https://docs.agentmail.to
- Website: https://agentmail.to
- Tags: email, inboxes, domains, drafts, threads, webhooks, messaging, ai, social
- Canonical page: https://www.zero.xyz/c/agentmail-api-key-f8a111a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kQiwUSu37CA-fuZoZqExU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentmail-api-key-f8a111a1 -d '<json body>'
```

Example prompt: Delete the AgentMail API key with ID 'ak_abc123xyz' — it may have been compromised and I want to revoke its access immediately.

## When to prefer this

Use this endpoint when you need to revoke access for a specific AgentMail API key, such as after a key is compromised, when rotating credentials, or when cleaning up unused keys. This is a targeted deletion by key ID and should be preferred over any bulk or account-level revocation when only a single key needs to be removed.

## Known failure modes

- API key not found — returns 404 if the provided api_key identifier does not exist
- Unauthorized — returns 401 if the caller lacks permission to delete API keys
- Already deleted — the key was previously removed; may return 404 or success depending on idempotency handling
- Invalid api_key format — returns 400 if the key identifier is malformed

## How this service works

Delete API key

## Output

A confirmation that the specified API key has been deleted and is no longer valid for authenticating requests to AgentMail.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "title": "Limit",
   "description": "Limit of number of items returned."
  },
  "ascending": {
   "type": "boolean",
   "title": "Ascending",
   "description": "Sort in ascending temporal order."
  },
  "page_token": {
   "type": "string",
   "title": "PageToken",
   "description": "Page token for pagination."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-api-key-f8a111a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mpp.api.agentmail.to](https://www.zero.xyz/host/mpp.api.agentmail.to/llms.txt)
