---
title: "Delete Api Key"
method: DELETE
path: "/v1/delete-api-key"
tags: ["api-keys"]
---

# Delete Api Key

`DELETE /v1/delete-api-key`

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/delete-api-key`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/delete-api-key/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete an API key belonging to the caller's active team.

Keys are team-bound and shared, but managing them is gated by the team
role matrix: only members holding ``CREATE_API_KEYS`` (owner, admin,
editor) may delete a team key. Viewer and billing members are rejected
with 403.

## Request body

- DeleteAPIKeyRequest: Request model for deleting an API key.
  - `key_id` string, uuid, required: ID of the API key to delete

## Response `200`

Successful Response

- SuccessResponse: Generic success response.
  - `success` boolean
  - `message` string, nullable
  - `data` object, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/delete-api-key/delete.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) - [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
