---
title: "Remove the AI key"
method: DELETE
path: "/ai/keys/{key_id}"
tags: ["ai"]
---

# Remove the AI key

`DELETE /ai/keys/{key_id}`

## Request

- Base URL: `https://localhost:4410/api/v1`
- URL: `https://localhost:4410/api/v1/ai/keys/{key_id}`
- Auth: HTTP bearer

An owner removes the workspace's AI key, with a passkey. Nothing uses it from then on, and the instance's model answers again if it has one.

## Path parameters

- `key_id` string, required

## Response `200`

The result.

- object
  - `items` object[], required
    - `id` string, required
    - `purpose` 'decision' | 'language', required
    - `provider` 'systemone' | 'anthropic' | 'openai_compatible', required
    - `label` string, required
    - `base_url` string, required
    - `model` string, required
    - `last4` string, required
    - `checked_at` string, date-time, required
    - `added_by` string, required
    - `added_at` string, date-time, required

## Other responses

- `202`: Called by an agent or an API key, so the call did not run. A person approves it at approval_url; then GET the Location.
- `default`: An RFC 9457 problem.

---

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