API documentation
Get Task List
Retrieve a paginated list of tasks with filtering options to monitor and manage your AI agent executions.
GET
This endpoint allows you to retrieve a list of tasks that have been created. You can filter by task type, status, and use pagination to navigate through your task history.Documentation Index
Fetch the complete documentation index at: https://docs.blackbox.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
To use this API, you need a BLACKBOX API Key. Follow these steps to get your API key:- Click on your Profile Image in the top right corner at cloud.blackbox.ai
- Click on “BLACKBOX API Token” from the dropdown menu
- Copy the existing token or click “Generate” if you don’t have one yet
bb_xxxxxxxxxxxxxxxxxxxxxx
Headers
API Key of the form
Bearer <api_key>.Example: Bearer bb_b41b647ffbfed27f61656049d3eaeef3d903cc503345d9eb80080d98bc0Query Parameters
Number of tasks to return per page.Range: 1-100
Default: 50Example:
Default: 50Example:
limit=10Number of tasks to skip for pagination.Default: 0Example:
offset=50 (to get the second page with limit=50)Filter tasks by type.Available values:
all- Return all tasks (default)tasks- Return only non-batch tasksbatch- Return only batch tasks
filter=tasksFilter tasks by status.Available values:
active- Return only active tasks (pending, processing, saving)completed- Return only completed tasksfailed- Return only failed tasksstopped- Return only stopped tasks
status=activeResponse Fields
Array of task objects. Each task contains:
Indicates if there are more tasks available beyond the current page.
The offset value used for this request.
The limit value used for this request.
Use Cases
Monitor Active Tasks
Track all currently running tasks:Task History Dashboard
Build a dashboard showing recent task activity:Filter by Agent
Get tasks executed by a specific agent:Batch Task Management
Retrieve and manage batch tasks:Error Codes
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | Tasks retrieved successfully |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | User is not a member of the selected team |
| 500 | Internal Server Error | Database operation failed |