POST
/
v1
/
devboxes
/
{id}
/
download_file
import Runloop from '@runloop/api-client';

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

async function main() {
  const response = await client.devboxes.downloadFile('id', { path: 'path' });

  console.log(response);

  const content = await response.blob();
  console.log(content);
}

main();
This response does not have an example.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The Devbox ID.

Body

application/json
path
string
required

The path on the Devbox filesystem to read the file from. Path is relative to user home directory.

Response

200
application/octet-stream
OK

The response is of type file.