Skip to main content
GET
/
browsers
/
{id}
/
process
/
{process_id}
/
status
Get process status
curl --request GET \
  --url https://api.onkernel.com/browsers/{id}/process/{process_id}/status \
  --header 'Authorization: Bearer <token>'
{
  "state": "running",
  "exit_code": 123,
  "cpu_pct": 123,
  "mem_bytes": 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

Status

Current status of a process.

state
enum<string>

Process state.

Available options:
running,
exited
exit_code
integer | null

Exit code if the process has exited.

cpu_pct
number

Estimated CPU usage percentage.

mem_bytes
integer

Estimated resident memory usage in bytes.