Skip to main content
GET
/
threads
/
{thread_id}
/
state
Get Thread State
curl --request GET \
  --url https://api.b-bot.space/api/v2/threads/{thread_id}/state \
  --header 'bbot-api-key: <api-key>'
{
  "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>"
  ]
}

Authorizations

bbot-api-key
string
header
required

API key for authentication

Path Parameters

thread_id
string<uuid>
required

The ID of the thread.

Query Parameters

subgraphs
boolean

Whether to include subgraphs in the response.

Response

Success

values
object
required
  • Values · object[]
  • Values · object
next
string[]
required
checkpoint
Checkpoint · object
required

Checkpoint config.

metadata
Metadata · object
required
created_at
string
required
tasks
Tasks · object[]
parent_checkpoint
Parent Checkpoint · object
interrupts
any[]