Skip to main content
GET
This endpoint lists files and directories inside the sandbox workspace associated with a task run. By default it lists the top-level contents of /vercel/sandbox. Use the path and recursive parameters to navigate subdirectories.

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

Query Parameters

string
default:"/vercel/sandbox"
Directory path to list inside the sandbox.Default: /vercel/sandboxExample: path=/vercel/sandbox/src
boolean
default:"false"
Whether to list files recursively in all subdirectories.Default: falseExample: recursive=true

Response Fields

array
Array of file and directory entries.
string
The directory path that was listed.
boolean
Whether the listing was recursive.

Error Codes