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

# Validate Twin

> **Beta.** Twins are enabled per account (`403 twins_not_enabled` otherwise). Their API is stable: it changes only under a new `Kite-Version`.

Everything a create checks, for free, without creating anything: the dataset resolves and has video,
which camera will seed the room, and how long a twin typically takes.

Errors name what to fix, with the field in `param`: `dataset_not_found`, `dataset_gated`,
`dataset_has_no_video`, `camera_not_found` (`details.cameras` lists the real ones), `no_suitable_camera`, and,
with a `robot`, `robot_unsupported` and `robot_mismatch` (`details.robots` lists the ones that fit).



## OpenAPI

````yaml /api-reference/openapi.json post /v1/twins/validate
openapi: 3.1.0
info:
  title: Kite Platform API
  description: >-
    Public API for Kite. Authenticate with `Authorization: Bearer kite_...`, and
    send `Kite-Version: 2026-10-12` to pin the dated contract your code was
    written against (without it you get 2026-09-27). Every response carries the
    version that served it.
  version: '2026-10-12'
servers:
  - url: https://api.kiteml.com
    description: Kite Platform API
security:
  - bearerAuth: []
tags:
  - name: Augmentations
    description: Beta. Generate new episodes from a LeRobot dataset.
  - name: Training runs
    description: Fine-tune a policy on a dataset, one run per policy.
  - name: Twins
    description: >-
      Rebuild a robot episode as an interactable MuJoCo scene (beta, enabled per
      account).
  - name: RL runs
    description: >-
      Train a robot policy in simulation from a task spec; get the policy, its
      scene and a verdict.
  - name: Evaluations
    description: >-
      Evaluate a policy on a Kite SDK spec on Kite's machines: episodes,
      evaluators and a scorecard (beta).
  - name: Objects and environments
    description: Register your own objects and background scenes (beta).
  - name: Augmentation environments
    description: >-
      What an augmentation puts behind the work cell: from Kite's library, a
      photo, a prompt or a panorama (beta, enabled per account).
  - name: Catalog
    description: Policies, hardware tiers, and dataset inspection.
  - name: Operations
    description: Poll any run by its id.
  - name: Webhooks
    description: Endpoints that receive events, and the event log.
  - name: API keys
    description: The key making the request.
  - name: Usage
    description: Token usage and credit balance.
  - name: Requests
    description: >-
      The request log: every call of the last 30 days, who made it and how it
      ended.
  - name: Status
    description: Whether Kite is up, part by part. Needs no key.
