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

# Stop Simulation

> Stops a Simulation and saves its runtime state. You can start it later from the saved state.



## OpenAPI

````yaml /openapi/simulation.yaml post /v1/simulations/{id}/stop
openapi: 3.1.0
info:
  description: >-
    The continuous-simulation API builds reusable Simulators and runs isolated
    Simulations and Worlds. This document describes the stable v1 public
    contract.
  title: continuous-simulation API
  version: v1
servers:
  - description: Continuous production API.
    url: https://api.continuouslabs.ai
security: []
tags:
  - description: Create and control isolated runtime instances of ready Simulators.
    name: simulations
    x-group: Simulations
  - description: Build, inspect, tag, and delete reusable Simulator artifacts.
    name: simulators
    x-group: Simulators
  - description: Create and control coordinated groups of Simulations.
    name: worlds
    x-group: Worlds
paths:
  /v1/simulations/{id}/stop:
    post:
      tags:
        - simulations
      summary: Stop Simulation
      description: >-
        Stops a Simulation and saves its runtime state. You can start it later
        from the saved state.
      operationId: stop-simulation
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulationView'
          description: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          content:
            application/problem+json:
              examples:
                simulation_not_found:
                  $ref: '#/components/examples/simulation_not_found'
              schema:
                $ref: '#/components/schemas/Error'
          description: Not Found
        '409':
          content:
            application/problem+json:
              examples:
                simulation_world_owned:
                  $ref: '#/components/examples/simulation_world_owned'
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - apiKeyAuth: []
components:
  schemas:
    SimulationView:
      additionalProperties: false
      examples:
        - clock_start: '2026-01-15T12:00:00Z'
          created_at: '2026-01-15T12:00:00Z'
          endpoint: https://api.continuouslabs.ai/sim/sim_01J8Z5X4K7M2N9P0Q1R2S3T4V6
          id: sim_01J8Z5X4K7M2N9P0Q1R2S3T4V6
          labels:
            environment: demo
          name: billing-sandbox
          parent: ''
          seed: demo-seed
          simulator_id: smr_01J8Z5X4K7M2N9P0Q1R2S3T4V5
          status: running
      properties:
        clock_start:
          format: date-time
          type: string
        created_at:
          format: date-time
          type: string
        endpoint:
          type: string
        id:
          type: string
        labels:
          additionalProperties:
            type: string
          type: object
        name:
          type: string
        parent:
          type: string
        seed:
          type: string
        simulator_id:
          type: string
        status:
          enum:
            - running
            - paused
            - stopped
          type: string
      required:
        - id
        - name
        - simulator_id
        - parent
        - seed
        - clock_start
        - status
        - endpoint
        - labels
        - created_at
      type: object
    Error:
      additionalProperties: false
      properties:
        code:
          minLength: 1
          type: string
        detail:
          minLength: 1
          type: string
      required:
        - code
        - detail
      type: object
  responses:
    Unauthorized:
      content:
        application/problem+json:
          examples:
            auth_invalid:
              $ref: '#/components/examples/auth_invalid'
          schema:
            $ref: '#/components/schemas/Error'
      description: Unauthorized
    InternalServerError:
      content:
        application/problem+json:
          examples:
            internal:
              $ref: '#/components/examples/internal'
          schema:
            $ref: '#/components/schemas/Error'
      description: Internal Server Error
  examples:
    simulation_not_found:
      value:
        code: simulation_not_found
        detail: No Simulation was found with ID "sim_01J8Z5X4K7M2N9P0Q1R2S3T4V6".
    simulation_world_owned:
      value:
        code: simulation_world_owned
        detail: >-
          The Simulation with ID "sim_01J8Z5X4K7M2N9P0Q1R2S3T4V6" belongs to the
          World with ID "wld_01J8Z5X4K7M2N9P0Q1R2S3T4V7". Manage it through the
          World.
    auth_invalid:
      value:
        code: auth_invalid
        detail: The API key is missing or invalid.
    internal:
      value:
        code: internal
        detail: The server encountered an unexpected error.
  securitySchemes:
    apiKeyAuth:
      bearerFormat: Continuous API key
      description: >-
        Use a Continuous API key. Send it in the Authorization header as a
        Bearer token.
      scheme: bearer
      type: http

````