Skip to content

Runs and logs

GET /v1/boxes/{id}/runs

Returns { "items": [...] }, newest first (or an empty list if the Box has not been submitted to compute yet).

{
"id": "run_…",
"state": "running",
"command": ["python", "train.py"],
"exit_code": null,
"created_at": 1794700100,
"started_at": 1794700101,
"finished_at": null
}
GET /v1/boxes/{id}/runs/{run_id}/logs
Query Default Meaning
stream stdout stdout or stderr
since 0 Return output after this position; pass the previous next_since
wait_s 0 Long-poll up to this many seconds (0 to 20) until new output arrives
{
"run": { "id": "run_…", "state": "running", "…": "…" },
"segments": [
{ "id": 1, "at_ms": 1794700101000, "data": "epoch 1\n" },
{ "id": 2, "at_ms": 1794700102000, "data": "epoch 2\n" }
],
"next_since": 2
}

data is raw output and is not split on line boundaries — join segments in order.

A run that does not belong to the Box in the path returns 404 not_found. See Follow live logs for a polling loop example.