Time Portal Sandbox API
Retrieve a sandbox by ID. When wait is set and state is creating, the request waits until the sandbox becomes live or failed. Sandboxes in any other state return immediately.
curl https://api.epochal.com/v1/time-portal/sandbox/sbx_7f3k9q2m4x8p1c6w \
-H "x-api-key: $EPOCHAL_API_KEY"The sandbox.
{
"id": "sbx_7f3k9q2m4x8p1c6w",
"state": "live",
"as_of": "2026-03-01T00:00:00Z",
"network": "time-portal",
"vcpus": 1,
"memory_gib": 2,
"timeout": "1h",
"idle_timeout": "10m",
"created_at": "2026-11-02T18:04:11Z",
"booted_at": "2026-11-02T18:04:14Z",
"expires_at": "2026-11-02T19:04:14Z",
"ended_at": null,
"error": null,
"metadata": {},
"apps": []
}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"Maximum duration to hold the request while the sandbox is creating (capped at 55s).
Returns immediately when unset.
Example
"55s"200
Unique sandbox ID.
Example
"sbx_7f3k9q2m4x8p1c6w"Current lifecycle state of the sandbox.
One of: creating (Accepted and booting); live (Booted and accepting requests); ended (Terminated, timed out, or idle-expired; files and command output have been deleted); failed (Failed to boot; see error for the reason)
Point-in-time cutoff for the sandbox's clock and network, resolved from Accept-Datetime.
Network access mode.
One of: none (No outbound network access. DNS does not resolve and all outbound connections are blocked); time-portal (Archived web access as of the sandbox's as_of via Time Portal, plus time-gated package
mirrors. Each web page fetched counts as one Time Portal fetch request)
Reserved virtual CPUs.
Minimum: 0
Reserved memory in GiB.
Minimum: 0
Maximum lifetime from boot.
Example
"1h"Maximum idle duration before automatic termination.
Example
"10m"Timestamp when sandbox creation was accepted.
Timestamp when the sandbox finished booting; metering starts here.
Default: null
Latest timestamp when the sandbox will end (booted_at + timeout).
Default: null
Timestamp when the sandbox ended.
Default: null
Reason the sandbox failed or ended unexpectedly: lifetime_expired, idle_expired,
out_of_memory, sandbox_lost, free_quota_exhausted, insufficient_credits,
organization_suspended, or spend_limit_reached. null after normal termination.
Default: null
A stable machine-readable code.
What went wrong, in one sentence.
Identifies this request in our logs; quote it when reporting a problem.
On an input seq out of order: the seq the command expects next.
Minimum: 0
Custom labels provided at creation.
Default: {}
Prebuilt apps mounted in the sandbox.
Default: []
App name.
App version mounted in the sandbox.
curl https://api.epochal.com/v1/time-portal/sandbox/sbx_7f3k9q2m4x8p1c6w \
-H "x-api-key: $EPOCHAL_API_KEY"The sandbox.
{
"id": "sbx_7f3k9q2m4x8p1c6w",
"state": "live",
"as_of": "2026-03-01T00:00:00Z",
"network": "time-portal",
"vcpus": 1,
"memory_gib": 2,
"timeout": "1h",
"idle_timeout": "10m",
"created_at": "2026-11-02T18:04:11Z",
"booted_at": "2026-11-02T18:04:14Z",
"expires_at": "2026-11-02T19:04:14Z",
"ended_at": null,
"error": null,
"metadata": {},
"apps": []
}