---
title: "Share a run"
method: POST
path: "/api/v2/runs/{run_id}/share"
tags: ["runs"]
---

# Share a run

`POST /api/v2/runs/{run_id}/share`

## Request

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

Creates or returns a share token for a run. Child runs share their trace root.

Self-hosted deployments require LangSmith `v0.16` or later.

## Path parameters

- `run_id` string, uuid, required

## Request body

- ShareCreateShareTokenRequestBody
  - `session_id` string, uuid, required: session_id is the tracing project UUID containing the trace.
  - `trace_id` string, uuid, required: trace_id is the root trace UUID to share.

## Response `200`

OK

- ShareCreateShareTokenResponseBody
  - `share_token` string, uuid

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `413`: Request Entity Too Large
- `500`: Internal Server Error

## Changes

- **2026-10-21** `050cb276e1a7`: 2 breaking
  - the request property `session_id` became required
  - the request property `trace_id` became required
- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/runs/:run_id/share/post.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)
