Skip to main content
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:
  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 this agent run.
string
Current external status of the run.Possible values:
  • pending — Task is waiting to start
  • in_progress — Agent is actively executing
  • completed — Task finished successfully
  • failed — Task encountered an error
  • cancelled — Task was cancelled by user
  • interrupted — Task was interrupted
number
Estimated completion percentage (0–100). Linearly estimated from elapsed time for running tasks; 100 for completed; 0 for failed/cancelled.
string | null
Error message if the run failed, null otherwise.
string | null
ISO 8601 timestamp when the run started executing.
string | null
ISO 8601 timestamp when the run completed. null if still running.

Use Cases

Poll Until Done

Exponential Backoff Polling

Status Values Reference

Error Codes