---
title: "Delete Api Key"
method: DELETE
path: "/api_keys/{api_key_id}"
tags: ["api_keys"]
---

# Delete Api Key

`DELETE /api_keys/{api_key_id}`

## Request

- Base URL: `https://api.robopost.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robopost.app/api_keys/{api_key_id}`
- Auth: HTTP bearer

Deletes an API key by ID.
- If `soft_delete` is True (default), sets `is_deleted = True` instead of removing the document.
- Otherwise, it removes the document from the database permanently.

## Path parameters

- `api_key_id` string, required

## Query parameters

- `soft_delete` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `404`: API key not found
- `422`: Validation Error

---

[API](https://skmtc.dev/robopost/apis/robopost-api.md) · [All operations](https://skmtc.dev/robopost/apis/robopost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/robopost/apis/robopost-api/revisions/46b1cafa8808?raw)
