LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmith_openapi_clientresourcesThreadsShare
Class●Since v0.14

Share

Copy
class Share

Bases

APIResource

Constructors

constructor
constructor→ Share

Properties

property
_client: Langsmith

Methods

method
create→ APIPromise<ShareCreateResponse>

Mints a public share token for a thread. Idempotent: sharing an already-shared thread returns the existing token.

method
delete→ APIPromise<void>

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.

method
retrieve→ APIPromise<ShareRetrieveResponse>

Returns the share token for a thread. The token is omitted when the thread is not shared. Gated on runs:share so the control's state matches the control's permission.

View source on GitHub