# Remove an existing API key

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

Base URL: `https://api.resend.com`

Tags: `API keys`

## Authorization

| Option | Scheme | Type | Sent as | Scopes |
| --- | --- | --- | --- | --- |
| Option 1 | `bearerAuth` | `http` | `Authorization: Bearer <token>` | — |

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `api_key_id` | `string` | Yes | The API key ID. |

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | OK | `application/json` |

### Example response: 200 — OK

```json
{
  "deleted": true,
  "id": "string",
  "object": "api_key"
}
```

## Related pages

- [Add a contact to a segment](./contacts-contact_id-segments-segment_id/post.md)
- [API keys](./tags/api-keys.md)
- [Audiences](./tags/audiences.md)
- [Automations](./tags/automations.md)
- [Broadcasts](./tags/broadcasts.md)
- [Cancel the schedule of the e-mail.](./emails-email_id-cancel.md)
- [Contact Properties](./tags/contact-properties.md)
- [Contacts](./tags/contacts.md)
- [Create a broadcast](./broadcasts/post.md)
- [Create a list of contacts](./audiences/post.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
