Skip to main content
POST
/
processes
Submit code for execution
curl --request POST \
  --url http://localhost:7687/processes \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "const res = await fetch(\"https://api.example.com/users/1\");\noutput(res.json());\n"
}
'
{
  "pid": 1
}

Body

application/json
code
string
required

The code to execute in the sandbox.

Example:

"const res = await fetch(\"https://api.example.com/users/1\");\noutput(res.json());\n"

ref
string

Reference used to identify context of the process.

Response

Process created and queued.

pid
integer
required

The ID of the newly created process.

Example:

1

Last modified on March 18, 2026