---
title: "Execute Code"
method: POST
path: "/execute"
tags: ["execution"]
---

# Execute Code

`POST /execute`

## Request

- Base URL: `https://api.babyblueviper.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.babyblueviper.com/execute`
- Auth: none declared

Paid secure-code-execution with tiered v1 Docker sandbox when available.

## Headers

- `authorization` string, nullable

## Request body

- ExecuteRequest, nullable
  - `language` 'python'
  - `code` string, required
  - `stdin` string
  - `timeout_seconds` number, nullable
  - `tier` integer: Execution tier: 0 starter, 1 default, 2 premium, 3 enterprise.
  - `agent_id` string
  - `permissive` boolean: Permissive mode: run ARBITRARY Python — any import, full builtins, no AST allowlist — relying on the hardened isolated container (network OFF, read-only root, all caps dropped, non-root, resource-capped) as the boundary. Priced at a premium. Default False keeps the restrictive allowlist sandbox.
  - `use_workspace` boolean: Mount a persistent per-agent workspace at /workspace (read-write for the agent). Files, installed packages, and git clones survive across calls. Storage is lightly metered. Only available in higher tiers or with permissive=True.

## Response `200`

Successful Response

- unknown

## Other responses

- `402`: Payment Required — pay in USDC via x402 (or Lightning/L402) and retry with the X-PAYMENT header.
- `422`: Validation Error

---

[API](https://skmtc.dev/babyblueviper/apis/invinoveritas.md) - [All operations](https://skmtc.dev/babyblueviper/apis/invinoveritas/llms.txt) - [OpenAPI document](https://skmtc.dev/babyblueviper/apis/invinoveritas/revisions/8b07f40b15e9?raw)
