POST
/
process
curl --request POST \
  --url https://run.blaxel.ai/{workspace_id}/sandboxes/{sandbox_id}/process \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "command": "ls -la",
  "env": {
    "{\"PORT\"": " \"3000\"}"
  },
  "name": "my-process",
  "timeout": 30,
  "waitForCompletion": false,
  "waitForPorts": [
    3000,
    8080
  ],
  "workingDir": "/home/user"
}'
{
  "command": "ls -la",
  "completedAt": "Wed, 01 Jan 2023 12:01:00 GMT",
  "exitCode": 0,
  "name": "my-process",
  "pid": "1234",
  "startedAt": "Wed, 01 Jan 2023 12:00:00 GMT",
  "status": "running",
  "workingDir": "/home/user"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Process execution request

The body is of type object.

Response

200
application/json

Process information

The response is of type object.