curl --request POST \
--url https://api.b-bot.space/v2/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>"
],
"tasks": [
{
"id": "<string>",
"name": "<string>",
"error": "<string>",
"interrupts": [
"<any>"
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"state": {}
}
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"metadata": {},
"created_at": "<string>",
"parent_checkpoint": {},
"interrupts": [
"<any>"
]
}
]
Get all past states for a thread.
curl --request POST \
--url https://api.b-bot.space/v2/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>"
],
"tasks": [
{
"id": "<string>",
"name": "<string>",
"error": "<string>",
"interrupts": [
"<any>"
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"state": {}
}
],
"checkpoint": {
"thread_id": "<string>",
"checkpoint_ns": "<string>",
"checkpoint_id": "<string>",
"checkpoint_map": {}
},
"metadata": {},
"created_at": "<string>",
"parent_checkpoint": {},
"interrupts": [
"<any>"
]
}
]
The ID of the thread.
Success
The response is of type ThreadState · object[]
.