Skip to main content
GET
This endpoint returns comprehensive details about a task run. It merges live in-memory state (for running tasks) with persisted database records, giving you the most up-to-date information available.

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

Response Fields

string
Unique identifier for the task (same as runId).
string
Unique identifier for this agent run.
string
UUID of the chat thread this run belongs to.
string
Current status of the run. Reflects live in-memory state when available.Possible values: queued, running, completed, failed, cancelled, interrupted
string | null
ID of the assistant message being generated.
string
ISO 8601 timestamp when the run was created.
string | null
ISO 8601 timestamp when the run started executing.
string | null
ISO 8601 timestamp when the run completed. null if still running.
string | null
Error message if the run failed, null otherwise.
object
GitHub context for the task.
array
Full conversation history for this task’s chat thread.
object | null
Live in-memory state. null if the server has restarted since the run was created.

Use Cases

Poll Until Completion

Extract the Agent’s Response

Error Codes