cURL
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 }
Creates a new process and queues it for execution.
The code to execute in the sandbox.
"const res = await fetch(\"https://api.example.com/users/1\");\noutput(res.json());\n"
Reference used to identify context of the process.
Process created and queued.
The ID of the newly created process.
1
Was this page helpful?