curl --request POST \
--url https://api.b-bot.space/api/v2/threads/{thread_id}/history \
--header 'Content-Type: application/json' \
--header 'bbot-api-key: <api-key>' \
--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": [
"<unknown>"
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"state": "<unknown>"
}
],
"parent_checkpoint": {},
"interrupts": [
"<unknown>"
]
}
]Get all past states for a thread.
curl --request POST \
--url https://api.b-bot.space/api/v2/threads/{thread_id}/history \
--header 'Content-Type: application/json' \
--header 'bbot-api-key: <api-key>' \
--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": [
"<unknown>"
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"state": "<unknown>"
}
],
"parent_checkpoint": {},
"interrupts": [
"<unknown>"
]
}
]API key for authentication
The ID of the thread.
The maximum number of states to return.
1 <= x <= 1000Return states before this checkpoint.
Show child attributes
Unique identifier for the thread associated with this checkpoint.
Namespace for the checkpoint, used for organization and retrieval.
Optional unique identifier for the checkpoint itself.
Optional dictionary containing checkpoint-specific data.
Filter states by metadata key-value pairs.
Return states for this subgraph.
Show child attributes
Unique identifier for the thread associated with this checkpoint.
Namespace for the checkpoint, used for organization and retrieval.
Optional unique identifier for the checkpoint itself.
Optional dictionary containing checkpoint-specific data.
Success
Checkpoint config.
Show child attributes
Unique identifier for the thread associated with this checkpoint.
Namespace for the checkpoint, used for organization and retrieval.
Optional unique identifier for the checkpoint itself.
Optional dictionary containing checkpoint-specific data.
Show child attributes
Checkpoint config.
Show child attributes
Unique identifier for the thread associated with this checkpoint.
Namespace for the checkpoint, used for organization and retrieval.
Optional unique identifier for the checkpoint itself.
Optional dictionary containing checkpoint-specific data.