paths:
  /v1/twins/validate:
    post:
      tags:
        - Twins
      summary: Validate Twin
      description: >-
        **Beta.** Twins are enabled per account (`403 twins_not_enabled`
        otherwise). Their API is stable: it changes only under a new
        `Kite-Version`.


        Everything a create checks, for free, without creating anything: the
        dataset resolves and has video,

        which camera will seed the room, and how long a twin typically takes.


        Errors name what to fix, with the field in `param`: `dataset_not_found`,
        `dataset_gated`,

        `dataset_has_no_video`, `camera_not_found` (`details.cameras` lists the
        real ones), `no_suitable_camera`, and,

        with a `robot`, `robot_unsupported` and `robot_mismatch`
        (`details.robots` lists the ones that fit).
      operationId: validate_twin_v1_twins_validate_post
      parameters:
        - $ref: '#/components/parameters/KiteVersion'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwinValidate'
            example:
              source:
                repo_id: lerobot/svla_so101_pickplace
                type: huggingface
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TwinValidation'
        '400':
          description: >-
            Invalid request (`parameter_invalid`, `unsupported_version`, ...);
            `param` names the field
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: Missing or invalid API key (`unauthenticated`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The key lacks a scope this route needs (`missing_scope`), or the
            feature is not enabled for the account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '429':
          description: >-
            Rate or concurrency limited (`rate_limit_exceeded`,
            `concurrency_limit_exceeded`, `capacity_exceeded`); honor
            `Retry-After`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: >-
            Temporarily unavailable (`service_unavailable`); retry after
            `Retry-After`
components:
  parameters:
    KiteVersion:
      name: Kite-Version
      in: header
      required: false
      description: >-
        The dated contract your code was written against. Without it you get
        2026-09-27; every response says which version served it.
      schema:
        type: string
        enum:
          - '2026-09-27'
          - '2026-10-12'
        default: '2026-09-27'
  schemas:
    TwinValidate:
      properties:
        source:
          $ref: '#/components/schemas/TwinSource'
        camera:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Camera
        wrist_camera:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Wrist Camera
        robot:
          anyOf:
            - type: string
              maxLength: 40
            - type: 'null'
          title: Robot
          description: Check this robot can drive the dataset, as a create does
      type: object
      required:
        - source
      title: TwinValidate
      description: >-
        The checks a create runs, without creating anything or spending
        anything.
      examples:
        - source:
            repo_id: lerobot/svla_so101_pickplace
            type: huggingface
    TwinValidation:
      properties:
        object:
          type: string
          enum:
            - twin_validation
          const: twin_validation
          title: Object
          default: twin_validation
        ok:
          type: boolean
          title: Ok
        source:
          $ref: '#/components/schemas/TwinSource'
        cameras:
          items:
            type: string
          type: array
          title: Cameras
        scene_camera:
          type: string
          title: Scene Camera
          description: The camera a twin would seed the room from
        wrist_camera:
          anyOf:
            - type: string
            - type: 'null'
          title: Wrist Camera
        episodes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Episodes
        fps:
          anyOf:
            - type: number
            - type: 'null'
          title: Fps
        format:
          anyOf:
            - type: string
            - type: 'null'
          title: Format
          description: The LeRobot dataset format version
        estimate:
          $ref: '#/components/schemas/TwinEstimate'
      type: object
      required:
        - ok
        - source
        - cameras
        - scene_camera
        - estimate
      title: TwinValidation
    ApiErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ApiErrorBody'
      type: object
      required:
        - error
      title: ApiErrorResponse
      description: Every /v1 error has this shape.
    TwinSource:
      properties:
        type:
          type: string
          enum:
            - huggingface
            - s3
          title: Type
          default: huggingface
        repo_id:
          type: string
          maxLength: 500
          minLength: 3
          title: Repo Id
          description: >-
            The LeRobot dataset: a HuggingFace dataset id ('lerobot/pusht') or
            its huggingface.co/datasets/ URL, or an S3 link to its folder in a
            public bucket ('s3://my-bucket/touch_cup/' or its
            https://….amazonaws.com URL). Any form is stored as 'owner/name' or
            's3://bucket/folder'; `type` follows from it
      type: object
      required:
        - repo_id
      title: TwinSource
      description: >-
        Where the episode comes from. The same shape as an augmentation's
        `source`.
    TwinEstimate:
      properties:
        duration_s:
          type: integer
          title: Duration S
          description: >-
            What a twin typically takes, from the stage durations measured on
            the twins built so far
        tokens:
          type: integer
          title: Tokens
          description: 'What a create charges: a twin''s flat price, whatever the build takes'
      type: object
      required:
        - duration_s
        - tokens
      title: TwinEstimate
    ApiErrorBody:
      properties:
        type:
          type: string
          title: Type
          description: >-
            invalid_request_error, authentication_error, permission_error,
            not_found_error, conflict_error, rate_limit_error, or api_error
        code:
          type: string
          title: Code
          description: 'Machine-readable: branch on this, not on the message'
        message:
          type: string
          title: Message
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: The request field the error is about, when there is one
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
          description: Also in the X-Request-Id header; quote it to support
        details:
          anyOf:
            - type: object
            - type: 'null'
          title: Details
          description: >-
            Extra data for some codes (e.g. the cameras a dataset does have, for
            camera_not_found)
      type: object
      required:
        - type
        - code
        - message
      title: ApiErrorBody
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Kite API key (`kite_...`), from **Platform API → Keys** in the
        dashboard.

````

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