Tasks
Get Task
Retrieve full details of a specific agent task run, including status, GitHub context, and the complete conversation message history.
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:- Go to app.blackbox.ai/agent-api and click Get an API Key (requires a Pro subscription)
- Once provisioning completes, you will be redirected to your Dashboard
- From the Dashboard, create an API key to use with all Agent API requests
sk-xxxxxxxxxxxxxxxxxxxxxx
Headers
API Key of the form
Bearer <api_key>.Example: Bearer sk_b41b647ffbfed27f616560Path Parameters
The unique run identifier returned when the task was created.Example:
a1b2c3d4-e5f6-7890-abcd-ef1234567890Response Fields
Unique identifier for the task (same as
runId).Unique identifier for this agent run.
UUID of the chat thread this run belongs to.
Current status of the run. Reflects live in-memory state when available.Possible values:
queued, running, completed, failed, cancelled, interruptedID of the assistant message being generated.
ISO 8601 timestamp when the run was created.
ISO 8601 timestamp when the run started executing.
ISO 8601 timestamp when the run completed.
null if still running.Error message if the run failed,
null otherwise.GitHub context for the task.
Full conversation history for this task’s chat thread.
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
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | Task details retrieved successfully |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | Task belongs to a different user |
| 404 | Not Found | Task not found |
| 500 | Internal Server Error | Database error |