---
title: "Delete personal access token"
method: DELETE
path: "/api/v1/api-key/current/{pat_id}"
tags: ["api-key"]
deprecated: true
---

# Delete personal access token

`DELETE /api/v1/api-key/current/{pat_id}`

> **Deprecated.**

DEPRECATED: Use /orgs/current/personal-access-tokens/{pat_id} instead

## Path parameters

- `pat_id` string, uuid, required

## Response `200`

Successful Response

- APIKeyGetResponse — API key GET schema. role_id, org_role_id, and access_scope let clients render the key's current role state without a second round trip. For workspace-scoped keys, org_role_id is null (the api_key's identity_id points at a workspace identity, so there is no caller-meaningful org role to surface).
  - `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
  - `default_workspace_name` string, nullable
  - `role_id` string, uuid, nullable
  - `org_role_id` string, uuid, nullable
  - `access_scope` 'organization' | 'workspace'

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith-deployment-control-plane-api.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith-deployment-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith-deployment-control-plane-api/versions/a0cd098699b4/schema)
