Time Portal Sandbox API

Write a file

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.

PUT/v1/time-portal/sandbox/{id}/files
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.bin

The 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.

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_…"

Path parameters

idstringRequired

Unique sandbox ID.

Example

"sbx_7f3k9q2m4x8p1c6w"

Query parameters

pathstringRequired

Absolute path inside the sandbox; missing parent directories are created automatically.

Example

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

Byte offset at which to write the request body.

  • Minimum: 0

  • Default: 0

Response

200

pathstringRequired

Its absolute path; in a directory listing, its path relative to the listed directory.

typeunknownRequired

What kind of file it is.

sizeintegerRequired

Its size in bytes.

  • Minimum: 0

modeintegerRequired

Its permission bits, e.g. 420 for 0644.

  • Minimum: 0

mtimestring (date-time) | null

Last modification timestamp according to the sandbox's clock.

  • Default: null

link_targetstring | null

Symlink target path, when type is symlink.