Time Portal Sandbox API

Stat a file

Retrieve a file's type, size, permissions, and modification time.

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

The file's metadata.

{
  "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.

Example

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

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.