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

# List sandboxes

> Your sandboxes, newest first, asleep or awake. Filter by labels with `label.<key>=<value>` (several narrow the list). When there are more than `limit`, the answer has `next_cursor`: pass it as `cursor` for the next page.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/sandboxes
openapi: 3.1.0
info:
  title: Fibre API
  version: 0.2.0
  description: >-
    Sandboxes for agents and the code they write. Authenticate with
    `Authorization: Bearer <API key>`.
servers:
  - url: https://api.fibre.dev
security:
  - bearer: []
tags:
  - name: Sandboxes
    description: >-
      Create, find, change and delete sandboxes, run a command and wait, and
      save a sandbox's files as an image. Guide: [create and
      configure](/sandboxes/overview).
  - name: Commands
    description: >-
      Run commands in the background: stream their output, write to their input,
      stop them, keep servers running across sleep. Guide: [run
      commands](/sandboxes/running-commands).
  - name: Files
    description: >-
      Read, write, list, inspect and delete a sandbox's files. The body is the
      file's bytes; the path is a query parameter. Guide:
      [files](/sandboxes/files).
  - name: Browser and desktop
    description: >-
      Links to a sandbox's browser (for Playwright, Puppeteer or any DevTools
      client, and a live view) and to its desktop. Guides:
      [browser](/connect/browser), [desktop](/connect/desktop).
  - name: Snapshots
    description: >-
      Take a snapshot of a running sandbox, its whole state with memory, and
      start new sandboxes from it, already running. Each snapshot answers its
      size and what it costs a month. Guide: [snapshots](/setup/snapshots).
  - name: Secrets
    description: >-
      Store secrets, encrypted, and give them to sandboxes by name: to one
      command, or to a whole sandbox. Values are write-only: once set, only the
      name, version and times come back. Guide: [secrets](/production/secrets).
  - name: API keys
    description: >-
      Create keys limited to some areas, one sandbox or a lifetime; list and
      revoke them. Guide: [API keys](/get-started/api-keys).
  - name: Webhooks
    description: >-
      Signed notifications when sandboxes start, sleep, crash or are deleted,
      and when builds finish. Guide: [webhooks](/production/webhooks).
  - name: Billing
    description: >-
      Spend, plan, credit, limits and the ledger; links to pay. Guide: [usage
      and billing](/production/usage).
  - name: Pricing
    description: Sizes and their prices, plans and storage, without authentication.
