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

# Create, approve, and start virtual device(s)

> Create one or more virtual devices, automatically approve them, and start simulation in a single API call. Supports three modes: event (synthetic events), image (dataset uploads), or hybrid (both). For image mode, use either dataset_version_id (imported dataset) or dataset_path (filesystem). Use manufacturing-specific event type presets or custom event types.



## OpenAPI

````yaml /api-spec.json post /core/virtual/create-and-start
openapi: 3.0.0
info:
  contact:
    name: Acusight API Support
  description: >-
    Acusight platform API - custom endpoints + Portainer proxy routes for edge
    AI deployments
  title: Acusight API
  version: 1.0.0
servers:
  - url: https://acusight.io/api
    description: AcuSight Cloud (hosted)
security: []
tags:
  - name: Devices & provisioning
    description: Register, provision, and manage edge devices and their agents.
  - name: Virtual devices
    description: Create and drive simulated devices for testing and demos.
  - name: Alerts & telemetry
    description: Model alerts, alert rules, and product telemetry.
  - name: Organization
    description: Organization-level settings.
  - name: Datasets & data
    description: Projects, batches, datasets, images, annotations, and drift.
  - name: Models & training
    description: Model registry, training jobs, exports, and inference.
  - name: Pipeline data
    description: Detection time-series and aggregated pipeline analytics.
paths:
  /core/virtual/create-and-start:
    post:
      tags:
        - Virtual devices
      summary: Create, approve, and start virtual device(s)
      description: >-
        Create one or more virtual devices, automatically approve them, and
        start simulation in a single API call. Supports three modes: event
        (synthetic events), image (dataset uploads), or hybrid (both). For image
        mode, use either dataset_version_id (imported dataset) or dataset_path
        (filesystem). Use manufacturing-specific event type presets or custom
        event types.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handlers.CreateAndStartRequest'
        description: Virtual devices configuration
        required: true
      responses:
        '200':
          description: Devices created and started successfully
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
      security:
        - BearerAuth: []
components:
  schemas:
    handlers.CreateAndStartRequest:
      properties:
        count:
          description: 'Number of devices to create (default: 1, max: 50)'
          type: integer
        dataset_format:
          description: 'Dataset format: "yolo" (default), "coco", "voc"'
          type: string
        dataset_path:
          description: Path to YOLO dataset (for image/hybrid modes, filesystem-based)
          type: string
        dataset_version_id:
          description: ID of imported dataset version (for image/hybrid modes)
          type: integer
        device_id_prefix:
          description: 'Prefix for device IDs (default: "virtual-dev")'
          type: string
        event_frequency:
          description: 'Seconds between new tracks (default: 5)'
          type: integer
        event_types:
          description: Custom event types JSON (overrides preset)
          type: string
        max_concurrent_tracks:
          description: 'Max simultaneous tracks (default: 3)'
          type: integer
        preset:
          description: >-
            Event type preset (e.g., "general_manufacturing",
            "manufacturing_safety")
          type: string
        simulation_mode:
          description: 'Simulation mode: "event" (default), "image", or "hybrid"'
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token. Paste the token only; the Bearer prefix is added
        automatically.

````