Read or tail a setup run's log
Returns the run’s output after a cursor: stdout and stderr as the script produced them, marker lines naming each script line before it runs, and system lines for the setup phases around the script (provision, gpu_check, profile, cleanup). Secrets are redacted before storage. To tail a live run, loop with after=next_after and wait_seconds=0, sleeping two seconds client-side, until status is terminal and a page comes back empty.
Authorizations
A Recursion API key, created in the console under API keys.
Path Parameters
Environment id (UUID).
Setup run id.
Query Parameters
Return lines with seq greater than this. Pass the previous response's next_after to continue a tail; 0 (the default) starts from the beginning.
x >= 0Maximum lines to return. Defaults to 500.
1 <= x <= 2000When no new lines exist and the run is still going, block up to this many seconds for more before responding. The server caps the wait at 5 seconds; larger values are accepted and clamped. Through the public API, prefer wait_seconds=0, sleep two seconds client-side, and loop with after=next_after until status is terminal.
0 <= x <= 60Response
A page of a setup run's log with the cursor for the next page. stdout, stderr, marker (the script line about to run), and system (setup phase notes) are interleaved in capture order.
A page of a setup run's log with the cursor for the next page. stdout, stderr, marker (the script line about to run), and system (setup phase notes) are interleaved in capture order.
Log lines after the requested cursor, in order. Empty when the run has produced nothing new within the wait.
Cursor to pass as after on the next call. Equal to the request's after when no new lines were returned.
The run's status when the page was read. Stop tailing once it is succeeded, failed, or cancelled and the page is empty.
True when the run produced more output than is kept (4 MiB). The head is retained; the stderr tail is on the run.