> ## Documentation Index
> Fetch the complete documentation index at: https://getfloo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Org Sandbox

> Create a sandbox on one of the org's apps, made first if the org has none of that name.

Its image is built the first time it is asked for, which can take minutes; after that a
sandbox is created in well under a second. It is only files until a command runs.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/orgs/sandboxes
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/orgs/sandboxes:
    post:
      tags:
        - sandboxes
      summary: Create Org Sandbox
      description: >-
        Create a sandbox on one of the org's apps, made first if the org has
        none of that name.


        Its image is built the first time it is asked for, which can take
        minutes; after that a

        sandbox is created in well under a second. It is only files until a
        command runs.
      operationId: sandboxes_create_org_sandbox
      parameters:
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSandboxRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedSandbox'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    CreateSandboxRequest:
      properties:
        app:
          type: string
          title: App
          description: >-
            The app the sandbox belongs to, by name. Made if the org has none by
            it.
        image:
          anyOf:
            - type: string
            - type: 'null'
          title: Image
          description: >-
            A Dockerfile to build the sandbox's image from. Default: Debian with
            Python 3.13, pip, uv and a compiler.
        timeout:
          type: integer
          maximum: 86400
          minimum: 1
          title: Timeout
          description: >-
            Seconds the sandbox lives before it ends. Default 10 minutes, at
            most 24 h.
          default: 600
        size:
          type: string
          enum:
            - small
            - medium
            - large
          title: Size
          description: >-
            small: 1 vCPU, 512 MiB. medium: 2 vCPUs, 2 GiB. large: 4 vCPUs, 4
            GiB.
          default: small
        env:
          additionalProperties:
            type: string
          type: object
          title: Env
          description: Variables every command in it runs with.
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: A name unique among the app's running sandboxes.
        tags:
          additionalProperties:
            type: string
          type: object
          title: Tags
          description: Tags to list it by.
        block_network:
          type: boolean
          title: Block Network
          description: Reach no network at all. Refused beside an allowlist.
          default: false
        outbound_cidr_allowlist:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Outbound Cidr Allowlist
          description: >-
            Reach only these IP ranges (and any domains allowed), as CIDRs such
            as `203.0.113.0/24`. At most 100.
        outbound_domain_allowlist:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Outbound Domain Allowlist
          description: >-
            Reach only these hosts (and any CIDRs allowed): `example.com`,
            `*.example.com` for it and every name under it, or `*`. At most 100.
      additionalProperties: false
      type: object
      required:
        - app
      title: CreateSandboxRequest
      description: >-
        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.
    CreatedSandbox:
      properties:
        id:
          type: string
          title: Id
        app_id:
          type: string
          format: uuid
          title: App Id
        app_name:
          type: string
          title: App Name
      type: object
      required:
        - id
        - app_id
        - app_name
      title: CreatedSandbox
      description: The sandbox that was created.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.