Introduction

Programmatically create, monitor, and manage AI agent tasks using the BLACKBOX Agent API.

The BLACKBOX Agent API gives you full programmatic control over AI agent tasks — from creating and monitoring runs to streaming live logs, managing sandbox files, and continuing conversations.

Base URL

https://agent.blackbox.ai/api/v1

Authentication

All endpoints require a BLACKBOX API key passed as a Bearer token. See the Authentication page for full details on getting your API key and using it in requests.

Endpoints Overview

Task Status Values

Status Description
queued Task is waiting to start
running Agent is actively executing
completed Task finished successfully
failed Task encountered an error
cancelled Task was cancelled by user
interrupted Task was interrupted (e.g. server restart)

Error Codes

Status Code Description
400 Bad Request — invalid parameters or body
401 Unauthorized — missing or invalid API key
403 Forbidden — insufficient plan or access denied
404 Not Found — task or resource does not exist
500 Internal Server Error