Download a folder from a checkpoint as a .tar.gz
GET
/checkpoints/{checkpoint_id}/files/archive
const url = 'https://api.global.stillbox.example/v1/checkpoints/cp-7k2m9q4x8w3z5r6t/files/archive?path=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.global.stillbox.example/v1/checkpoints/cp-7k2m9q4x8w3z5r6t/files/archive?path=example' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”checkpoint_id
required
string
Query Parameters
Section titled “Query Parameters”path
required
string
Absolute path of a folder (or file) in the checkpoint
Responses
Section titled “Responses”The folder, gzipped tar
Media typeapplication/gzip
string format: binary
The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The checkpoint isn’t ready, or its server is unreachable right now
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}