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

# Start sandbox

> Start a sandbox: a browser on a GPU machine, for showing websites in videos. Drive it with Playwright (connectOverCDP), Puppeteer or any CDP client at its cdp_url, which it has once it's ready. With wait, this answers once it's ready, waiting up to 45 seconds; otherwise call get_sandbox until it is. Take screenshots with take_screenshot and record it with start_recording; their files land as assets in its folder. It stops itself after its timeout (an hour unless timeout says otherwise); stop it with stop_sandbox when you're done. Its time is billed per second while it runs, at least a minute.

MCP tool: [`start_sandbox`](/mcp/tools/sandboxes#start_sandbox).



## OpenAPI

````yaml /api/openapi.json post /v1/sandboxes
openapi: 3.1.0
info:
  title: Rendermate API
  version: v1
servers:
  - url: https://api.rendermate.com
security:
  - api_key: []
tags:
  - name: Account
  - name: Workspaces
  - name: Projects
  - name: Documents
  - name: Links
  - name: Exports
  - name: Assets
  - name: Generations
  - name: Persons
  - name: Sandboxes
  - name: Help
paths:
  /v1/sandboxes:
    post:
      tags:
        - Sandboxes
      summary: Start sandbox
      description: >-
        Start a sandbox: a browser on a GPU machine, for showing websites in
        videos. Drive it with Playwright (connectOverCDP), Puppeteer or any CDP
        client at its cdp_url, which it has once it's ready. With wait, this
        answers once it's ready, waiting up to 45 seconds; otherwise call
        get_sandbox until it is. Take screenshots with take_screenshot and
        record it with start_recording; their files land as assets in its
        folder. It stops itself after its timeout (an hour unless timeout says
        otherwise); stop it with stop_sandbox when you're done. Its time is
        billed per second while it runs, at least a minute.


        MCP tool: [`start_sandbox`](/mcp/tools/sandboxes#start_sandbox).
      operationId: start_sandbox
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              properties:
                folder:
                  default: null
                  description: >-
                    The folder its recordings and screenshots go in, ending in
                    `/`; `sandboxes/<id>/` when

                    absent.
                  type:
                    - string
                    - 'null'
                project_id:
                  default: null
                  description: >-
                    The project its recordings and screenshots go in; the
                    workspace's default project when

                    absent.
                  type:
                    - string
                    - 'null'
                timeout:
                  default: null
                  description: >-
                    Seconds it runs before it stops itself, from 60 to 21600;
                    3600 (an hour) when absent.
                  format: uint64
                  minimum: 0
                  type:
                    - integer
                    - 'null'
                viewport:
                  anyOf:
                    - $ref: '#/components/schemas/ViewportInput'
                    - type: 'null'
                  default: null
                  description: The browser window; 1920×1080 at scale 1 when absent.
                wait:
                  default: false
                  description: >-
                    Answer once it's ready (or failed), waiting up to 45
                    seconds, instead of at once.
                  type: boolean
              required: []
              type: object
        required: false
      responses:
        '201':
          content:
            application/json:
              example:
                cdp_url: >-
                  wss://sandboxes.us-east.rendermate.com/v1/sandboxes/sbx_01JF3RD2F4H6K8M0P2R4T6V8X0/cdp?token=cdt_eyJhbGciOiJIUzI1NiJ9.eyJzYngiOiJzYnhfMDFKRjNSRDIifQ.3q2-7w
                cdp_url_expires_at: '2026-12-03T10:25:00Z'
                created_at: '2026-12-03T10:15:00Z'
                folder: sandboxes/sbx_01JF3RD2F4H6K8M0P2R4T6V8X0/
                id: sbx_01JF3RD2F4H6K8M0P2R4T6V8X0
                project_id: prj_01JF3Q4A8C2E6G0J3K5N7Q9S1V
                region: us-east
                started_at: '2026-12-03T10:15:04Z'
                state: ready
                timeout: 3600
                viewport:
                  height: 1080
                  scale: 1
                  width: 1920
              schema:
                properties:
                  cdp_url:
                    description: >-
                      While it's ready: the browser's DevTools websocket, for
                      Playwright's `connectOverCDP`,

                      Puppeteer's `connect` or any CDP client. It opens
                      connections until `cdp_url_expires_at`;

                      a connection stays open until the sandbox stops. Get the
                      sandbox again for a fresh one.
                    type:
                      - string
                      - 'null'
                  cdp_url_expires_at:
                    description: RFC 3339.
                    type:
                      - string
                      - 'null'
                  created_at:
                    description: RFC 3339.
                    type: string
                  error:
                    description: Why it failed.
                    type:
                      - string
                      - 'null'
                  folder:
                    description: The folder its recordings and screenshots go in.
                    type: string
                  id:
                    description: '`sbx_…`.'
                    type: string
                  project_id:
                    description: The project its recordings and screenshots go in.
                    type: string
                  region:
                    description: The region it runs in.
                    type: string
                  started_at:
                    description: 'RFC 3339: when its browser was ready.'
                    type:
                      - string
                      - 'null'
                  state:
                    description: '`starting`, `ready`, `stopping`, `stopped` or `failed`.'
                    type: string
                  stop_reason:
                    description: 'Once it''s stopping: `requested` or `timeout`.'
                    type:
                      - string
                      - 'null'
                  stopped_at:
                    description: RFC 3339.
                    type:
                      - string
                      - 'null'
                  timeout:
                    description: Seconds it runs before it stops itself.
                    format: uint64
                    minimum: 0
                    type: integer
                  viewport:
                    $ref: '#/components/schemas/ViewportView'
                    description: The browser window.
                required:
                  - id
                  - state
                  - region
                  - viewport
                  - timeout
                  - project_id
                  - folder
                  - created_at
                type: object
          description: Created
        '400':
          content:
            application/json:
              examples:
                invalid_request:
                  summary: invalid_request
                  value:
                    error:
                      code: invalid_request
                      doc_url: https://rendermate.com/docs/errors#invalid_request
                      message: >-
                        a viewport is 320 to 3840 pixels wide and 240 to 2160
                        high
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `invalid_request`: a viewport is 320 to 3840 pixels wide and 240
            to 2160 high
        '401':
          content:
            application/json:
              examples:
                unauthorized:
                  summary: unauthorized
                  value:
                    error:
                      code: unauthorized
                      doc_url: https://rendermate.com/docs/errors#unauthorized
                      message: 'provide a valid API key: Authorization: Bearer sk_…'
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `unauthorized`: provide a valid API key: Authorization: Bearer
            sk_…
        '402':
          content:
            application/json:
              examples:
                credits.empty:
                  summary: credits.empty
                  value:
                    error:
                      code: credits.empty
                      doc_url: https://rendermate.com/docs/errors#credits.empty
                      message: >-
                        your organization's credit balance is empty: add credits
                        in the dashboard, under billing, or turn on auto-refill
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `credits.empty`: your organization's credit balance is empty: add
            credits in the dashboard, under billing, or turn on auto-refill
        '403':
          content:
            application/json:
              examples:
                key_without_workspace:
                  summary: key_without_workspace
                  value:
                    error:
                      code: key_without_workspace
                      doc_url: https://rendermate.com/docs/errors#key_without_workspace
                      message: >-
                        this API key has no workspace: create a key in the
                        dashboard, under api keys in the workspace it should act
                        in
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `key_without_workspace`: this API key has no workspace: create a
            key in the dashboard, under api keys in the workspace it should act
            in
        '404':
          content:
            application/json:
              examples:
                project.not_found:
                  summary: project.not_found
                  value:
                    error:
                      code: project.not_found
                      doc_url: https://rendermate.com/docs/errors#project.not_found
                      message: no such project in this workspace
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `project.not_found`: no such project in this workspace'
        '429':
          content:
            application/json:
              examples:
                sandbox.limit:
                  summary: sandbox.limit
                  value:
                    error:
                      code: sandbox.limit
                      doc_url: https://rendermate.com/docs/errors#sandbox.limit
                      message: >-
                        this workspace already has … sandboxes starting or
                        running: stop one first
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `sandbox.limit`: this workspace already has … sandboxes starting
            or running: stop one first
        '500':
          content:
            application/json:
              examples:
                internal:
                  summary: internal
                  value:
                    error:
                      code: internal
                      doc_url: https://rendermate.com/docs/errors#internal
                      message: internal error
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `internal`: internal error'
        '503':
          content:
            application/json:
              examples:
                sandboxes.unavailable:
                  summary: sandboxes.unavailable
                  value:
                    error:
                      code: sandboxes.unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: sandboxes aren't available here
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                temporal_unavailable:
                  summary: temporal_unavailable
                  value:
                    error:
                      code: temporal_unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: >-
                        renders and exports are unavailable right now; try again
                        shortly
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `sandboxes.unavailable`: sandboxes aren't available here

            - `temporal_unavailable`: renders and exports are unavailable right
            now; try again shortly
components:
  schemas:
    ViewportInput:
      description: A browser window's size.
      properties:
        height:
          description: CSS pixels, 240 to 2160.
          format: uint32
          minimum: 0
          type: integer
        scale:
          default: null
          description: >-
            The device scale factor, 1 or 2; 1 when absent. The screen (width
            and height times the

            scale) is at most 3840×2160.
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        width:
          description: CSS pixels, 320 to 3840.
          format: uint32
          minimum: 0
          type: integer
      required:
        - width
        - height
      type: object
    ViewportView:
      properties:
        height:
          description: CSS pixels.
          format: uint32
          minimum: 0
          type: integer
        scale:
          description: The device scale factor.
          format: uint32
          minimum: 0
          type: integer
        width:
          description: CSS pixels.
          format: uint32
          minimum: 0
          type: integer
      required:
        - width
        - height
        - scale
      type: object
    Error:
      properties:
        error:
          properties:
            code:
              description: Stable, such as `asset.name_taken` or `not_available`.
              type: string
            doc_url:
              description: The code's entry on the Errors page.
              type: string
            message:
              description: What went wrong and what to do next.
              type: string
            request_id:
              description: >-
                The request's ID, also in its `x-request-id` header. Quote it
                when you contact support.
              type: string
          required:
            - code
            - message
            - doc_url
            - request_id
          type: object
      required:
        - error
      type: object
  securitySchemes:
    api_key:
      description: >-
        An API key from the dashboard, such as `sk_live_…`. It acts in its
        workspace.
      scheme: bearer
      type: http

````

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