Skip to main content
POST
/
agents
/
{agentId}
/
sandbox
/
read
JavaScript
import Cerca from '@cerca-dev/sdk';

const client = new Cerca({
  apiKey: process.env['CERCA_API_KEY'], // This is the default and can be omitted
});

const readResponse = await client.sandbox.read('agent_abc123', { path: 'path' });

console.log(readResponse.bytesRead);
{
  "bytesRead": 123,
  "content": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cerca.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required
Minimum string length: 1
Example:

"agent_abc123"

Body

application/json
path
string
required
limit
number
offset
number
{key}
any

Response

Sandbox file content.

bytesRead
number
required
content
string
required