Logs & Streaming
Agent Run Status
Check the current status of a Claude Agent run by runId. Checks live in-memory state first, falls back to the database.
GET
This endpoint returns the raw internal status of an agent run identified by
runId. Unlike the task status endpoint, this returns the internal status values directly (not mapped to external values) and also includes the assistantMessageId.
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_b41b647ffbfed27f616560Query Parameters
The unique run identifier returned when the task was created.Example:
runId=a1b2c3d4-e5f6-7890-abcd-ef1234567890Response Fields
The run identifier.
null if not found.Internal status of the run.Possible values:
queued, running, completed, failed, cancelled, interrupted, or null if not found.ID of the assistant message being generated.
null if not yet assigned or not found.Error message if the run failed,
null otherwise.Error Codes
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | Status returned (may be null if run not found) |
| 400 | Bad Request | Missing runId query parameter |
| 401 | Unauthorized | Invalid or missing API key |