paths:
  /v1/sandboxes:
    get:
      tags:
        - Sandboxes
      summary: List sandboxes
      description: >-
        Your sandboxes, newest first, asleep or awake. Filter by labels with
        `label.<key>=<value>` (several narrow the list). When there are more
        than `limit`, the answer has `next_cursor`: pass it as `cursor` for the
        next page.
      operationId: list-sandboxes
      parameters:
        - name: label.<key>
          in: query
          required: false
          description: a label value, every one given must match
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: 1 to 200 (50)
          schema:
            type: string
        - name: cursor
          in: query
          required: false
          description: next_cursor of the previous page
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  sandboxes:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          pattern: ^sbx-[0-9a-f]{10}$
                          description: Its ID.
                        status:
                          type: string
                          description: Its current state.
                        image:
                          type:
                            - string
                            - 'null'
                          description: The image it starts from.
                        cpu_cores:
                          type: number
                          description: vCPUs.
                        memory_mb:
                          type: integer
                          description: Memory, in MB.
                        disk_gb:
                          type: integer
                          description: >-
                            Writable disk: xsmall and small 10, medium 20, large
                            40, xlarge 80
                        runtime:
                          type: string
                          enum:
                            - standard
                            - vm
                          description: >-
                            `standard`, or `vm` (a full virtual machine with its
                            own kernel).
                        init:
                          anyOf:
                            - type: string
                              enum:
                                - systemd
                            - type: 'null'
                          description: systemd as PID 1 (vm only)
                        created_at:
                          type: string
                          format: date-time
                          description: When it was created.
                        expires_at:
                          anyOf:
                            - type: string
                              format: date-time
                            - type: 'null'
                          description: >-
                            When its lifetime ends and it is deleted; null when
                            it has none (kept until deleted)
                        idle_timeout_sec:
                          type: integer
                          description: >-
                            Seconds with nothing happening before it sleeps; `0`
                            never sleeps. 300 unless set.
                        ready:
                          type: string
                          enum:
                            - port
                            - process
                          description: >-
                            When it counts as running: `process` (as soon as it
                            runs) or `port` (once `exposed_port` answers).
                        network:
                          anyOf:
                            - type: object
                              properties: {}
                              additionalProperties: true
                            - type: 'null'
                          description: >-
                            What it can reach: `{"allow": [...]}` for only those
                            names and addresses, `{"block": true}` for nothing.
                            Leave it out for the whole internet.
                        labels:
                          type: object
                          additionalProperties:
                            type: string
                          description: >-
                            Your own key-value tags, up to 16. Keys: lowercase
                            letters, digits, `.`, `_`, `-`.
                        secrets:
                          type: array
                          items:
                            type: string
                          description: >-
                            The stored secrets it gets as environment variables,
                            by name (never their values)
                        hostname:
                          type: string
                          description: Its HTTPS hostname.
                        url:
                          type: string
                          format: uri
                          description: Its public HTTPS address, serving `exposed_port`.
                      required:
                        - id
                        - status
                        - image
                        - cpu_cores
                        - memory_mb
                        - disk_gb
                        - runtime
                        - init
                        - created_at
                        - expires_at
                        - idle_timeout_sec
                        - ready
                        - network
                        - labels
                        - secrets
                        - hostname
                        - url
                      additionalProperties: true
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Pass it as `cursor` for the next page; absent on the last
                      page.
                required:
                  - sandboxes
                  - next_cursor
                additionalProperties: true
        '400':
          description: >-
            `invalid_cursor`: The `cursor` is not one this list returned: pass
            `next_cursor` as it came
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            `missing_credentials`, `invalid_api_key`: no key, or a wrong,
            revoked or expired one
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: What went wrong, for people
        code:
          type: string
          enum:
            - invalid_request
            - unauthorized
            - forbidden
            - not_found
            - conflict
            - payload_too_large
            - rate_limited
            - internal
            - unavailable
            - invalid_json
            - validation_failed
            - missing_credentials
            - invalid_api_key
            - invalid_token
            - invalid_credentials
            - email_taken
            - insufficient_scope
            - key_resource_bound
            - key_broader
            - unknown_scope
            - api_key_not_found
            - key_resource_not_found
            - sandbox_not_found
            - exec_timeout
            - sandbox_limit
            - size_too_large
            - needs_vm
            - init_needs_vm
            - vm_unavailable
            - invalid_cursor
            - invalid_idempotency_key
            - idempotency_key_reused
            - idempotency_key_in_progress
            - runtime_conflict
            - snapshot_fields_fixed
            - create_failed
            - start_failed
            - engine_error
            - no_capacity
            - host_disk_full
            - already_running
            - not_running
            - command_required
            - exec_failed
            - engine_unreachable
            - command_not_found
            - path_required
            - invalid_path
            - file_not_found
            - file_is_directory
            - file_not_directory
            - file_permission_denied
            - file_exists
            - directory_not_empty
            - file_too_large
            - upload_aborted
            - disk_full
            - files_unsupported
            - restart_required
            - secret_not_found
            - snapshot_not_found
            - snapshot_exists
            - snapshot_source_not_found
            - snapshot_source_unsupported
            - snapshot_in_use
            - snapshot_failed
            - snapshot_timeout
            - image_required
            - image_not_owned
            - keep_unavailable
            - desktop_unavailable
            - browser_unavailable
            - browser_unreachable
            - image_registry_refused
            - image_not_found
            - image_access_denied
            - image_too_large
            - image_rate_limited
            - image_pull_failed
            - image_pull_timeout
            - image_ref_mismatch
            - image_ref_conflict
            - build_limit
            - payment_required
            - subscription_required
            - trial_limit
            - spend_limit
            - org_limit
            - billing_error
            - billing_not_configured
            - billing_provider_error
            - invalid_plan
            - invalid_amount
            - webhook_url
          description: 'Stable: programs branch on it'
        request_id:
          type: string
          description: As in the X-Request-Id header
        docs_url:
          type: string
          format: uri
          description: The code's entry in the error list.
      required:
        - error
        - code
        - request_id
        - docs_url
      additionalProperties: true
      description: Every non-2xx answer
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (fb_live_…)

````

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