Time Portal Sandbox API
Send stdin bytes, close stdin (eof), or send a signal to a running command. Use seq starting from 0 to order input requests safely across retries. Stdin closes immediately after stdin_b64 unless stdin_open was enabled when starting the command. Returns 409 if the command has already exited.
curl https://api.epochal.com/v1/time-portal/sandbox/sbx_7f3k9q2m4x8p1c6w/execs/exec_m3p8x2k7/input \
-H "x-api-key: $EPOCHAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"seq": 0,
"eof": true
}'The next expected seq.
{
"next_seq": 1
}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"Command ID returned when the command was started.
Example
"exec_m3p8x2k7"application/json
This call's place in the command's input sequence, from 0.
Minimum: 0
Bytes for stdin, base64; at most 1 MiB decoded. Upload larger inputs as a file.
Close stdin.
One of: true, null
Send this signal number to the command, e.g. 15 for SIGTERM.
200
The seq the next call must carry.
Minimum: 0
curl https://api.epochal.com/v1/time-portal/sandbox/sbx_7f3k9q2m4x8p1c6w/execs/exec_m3p8x2k7/input \
-H "x-api-key: $EPOCHAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"seq": 0,
"eof": true
}'The next expected seq.
{
"next_seq": 1
}