Time Portal Sandbox API

List a directory

List directory entries with each path relative to the requested directory.

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

One page of entries.

{
  "entries": [
    {
      "path": "/home/epochal/out/result.csv",
      "type": "file",
      "size": 18432,
      "mode": 420,
      "mtime": "2026-03-01T00:02:13Z"
    }
  ],
  "next_cursor": null
}

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 directory path to list.

Example

"/home/epochal/out"
recursiveboolean

Descend recursively into subdirectories.

cursorstring

Pagination cursor from the previous page's next_cursor.

limitinteger

Maximum number of entries to return (1 to 100, default 50).

  • Range: 1 to 100

Response

200

entriesobject[]Required

One page of entries.

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.

next_cursorstring | null

Pass as cursor for the next page; absent on the last.

  • Default: null