> ## 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.

# Stop sandbox

> Stop a sandbox. Recordings still recording finish uploading first. A stopped sandbox can't be started again.

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



## OpenAPI

````yaml /api/openapi.json post /v1/sandboxes/{sandbox_id}/stop
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/{sandbox_id}/stop:
    post:
      tags:
        - Sandboxes
      summary: Stop sandbox
      description: >-
        Stop a sandbox. Recordings still recording finish uploading first. A
        stopped sandbox can't be started again.


        MCP tool: [`stop_sandbox`](/mcp/tools/sandboxes#stop_sandbox).
      operationId: stop_sandbox
      parameters:
        - description: The sandbox, `sbx_…`.
          in: path
          name: sandbox_id
          required: true
          schema:
            description: The sandbox, `sbx_…`.
            type: string
      responses:
        '200':
          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: OK
        '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_…
        '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:
                sandbox.not_found:
                  summary: sandbox.not_found
                  value:
                    error:
                      code: sandbox.not_found
                      doc_url: https://rendermate.com/docs/errors#sandbox.not_found
                      message: no sandbox sbx_01JF3RD2F4H6K8M0P2R4T6V8X0
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `sandbox.not_found`: no sandbox sbx_01JF3RD2F4H6K8M0P2R4T6V8X0'
        '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:
    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.