Time Portal Sandbox API
Write up to 8 MiB at offset, creating any missing parent directories. Writing at offset 0 replaces the file, while a non-zero offset writes at that byte position so larger files can be uploaded in chunks.
curl "https://api.epochal.com/v1/time-portal/sandbox/sbx_7f3k9q2m4x8p1c6w/files?path=%2Fhome%2Fepochal%2Fout%2Fresult.csv" \
-X PUT \
-H "x-api-key: $EPOCHAL_API_KEY" \
-H "Content-Type: application/octet-stream" \
--data-binary @data.binThe file after the write.
{
"path": "/home/epochal/out/result.csv",
"type": "file",
"size": 18432,
"mode": 420,
"mtime": "2026-03-01T00:02:13Z"
}Read the Time Portal Sandbox API guide
A sandbox is a Linux virtual machine whose clock and network are set to an instant.
x-api-key
Send your API key in the x-api-key header. Create keys in the console; each belongs to one organization.
Example
"ek_…"Unique sandbox ID.
Example
"sbx_7f3k9q2m4x8p1c6w"Absolute path inside the sandbox; missing parent directories are created automatically.
Example
"/home/epochal/out/result.csv"Byte offset at which to write the request body.
Minimum: 0
Default: 0
200
Its absolute path; in a directory listing, its path relative to the listed directory.
What kind of file it is.
Its size in bytes.
Minimum: 0
Its permission bits, e.g. 420 for 0644.
Minimum: 0
Last modification timestamp according to the sandbox's clock.
Default: null
Symlink target path, when type is symlink.
curl "https://api.epochal.com/v1/time-portal/sandbox/sbx_7f3k9q2m4x8p1c6w/files?path=%2Fhome%2Fepochal%2Fout%2Fresult.csv" \
-X PUT \
-H "x-api-key: $EPOCHAL_API_KEY" \
-H "Content-Type: application/octet-stream" \
--data-binary @data.binThe file after the write.
{
"path": "/home/epochal/out/result.csv",
"type": "file",
"size": 18432,
"mode": 420,
"mtime": "2026-03-01T00:02:13Z"
}