Skip to main content
GET
/
v1
/
storage
/
objects
/
by-path
/
browse
Browse Files
curl --request GET \
  --url https://api.bctrl.ai/v1/storage/objects/by-path/browse \
  --header 'Authorization: Bearer <token>'
workspace
string
Workspace name.
prefix
string
Path prefix to filter by.
cursor
string
Pagination cursor.
limit
number
Maximum number of results.

Examples

const result = await storage.browse({ prefix: 'screenshots/' });
for (const file of result.files) {
  console.log(file.key, file.size);
}