Execute function
Run a function in a secure, isolated environment. Define a function named execute
. The function will be passed input
as an object.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The function to execute. Your code must define a function named 'execute' and return a JSON-serializable value.
The interpreter to use when executing code.
python
, javascript
, typescript
, ruby
, php
Set of key-value pairs to add to the script's execution environment.
List of input files.
Configuration for HTTP requests and authentication.
Configuration for execution environment limits.
The ID of the runtime revision to use when executing code.
Response
The status of the output. "valid" means your function executed successfully and returned a valid JSON-serializable object, or void. "json_serialization_error" means your function executed successfully, but returned a nonserializable object. "error" means your function failed to execute.
error
, json_serialization_error
, valid