Pular para o conteúdo principal
POST
Python (SDK)

Autorizações

Authorization
string
header
obrigatório

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Cabeçalhos

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Parâmetros de caminho

session_id
string
obrigatório

Corpo

application/json
session_id
string
obrigatório
code
string
obrigatório
session_token
string | null
runtime
enum<string>
padrão:python
Opções disponíveis:
python,
python3,
javascript,
node,
go,
bash,
shell,
sh
cwd
string | null
env
Env · object
timeout_seconds
integer
padrão:60

Resposta

Resposta Bem-Sucedida

session_id
string
obrigatório
runtime
enum<string>
obrigatório
Opções disponíveis:
python,
python3,
javascript,
node,
go,
bash,
shell,
sh
cwd
string
obrigatório
exit_code
integer
obrigatório
stdout
string
padrão:""
stderr
string
padrão:""
files_changed
string[]
resource_usage
RuntimeResourceUsage · object | null