Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain. Buy tickets >
curl --request POST \
--url https://api.example.com/threads/{thread_id}/history \
--header 'Content-Type: application/json' \
--data '
{
"limit": 1,
"before": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"metadata": {},
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
}
}
'[
{
"values": [
{}
],
"next": [
"<string>"
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"metadata": {},
"created_at": "<string>",
"tasks": [
{
"id": "<string>",
"name": "<string>",
"error": "<string>",
"interrupts": [
{
"value": {},
"id": "<string>"
}
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"state": "<unknown>"
}
],
"parent_checkpoint": {},
"interrupts": [
{
"value": {},
"id": "<string>"
}
]
}
]Get all past states for a thread.
curl --request POST \
--url https://api.example.com/threads/{thread_id}/history \
--header 'Content-Type: application/json' \
--data '
{
"limit": 1,
"before": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"metadata": {},
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
}
}
'[
{
"values": [
{}
],
"next": [
"<string>"
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"metadata": {},
"created_at": "<string>",
"tasks": [
{
"id": "<string>",
"name": "<string>",
"error": "<string>",
"interrupts": [
{
"value": {},
"id": "<string>"
}
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"state": "<unknown>"
}
],
"parent_checkpoint": {},
"interrupts": [
{
"value": {},
"id": "<string>"
}
]
}
]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.
The ID of the thread.
The maximum number of states to return.
1 <= x <= 1000Return states before this checkpoint.
Show child attributes
Filter states by metadata key-value pairs.
Return states for this subgraph.
Show child attributes
Success
Checkpoint config.
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?