Skip to main content
POST
Execute JavaScript

Authorizations

X-API-KEY
string
header
required

Your deployment's API key (MMK_API_KEY). Routes that accept OAuth2 also allow Authorization: Bearer <token>.

Body

application/json
code
string
required

JavaScript source to run. Max 10 KB.

Maximum string length: 10240
timeout
integer
default:5000

Timeout in milliseconds (max 10000).

Required range: x <= 10000
args
string[]

Values exposed to the script as the args array.

Response

Execution result

success
boolean
data
object