---
title: "Delete Org Personal Access Token"
method: DELETE
path: "/api/v1/orgs/current/personal-access-tokens/{pat_id}"
tags: ["orgs"]
---

# Delete Org Personal Access Token

`DELETE /api/v1/orgs/current/personal-access-tokens/{pat_id}`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v1/orgs/current/personal-access-tokens/{pat_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Organization-Id`
  - HTTP bearer

Delete a personal access token, removing the record entirely.

Callers may always delete their own tokens; organization admins may delete
any member's.

## 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 service keys, org_role_id comes from the parent organization identity.
  - `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
  - `revoked_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'
  - `created_by` string, nullable
  - `is_tracing_key` boolean
  - `workspace_ids` string[]
  - `can_delete` boolean: Whether tracing-key deletion authority has been confirmed. Legacy key responses do not evaluate this capability.

## Other responses

- `404`: The personal access token does not exist, or belongs to another member and the caller may not administer other members' tokens.
- `422`: Validation Error

## Changes

- **2026-10-16** `1a8ee9358d81`: 4 breaking, 9 info
  - the `detail/items/` response's property type changed from `object` to `string` for status `422`
  - removed the required property `detail/items/loc` from the response with the `422` status
  - removed the required property `detail/items/msg` from the response with the `422` status
  - removed the required property `detail/items/type` from the response with the `422` status
  - …9 more
- **2026-03-20** `6da148fb416d`: 1 info
  - added the optional property `default_workspace_name` to the response with the `200` status
- **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

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/orgs/current/personal-access-tokens/:pat_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.dev/langchain-ai/apis/langsmith/revisions/28621d1a347a?raw)
