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

# Create run

> Execute a benchmark and produce a run.

Start a new run of a benchmark. Each task in the benchmark is executed against the configured environment, and the verification engine scores results against each task's criteria.


## OpenAPI

````yaml POST /runs
openapi: 3.1.0
info:
  title: Verial API
  version: 1.0.0
  description: >-
    Healthcare simulated environment and benchmark platform. Create simulated
    healthcare environments, run benchmarks against AI agents, and verify
    results across FHIR, HL7, fax, voice, and other clinical interfaces.
servers:
  - url: https://api.verial.ai
security:
  - BearerAuth: []
tags:
  - name: Environments
    description: Simulated healthcare environment management.
  - name: Benchmarks
    description: Benchmark definitions with tasks and verification criteria.
  - name: Runs
    description: Benchmark execution and results.
  - name: Tasks
    description: Individual task runs within a benchmark.
  - name: Datasets
    description: Synthetic patient data management.
  - name: FHIR
    description: FHIR R4 simulator endpoints.
  - name: HL7
    description: HL7v2 simulator endpoints.
  - name: Fax
    description: Fax simulator endpoints.
  - name: Message
    description: SMS/text message simulator endpoints.
  - name: Clearinghouse
    description: Insurance clearinghouse simulator endpoints.
  - name: Payer
    description: Insurance payer simulator endpoints.
  - name: CDS Hooks
    description: CDS Hooks clinical decision support simulator.
paths:
  /runs:
    post:
      tags:
        - Runs
      summary: Create run
      description: Start a new benchmark run.
      operationId: createRun
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRunRequest'
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Run'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - BearerAuth: []
components:
  schemas:
    CreateRunRequest:
      type: object
      properties:
        benchmark_id:
          type: string
          minLength: 1
        environment_id:
          type: string
          minLength: 1
        interfaces:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                minLength: 1
            required:
              - type
            additionalProperties: {}
      required:
        - benchmark_id
    Run:
      type: object
      properties:
        id:
          type: string
          format: date-time
        benchmark_id:
          type: string
          format: date-time
        status:
          type: string
        verdict:
          anyOf:
            - type: string
            - type: 'null'
        score:
          anyOf:
            - type: number
            - type: 'null'
        started_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
      required:
        - id
        - benchmark_id
        - status
        - verdict
        - score
        - started_at
        - completed_at
  responses:
    Unauthorized:
      description: Missing or invalid authentication.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                  message:
                    type: string
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                  message:
                    type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key passed as a Bearer token.

````