Skip to main content
Run Python or JavaScript in a runtime and read stdout, stderr, and any error. Python is the default. Pass language="javascript" for Node.js. To keep functions, imports, and values for the next run, use a context.

Run Python

Run JavaScript

gravixlayer runtime run infers the language from the file extension (.py, .js), or you pass --language.

Read a failure

Parameters

Response

Endpoint

POST /v1/agents/runtime/{runtime_id}/code/run