Skip to main content
GET
/
browsers
/
{id}
/
process
/
{process_id}
/
stdout
/
stream
Stream process stdout via SSE
curl --request GET \
  --url https://api.onkernel.com/browsers/{id}/process/{process_id}/stdout/stream \
  --header 'Authorization: Bearer <token>'
{
  "stream": "stdout",
  "data_b64": "<string>",
  "event": "exit",
  "exit_code": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Browser session ID

process_id
string<uuid>
required

Response

SSE stream of process output and lifecycle events

SSE payload representing process output or lifecycle events.

stream
enum<string>

Source stream of the data chunk.

Available options:
stdout,
stderr
data_b64
string

Base64-encoded data from the process stream.

event
enum<string>

Lifecycle event type.

Available options:
exit
exit_code
integer

Exit code when the event is "exit".