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

# Delete Api Key

`DELETE /api/v1/api-key/{api_key_id}`

Delete an api key for the user

## Path parameters

- `api_key_id` string, uuid, required

## Response `200`

Successful Response

- APIKeyGetResponse — API key GET schema.
  - `created_at` string, date-time, nullable
  - `id` string, uuid, required
  - `short_key` string, required
  - `description` string, required
  - `read_only` boolean
  - `last_used_at` string, date-time, nullable
  - `expires_at` string, date-time, nullable
  - `workspace_names` string[], nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-03-19** `7bbcecd856b2` — 1 warning
  - removed the optional property `default_workspace_name` from the response with the `200` status
- **2026-03-09** `22a3d45c511e` — 1 info
  - added the optional property `default_workspace_name` to the response with the `200` status

[Change history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/api-key/:api_key_id/delete.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/7bbcecd856b2/schema)
