---
title: "Unshare a thread"
method: DELETE
path: "/api/v2/threads/{thread_id}/share"
tags: ["threads"]
---

# Unshare a thread

`DELETE /api/v2/threads/{thread_id}/share`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v2/threads/{thread_id}/share`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Deletes the share token for a thread. Idempotent: returns 204
whether or not a share token existed. Deliberately does not
verify the thread still exists.

## Path parameters

- `thread_id` string, required

## Query parameters

- `project_id` string, uuid, required

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/threads/:thread_id/share/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/7a01c01f75e8?raw)
