Skip to main content
GET
This endpoint returns a paginated list of all agent runs belonging to the authenticated user. You can filter by status and control pagination using page and limit.

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

Query Parameters

integer
default:"1"
Page number for pagination.Default: 1Example: page=2
integer
default:"20"
Number of tasks to return per page.Range: 1100. Default: 20.Example: limit=50
string
Filter tasks by status. If omitted, all statuses are returned.Available values:
  • queued — Task is waiting to start
  • running — Task is actively executing
  • completed — Task finished successfully
  • failed — Task encountered an error
  • cancelled — Task was cancelled by user
  • interrupted — Task was interrupted
Example: status=running

Response Fields

array
Array of task run objects.
number
Current page number.
number
Number of items per page used for this request.
boolean
Whether there are more tasks beyond the current page.

Use Cases

Paginate Through All Tasks

Monitor Active Tasks

Error Codes