POST
/
executor
/
preview
curl --request POST \
  --url https://demo.enneo.ai/api/mind/executor/preview \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "code": "<?php\n\n echo '\''{\"success\": true}'\'';\n",
  "type": "sourceCode",
  "language": "php82",
  "packages": "",
  "parameters": {
    "key1": "val1ö\"\\n*!",
    "key2": "val'\''ue"
  }
}'
{
  "duration": 22,
  "exitCode": 0,
  "output": {
    "success": true
  },
  "stderr": null,
  "dependenciesCreated": false,
  "localExecutionCommand": null
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Body

application/json

Response

200
application/json
Successful operation

The response is of type object.