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

Examples

const data = await storage.get('reports/q1.pdf');
fs.writeFileSync('local-copy.pdf', data);