Skip to main content
POST
Create Org Sandbox

Authorizations

Authorization
string
header
required

A floo_ API key.

Headers

X-Floo-Org-Id
string<uuid>

Organization to act in; defaults to the one joined most recently.

Body

application/json

A sandbox to create, on one of the org's apps.

A field this API does not know is refused, never dropped: a client newer than the API that asks to block the network must not get a sandbox that reaches it.

app
string
required

The app the sandbox belongs to, by name. Made if the org has none by it.

image
string | null

A Dockerfile to build the sandbox's image from. Default: Debian with Python 3.13, pip, uv and a compiler.

timeout
integer
default:600

Seconds the sandbox lives before it ends. Default 10 minutes, at most 24 h.

Required range: 1 <= x <= 86400
size
enum<string>
default:small

small: 1 vCPU, 512 MiB. medium: 2 vCPUs, 2 GiB. large: 4 vCPUs, 4 GiB.

Available options:
small,
medium,
large
env
Env · object

Variables every command in it runs with.

name
string | null

A name unique among the app's running sandboxes.

tags
Tags · object

Tags to list it by.

block_network
boolean
default:false

Reach no network at all. Refused beside an allowlist.

outbound_cidr_allowlist
string[] | null

Reach only these IP ranges (and any domains allowed), as CIDRs such as 203.0.113.0/24. At most 100.

outbound_domain_allowlist
string[] | null

Reach only these hosts (and any CIDRs allowed): example.com, *.example.com for it and every name under it, or *. At most 100.

Response

Successful Response

The sandbox that was created.

id
string
required
app_id
string<uuid>
required
app_name
string
required