Skip to main content
GET
/
api
/
v1
/
processes
/
{pid}
/
output
/
follow
Follow combined process output
curl --request GET \
  --url https://{sandbox_id_or_name}.sandbox.tensorlake.ai/api/v1/processes/{pid}/output/follow \
  --header 'Authorization: Bearer <token>'
"<string>"
Replay captured output and follow new output over Server-Sent Events.

Endpoint

GET /api/v1/processes/{pid}/output/follow
Use curl -N or an SSE client so the connection stays open.

Example Request

curl -N https://<sandbox-id>.sandbox.tensorlake.ai/api/v1/processes/42/output/follow \
  -H "Authorization: Bearer $TENSORLAKE_API_KEY"

SSE Events

Tensorlake first replays any captured output, then streams live events:
event: output
data: {"line":"Processing item 1/10","timestamp":1710000000000,"stream":"stdout"}

event: output
data: {"line":"Processing item 2/10","timestamp":1710000001000,"stream":"stdout"}

event: eof
data: {}
/output/follow follows combined output and includes stream set to stdout or stderr. If you need a single stream, use Follow Process Stdout or Follow Process Stderr. When the process exits and the output stream closes, Tensorlake sends event: eof.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

pid
integer<int32>
required

The operating system PID of the process.

Response

200 - text/event-stream

Output event stream

The response is of type string.