Get Thread History ↗
noSummary: Get all past states for a thread.
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.
Get all past states for a thread.
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}/history:
get:
tags:
- Threads
summary: Get Thread History
description: Get all past states for a thread.
operationId: get_thread_history_threads__thread_id__history_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: integer
title: Limit
default: 10
name: limit
in: query
- required: false
schema:
type: string
title: Before
name: before
in: query
responses:
'200':
description: Success
content:
application/json:
schema:
items:
$ref: '#/components/schemas/ThreadState'
type: array
title: Response Get Thread History Threads Thread Id History Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ThreadState:
properties:
values:
anyOf:
- items:
type: object
type: array
- type: object
title: Values
next:
items:
type: string
type: array
title: Next
tasks:
items:
type: object
properties:
id:
type: string
title: Task Id
name:
type: string
title: Node Name
error:
type: string
title: Error
interrupts:
type: array
items:
$ref: '#/components/schemas/Interrupt'
checkpoint:
$ref: '#/components/schemas/CheckpointConfig'
title: Checkpoint
state:
$ref: '#/components/schemas/ThreadState'
required:
- id
- name
type: array
title: Tasks
checkpoint:
$ref: '#/components/schemas/CheckpointConfig'
title: Checkpoint
metadata:
type: object
title: Metadata
created_at:
type: string
title: Created At
parent_checkpoint:
type: object
title: Parent Checkpoint
interrupts:
type: array
items:
$ref: '#/components/schemas/Interrupt'
type: object
required:
- values
- next
- checkpoint
- metadata
- created_at
title: ThreadState
ErrorResponse:
type: object
required:
- detail
properties:
detail:
type: string
description: Human-readable error message
title: ErrorResponse
description: Error response returned from the server
Interrupt:
type: object
properties:
id:
type:
- string
- 'null'
value:
type: object
title: Interrupt
required:
- value
CheckpointConfig:
type: object
title: CheckpointConfig
description: Checkpoint config.
properties:
thread_id:
type: string
description: Unique identifier for the thread associated with this checkpoint.
checkpoint_ns:
type: string
description: Namespace for the checkpoint, used for organization and retrieval.
checkpoint_id:
type: string
description: Optional unique identifier for the checkpoint itself.
checkpoint_map:
type: object
description: Optional dictionary containing checkpoint-specific data.Link last verified
June 7, 2026.
View original ↗
Source: LangChain Docs
Link last verified: 2026-03-04