Join Thread Stream ↗
noSummary: This endpoint streams output in real-time from a thread. The stream will include the output of each run executed sequentially on the thread and will remain open indefinitely. It is the responsibility of the calling client to close the connection.
Original Documentation
Documentation Index#
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt Use this file to discover all available pages before exploring further.
This endpoint streams output in real-time from a thread. The stream will include the output of each run executed sequentially on the thread and will remain open indefinitely. It is the responsibility of the calling client to close the connection.
OpenAPI#
openapi: 3.1.0
info:
title: LangSmith Deployment
version: 0.1.0
servers: []
security: []
tags:
- name: Assistants
description: An assistant is a configured instance of a graph.
- name: Threads
description: A thread contains the accumulated outputs of a group of runs.
- name: Thread Runs
description: >-
A run is an invocation of a graph / assistant on a thread. It updates the
state of the thread.
- name: Stateless Runs
description: >-
A run is an invocation of a graph / assistant, with no state or memory
persistence.
- name: Crons
description: >-
A cron is a periodic run that recurs on a given schedule. The repeats can
be isolated, or share state in a thread
- name: Store
description: >-
Store is an API for managing persistent key-value store (long-term memory)
that is available from any thread.
- name: A2A
description: >-
Agent-to-Agent Protocol related endpoints for exposing assistants as
A2A-compliant agents.
- name: MCP
description: >-
Model Context Protocol related endpoints for exposing an agent as an MCP
server.
- name: System
description: System endpoints for health checks, metrics, and server information.
paths:
/threads/{thread_id}/stream:
get:
tags:
- Threads
summary: Join Thread Stream
description: >-
This endpoint streams output in real-time from a thread. The stream will
include the output of each run executed sequentially on the thread and
will remain open indefinitely. It is the responsibility of the calling
client to close the connection.
operationId: join_thread_stream_threads__thread_id__stream_get
parameters:
- description: The ID of the thread.
required: true
schema:
type: string
format: uuid
title: Thread Id
description: The ID of the thread.
name: thread_id
in: path
- required: false
schema:
type: string
title: Last Event ID
description: >-
The ID of the last event received. Used to resume streaming from a
specific point. Pass '-' to resume from the beginning.
name: Last-Event-ID
in: header
- required: false
schema:
anyOf:
- type: string
enum:
- lifecycle
- run_modes
- state_update
- type: array
items:
type: string
enum:
- lifecycle
- run_modes
- state_update
default:
- run_modes
title: Stream Modes
description: >-
Stream modes to control which events are returned. 'lifecycle'
returns only run start/end events, 'run_modes' returns all run
events (default behavior), 'state_update' returns only state
update events.
name: stream_modes
in: query
responses:
'200':
description: Success
content:
text/event-stream:
schema:
type: string
description: |-
The server will send a stream of events in SSE format.
**Example event**:
id: 1
event: message
data: {}
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
required:
- detail
properties:
detail:
type: string
description: Human-readable error message
title: ErrorResponse
description: Error response returned from the serverLink last verified
June 7, 2026.
View original ↗
Source: LangChain Docs
Link last verified: 2026-03-04