threads

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

post/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
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Path parameters

thread_idstring required

Thread ID

Request body

project_idstring uuid required

project_id is the tracing project UUID containing the thread.

Example request

{
  "project_id": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"
}

Response

OK

share_tokenstring uuid

Example response

{
  "share_token": "018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327"
}

Changes