Skip to main content
POST
/
browsers
/
{id}
/
process
/
{process_id}
/
stdin
Write to process stdin
curl --request POST \
  --url https://api.onkernel.com/browsers/{id}/process/{process_id}/stdin \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data_b64": "<string>"
}
'
{
  "written_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

Body

application/json

Data to write to the process standard input.

data_b64
string
required

Base64-encoded data to write.

Response

Bytes written

Result of writing to stdin.

written_bytes
integer

Number of bytes written.