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

# Create World

> Creates a World from named Simulator references. Service endpoints appear when the World is running.



## OpenAPI

````yaml /openapi/simulation.yaml post /v1/worlds
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/worlds:
    post:
      tags:
        - worlds
      summary: Create World
      description: >-
        Creates a World from named Simulator references. Service endpoints
        appear when the World is running.
      operationId: create-world
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWorldRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorldView'
          description: Created
        '400':
          content:
            application/problem+json:
              examples:
                simulator_unknown:
                  $ref: '#/components/examples/simulator_unknown'
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad Request
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          content:
            application/problem+json:
              examples:
                world_not_found:
                  $ref: '#/components/examples/world_not_found'
              schema:
                $ref: '#/components/schemas/Error'
          description: Not Found
        '409':
          content:
            application/problem+json:
              examples:
                simulator_not_ready:
                  $ref: '#/components/examples/simulator_not_ready'
                world_conflict_clone:
                  $ref: '#/components/examples/world_conflict_clone'
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict
        '422':
          content:
            application/problem+json:
              examples:
                validation:
                  $ref: '#/components/examples/validation'
              schema:
                $ref: '#/components/schemas/Error'
          description: Unprocessable Entity
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - apiKeyAuth: []
components:
  schemas:
    CreateWorldRequest:
      additionalProperties: false
      examples:
        - name: support-demo
          seed: demo-seed
          simulations:
            billing:
              simulator: smr_01J8Z5X4K7M2N9P0Q1R2S3T4V5
      properties:
        from:
          type: string
        name:
          minLength: 1
          type: string
        seed:
          type: string
        simulations:
          additionalProperties:
            $ref: '#/components/schemas/WorldMemberRequest'
          type: object
      required:
        - name
        - simulations
      type: object
    WorldView:
      additionalProperties: false
      examples:
        - created_at: '2026-01-15T12:00:00Z'
          from: ''
          id: wld_01J8Z5X4K7M2N9P0Q1R2S3T4V7
          members:
            billing:
              simulation_id: sim_01J8Z5X4K7M2N9P0Q1R2S3T4V6
              status: running
          name: support-demo
          seed: demo-seed
          services:
            billing:
              endpoint: https://api.continuouslabs.ai/sim/sim_01J8Z5X4K7M2N9P0Q1R2S3T4V6
              simulation_id: sim_01J8Z5X4K7M2N9P0Q1R2S3T4V6
          status: running
      properties:
        created_at:
          format: date-time
          type: string
        error:
          $ref: '#/components/schemas/Error'
        from:
          type: string
        id:
          type: string
        members:
          additionalProperties:
            $ref: '#/components/schemas/WorldMemberView'
          type: object
        name:
          type: string
        seed:
          type: string
        services:
          additionalProperties:
            $ref: '#/components/schemas/WorldService'
          type: object
        status:
          enum:
            - creating
            - running
            - stopped
            - failed
          type: string
      required:
        - id
        - name
        - status
        - seed
        - from
        - members
        - services
        - created_at
      type: object
    Error:
      additionalProperties: false
      properties:
        code:
          minLength: 1
          type: string
        detail:
          minLength: 1
          type: string
      required:
        - code
        - detail
      type: object
    WorldMemberRequest:
      additionalProperties: false
      properties:
        simulator:
          minLength: 1
          type: string
      required:
        - simulator
      type: object
    WorldMemberView:
      additionalProperties: false
      properties:
        simulation_id:
          type: string
        status:
          description: >-
            The member Simulation's current lifecycle status — one of running,
            paused, or stopped — or empty for a member with no live row (a
            failed World's rolled-back member, or one not yet booted).
          type: string
      required:
        - simulation_id
        - status
      type: object
    WorldService:
      additionalProperties: false
      properties:
        endpoint:
          type: string
        simulation_id:
          type: string
      required:
        - simulation_id
        - endpoint
      type: object
  examples:
    simulator_unknown:
      value:
        code: simulator_unknown
        detail: No Simulator was found with ID "smr_01J8Z5X4K7M2N9P0Q1R2S3T4V5".
    world_not_found:
      value:
        code: world_not_found
        detail: No World was found with ID "wld_01J8Z5X4K7M2N9P0Q1R2S3T4V7".
    simulator_not_ready:
      value:
        code: simulator_not_ready
        detail: >-
          The Simulator with ID "smr_01J8Z5X4K7M2N9P0Q1R2S3T4V5" is not ready.
          Wait for its build to finish before you retry.
    world_conflict_clone:
      value:
        code: world_conflict
        detail: >-
          The World with ID "wld_01J8Z5X4K7M2N9P0Q1R2S3T4V7" is in the failed
          state and cannot be cloned. Use a running or stopped World as the
          source.
    validation:
      value:
        code: validation
        detail: The request does not satisfy the API contract.
    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.
  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
  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

````