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

# Resume sandbox



## OpenAPI

````yaml openapi/boat-v1.yaml POST /sandboxes/{sandboxId}/resume
openapi: 3.1.0
info:
  title: Boat Public API v1
  version: 1.0.0
  description: >
    Public JSON API for creating, operating, prompting, observing, and exposing
    sandboxes from backend services, CI jobs, hosted workers, and Boat
    automation products.


    The v1 reference intentionally documents the developer integration surface
    only. Dashboard billing actions are not part of v1.
servers:
  - url: https://boat.dev/api/v1
security:
  - BoatBearerAuth: []
tags:
  - name: Boat
    description: >-
      Unified Boat account, setup, lifecycle, prompting, event history, desktop
      access, and SSH operations.
paths:
  /sandboxes/{sandboxId}/resume:
    post:
      tags:
        - Boat
      summary: Resume sandbox
      operationId: resume
      parameters:
        - $ref: '#/components/parameters/SandboxId'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResumeRequest'
      responses:
        '202':
          description: Resume started.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxActionResponse'
              examples:
                resuming:
                  value:
                    ok: true
                    type: sandbox.resuming
                    id: bx_23456789
                    status: resuming
                    sandbox:
                      id: bx_23456789
                      name: Sandbox 2026-05-31 12:00
                      state: provisioning
                      desktopAvailable: false
                      snapshotAvailable: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    SandboxId:
      name: sandboxId
      in: path
      required: true
      schema:
        type: string
        pattern: ^bx_[23456789abcdefghjkmnpqrstuvwxyz]{8}$
      description: Public Sandbox id returned by create/list/get sandbox calls.
  schemas:
    ResumeRequest:
      type: object
      description: Options for resuming a stopped sandbox.
      properties:
        type:
          type: string
          enum:
            - small
            - default
            - large
            - xlarge
          description: >-
            Resume onto a different machine size. Omit to keep the sandbox's
            current type. A resume already restores onto a fresh machine, so
            changing size costs nothing extra. Shrinking is rejected with
            `type_too_small` when the sandbox's data would not fit the smaller
            disk. `xlarge` requires the effective $100 plan or higher and an
            explicit bare-metal operator allocation.
        env:
          type: object
          additionalProperties:
            type: string
          description: >-
            Replaces the sandbox's per-sandbox environment variables. Omit to
            keep the sandbox's current env. Same validation rules as
            `CreateSandboxRequest.env`.
        environment:
          type: string
          description: >-
            Optionally re-pin the sandbox to a different named sandbox
            environment on resume. Omit to keep the sandbox's current
            environment. Unknown names are rejected with `unknown_environment`.
          examples:
            - base
            - customer-demos
        noEnv:
          type: boolean
          description: >-
            Resume into a no-env sandbox: withhold account secrets and scrub
            inherited owner secrets from the restored snapshot before the
            sandbox is exposed. One-way; once a sandbox is resumed as no-env it
            stays no-env on later resumes.
        ttlSeconds:
          oneOf:
            - type: integer
              minimum: 1
              maximum: 2592000
            - type: 'null'
          description: >-
            Auto-stop for the resumed sandbox, in seconds, stored on the
            sandbox. Omit to keep the TTL the sandbox already had. `null`
            disables auto-stop, which means nothing will ever stop this sandbox
            for you.
      examples:
        - ttlSeconds: 28800
        - type: large
          ttlSeconds: 3600
    SandboxActionResponse:
      allOf:
        - $ref: '#/components/schemas/SuccessBase'
        - type: object
          required:
            - id
            - status
          properties:
            type:
              type: string
              examples:
                - sandbox.stopping
            id:
              type: string
            status:
              type: string
              examples:
                - archiving
            sandbox:
              oneOf:
                - $ref: '#/components/schemas/Sandbox'
                - type: 'null'
    SuccessBase:
      type: object
      required:
        - ok
        - type
      properties:
        ok:
          type: boolean
          examples:
            - true
        type:
          type: string
          description: Stable success envelope discriminator added by v1.
    Sandbox:
      type: object
      required:
        - id
        - name
        - state
        - desktopAvailable
        - snapshotAvailable
      properties:
        id:
          type: string
          pattern: ^bx_[23456789abcdefghjkmnpqrstuvwxyz]{8}$
          examples:
            - bx_23456789
        name:
          type: string
          examples:
            - Boat 2026-05-31 12:00
        state:
          type: string
          enum:
            - init
            - provisioning
            - provisioned
            - cloning
            - ready
            - idle
            - running
            - archiving
            - archived
            - error
        type:
          type: string
          enum:
            - small
            - default
            - large
            - xlarge
          description: >-
            Current machine size: what the sandbox was created with, or the size
            it was last resumed or forked onto. Legacy bare-metal sandboxes read
            as `default`.
        vcpu:
          type: integer
          description: vCPUs guaranteed by this sandbox's type.
          examples:
            - 4
        memoryGB:
          type: integer
          description: RAM in GB guaranteed by this sandbox's type.
          examples:
            - 8
        billingMultiplier:
          type: number
          description: >-
            Rate at which this sandbox consumes machine time. 0.5 for `small`, 1
            for `default`, 2 for `large`, and 50/9 for `xlarge`.
          examples:
            - 1
        url:
          type:
            - string
            - 'null'
          format: uri
          description: Machine URL when assigned.
        ip:
          type:
            - string
            - 'null'
          description: Machine IPv6 or IPv4 address when assigned.
        createdAt:
          type:
            - string
            - 'null'
          format: date-time
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
        archiveAfter:
          type:
            - string
            - 'null'
          format: date-time
          description: Automatic archival time, or null when auto-stop is disabled.
        desktopAvailable:
          type: boolean
        desktopUrl:
          type:
            - string
            - 'null'
          format: uri
          description: Secret-bearing desktop stream URL when available. Redact from logs.
        snapshotAvailable:
          type: boolean
        snapshotCompletedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Timestamp of the most recent successfully completed snapshot, or
            null.
        subdomain:
          type:
            - string
            - 'null'
          description: >-
            The sandbox's stable three-word subdomain slug (e.g.
            "frazil-pneuma-rallye"), or null before one is assigned.
        lastSnapshotAttemptAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Timestamp of the most recent snapshot attempt of any status (queued,
            in_progress, completed, failed, cancelled), or null. Use with
            snapshotCompletedAt to detect snapshots that keep failing.
        lastSnapshotStatus:
          type:
            - string
            - 'null'
          enum:
            - queued
            - in_progress
            - completed
            - failed
            - cancelled
            - null
          description: >-
            Status of the most recent snapshot attempt, or null if none. A value
            other than completed while snapshotCompletedAt stays stale indicates
            failing snapshots.
        setupStatus:
          type:
            - string
            - 'null'
          enum:
            - pending
            - running
            - done
            - failed
            - null
          description: >-
            Outcome of the create-time `setupScript`: `pending` (stored, not yet
            started), `running` (executing on the sandbox in the background),
            `done` (exit code 0) or `failed` (non-zero exit, or the sandbox lost
            track of the process). Null when the sandbox was created without a
            setup script.
        setupError:
          type:
            - string
            - 'null'
          description: >-
            Short failure detail (exit code plus a stderr tail) when
            `setupStatus` is `failed`; while `pending`, may carry the last
            start/upload error from a retry in progress. Otherwise null.
        environment:
          type:
            - string
            - 'null'
          description: >-
            Name of the sandbox environment this sandbox is running, or null if
            it is attached to none (a `noEnv` sandbox, or one whose environment
            was deleted). A sandbox freezes onto one environment version when it
            starts and keeps it for life, so this is what the sandbox actually
            holds, not what the environment says today.
          examples:
            - base
        environmentVersion:
          type:
            - integer
            - 'null'
          description: >-
            Version number of `environment` that this sandbox is pinned to.
            Compare it against the environment's latest version to see whether
            an upgrade is pending: a sandbox below the latest is still running
            the older configuration until someone calls `POST
            /environments/{environmentId}/upgrade`.
          examples:
            - 3
    ErrorEnvelope:
      type: object
      required:
        - ok
        - type
        - status
        - code
        - message
        - error
        - requestId
      properties:
        ok:
          type: boolean
          examples:
            - false
        type:
          type: string
          examples:
            - sandbox.error
        status:
          type: integer
          examples:
            - 409
        code:
          type: string
          examples:
            - provider_not_configured
        message:
          type: string
          examples:
            - Prompting is locked until Codex is configured on the Agents page.
        requestId:
          type: string
          examples:
            - req_01HX...
        error:
          type: object
          required:
            - code
            - message
            - status
          properties:
            code:
              type: string
            message:
              type: string
            status:
              type: integer
            details:
              type: object
              additionalProperties: true
  responses:
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            unauthorized:
              value:
                ok: false
                type: sandbox.error
                status: 401
                code: unauthorized
                message: Unauthorized
                error:
                  code: unauthorized
                  message: Unauthorized
                  status: 401
                requestId: req_01HX...
    PaymentRequired:
      description: >-
        Account cannot currently create or operate sandboxes. The error body may
        include a dashboard billing URL, but billing actions are not part of the
        v1 API.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Conflict:
      description: Request conflicts with current account or sandbox state.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: >-
        Machine start or concurrent-sandbox limit reached. Create, fork and
        resume each count as one machine start against your plan's start limits
        (see the Billing guide; `rate_limited`, naming the window you hit). A
        sandbox that would exceed your plan's concurrent-sandbox cap is refused
        with `limit_reached`, or `member_limit_reached` when an organization
        owner has capped you below the plan.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    BoatBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sandbox_api_key
      description: >-
        Boat bearer token in the form `boat_...`. Service API keys authenticate
        sandbox operations.

````