Skip to main content
GET
/
v1
/
storage
/
objects
/
by-path
/
read
/
{path}
Read File Preview
curl --request GET \
  --url https://api.bctrl.ai/v1/storage/objects/by-path/read/{path} \
  --header 'Authorization: Bearer <token>'
path
string
required
Logical file path.
workspace
string
Workspace name.
maxBytes
number
Maximum bytes to read.

Examples

const text = await storage.read('logs/output.txt', 4096);