Time Portal Sandbox API

Read a file

Read a byte range of a file. Returns 206 with Content-Range: bytes <first>-<last>/<size> clamped to the file length; 200 for an empty file; and 416 with Content-Range: bytes */<size> when the range starts past the end. bytes=<first>- reads up to 16 MiB from first.

GET/v1/time-portal/sandbox/{id}/files
curl "https://api.epochal.com/v1/time-portal/sandbox/sbx_7f3k9q2m4x8p1c6w/files?path=%2Fhome%2Fepochal%2Fout%2Fresult.csv" \
  -H "x-api-key: $EPOCHAL_API_KEY"

The file is empty: no bytes.

Binary response body (raw bytes)

Read the Time Portal Sandbox API guide

A sandbox is a Linux virtual machine whose clock and network are set to an instant.

Authorizations

x-api-key

x-api-keystringRequired

Send your API key in the x-api-key header. Create keys in the console; each belongs to one organization.

Example

"ek_…"

Headers

Rangestring

Byte range to read (bytes=<first>-<last> or bytes=<first>-), up to 64 MiB; defaults to the first 16 MiB. Suffix and multi-range headers return 400.

Example

"bytes=0-16777215"

Path parameters

idstringRequired

Unique sandbox ID.

Example

"sbx_7f3k9q2m4x8p1c6w"

Query parameters

pathstringRequired

Absolute path inside the sandbox.

Example

"/home/epochal/out/result.csv"