curl --request POST \
--url https://demo.enneo.ai/api/mind/executor/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"id": 123,
"code": "<?php\n\n echo '{\"success\": true}';\n",
"type": "sourceCode",
"language": "php82",
"packages": "",
"parameters": {
"key1": "val1ö\"\\n*!",
"key2": "val'ue"
}
}
EOF{
"duration": 22,
"exitCode": 0,
"output": {
"success": true
},
"stderr": null,
"dependenciesCreated": false,
"localExecutionCommand": null
}JWT-based authentication
The id of the executor
123
The name of the executor
"<?php\n\n echo '{\"success\": true}';\n"
The type of the executor
"sourceCode"
The language of the executor
"php82"
The packages of the executor
""
Successful operation
Duration of the execution in seconds
22
Exit code of the execution
0
Standard error output, if any
null
Indicates if dependencies were created during execution
false
Command used for local execution, if any
null
curl --request POST \
--url https://demo.enneo.ai/api/mind/executor/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"id": 123,
"code": "<?php\n\n echo '{\"success\": true}';\n",
"type": "sourceCode",
"language": "php82",
"packages": "",
"parameters": {
"key1": "val1ö\"\\n*!",
"key2": "val'ue"
}
}
EOF{
"duration": 22,
"exitCode": 0,
"output": {
"success": true
},
"stderr": null,
"dependenciesCreated": false,
"localExecutionCommand": null
}