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

Endpoint

GET /api/v1/processes/{pid}/stdout/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/stdout/follow \
  -H "Authorization: Bearer $TENSORLAKE_API_KEY"

SSE Events

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

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

event: eof
data: {}
Stdout-only events do not include a stream field. If you need merged stdout and stderr with stream tags, use Follow Process Output.

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

Stdout event stream

The response is of type string.