Skip to main content
GET
This endpoint returns the complete execution log for a task as an array of parsed events. It automatically selects the best available source — live in-memory buffer for running tasks, or reconstructed events from the database for completed tasks.

Authentication

To use this API, you need a BLACKBOX API Key. Follow these steps to get your API key:
  1. Go to app.blackbox.ai/agent-api and click Get an API Key (requires a Pro subscription)
  2. Once provisioning completes, you will be redirected to your Dashboard
  3. From the Dashboard, create an API key to use with all Agent API requests
Your API key will be in the format: sk-xxxxxxxxxxxxxxxxxxxxxx

Headers

string
required
API Key of the form Bearer <api_key>.Example: Bearer sk_b41b647ffbfed27f616560

Path Parameters

string
required
The unique run identifier returned when the task was created.Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

Query Parameters

boolean
default:"true"
Whether to include text-delta events (individual text chunks). Set to false for a smaller, summarized payload.Default: trueExample: includeDeltas=false
boolean
default:"false"
Include raw SSE lines in the rawEvents field of the response.Default: falseExample: raw=true

Response Fields

string
The run identifier.
string
The chat thread UUID for this run.
string
Current external status: queued, running, completed, failed, cancelled, or interrupted.
string
Where the events came from: "buffer" (live in-memory), "reconstructed" (from DB), or "merged".
number
Total number of events returned.
array
Array of parsed event objects.
string | null
Error message if the run failed, null otherwise.
array
Raw SSE lines (only present when raw=true).

Error Codes