Tasks
Get Task Status
Lightweight status poll for a task run. Returns only status, progress, and timestamps — no messages or GitHub details.
GET
This endpoint returns only the essential status fields for a task run — no messages, no GitHub details. Use it to poll task progress without fetching the full task payload.
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 this agent run.
Current external status of the run.Possible values:
pending— Task is waiting to startin_progress— Agent is actively executingcompleted— Task finished successfullyfailed— Task encountered an errorcancelled— Task was cancelled by userinterrupted— Task was interrupted
Estimated completion percentage (0–100). Linearly estimated from elapsed time for running tasks;
100 for completed; 0 for failed/cancelled.Error message if the run failed,
null otherwise.ISO 8601 timestamp when the run started executing.
ISO 8601 timestamp when the run completed.
null if still running.Use Cases
Poll Until Done
Exponential Backoff Polling
Status Values Reference
| Status | Description | Terminal? |
|---|---|---|
pending | Waiting to start | No |
in_progress | Actively executing | No |
completed | Finished successfully | Yes |
failed | Encountered an error | Yes |
cancelled | Cancelled by user | Yes |
interrupted | Interrupted (e.g. server restart) | Yes |
Error Codes
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | Status 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 |