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

# Run agent tests in batch

> Run agent tests for every agent, or for a selected set.



## OpenAPI

````yaml /api-reference/openapi.json post /agent-tests/run
openapi: 3.1.0
info:
  title: Calibrate Public API
  version: 0.1.0
  description: Programmatic API for CI/automation. Pass your key in the `X-API-Key` header.
servers:
  - url: https://api.calibrate.artpark.ai
    description: Production
security: []
paths:
  /agent-tests/run:
    post:
      tags:
        - agent-tests
      summary: Run agent tests in batch
      description: Run agent tests for every agent, or for a selected set.
      operationId: run_tests_batch_agent_tests_run_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/BatchRunRequest'
                - type: 'null'
              title: Request
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchTestRunResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BatchRunRequest:
      properties:
        agent_names:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Agent Names
          description: Agents to run. Omit to run every agent in your workspace
          examples:
            - - my-agent
              - support-bot
      type: object
      title: BatchRunRequest
    BatchTestRunResponse:
      properties:
        runs:
          items:
            $ref: '#/components/schemas/BatchTestRun'
          type: array
          title: Runs
          description: Test runs that were launched
        skipped:
          items:
            $ref: '#/components/schemas/BatchTestSkip'
          type: array
          title: Skipped
          description: Agents that were skipped instead of failing the batch
          default: []
      type: object
      required:
        - runs
      title: BatchTestRunResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BatchTestRun:
      properties:
        agent_name:
          type: string
          title: Agent Name
          description: Name of the agent
        agent_uuid:
          type: string
          maxLength: 36
          minLength: 36
          title: Agent Uuid
          description: ID of the agent that was run
          examples:
            - f47ac10b-58cc-4372-a567-0e02b2c3d479
        task_id:
          type: string
          maxLength: 36
          minLength: 36
          title: Task Id
          description: Test run job ID. Poll it for status and results
          examples:
            - a3b2c1d0-e5f4-3210-abcd-ef1234567890
        status:
          type: string
          enum:
            - queued
            - in_progress
          title: Status
          description: Current status of the run
      type: object
      required:
        - agent_name
        - agent_uuid
        - task_id
        - status
      title: BatchTestRun
    BatchTestSkip:
      properties:
        agent_name:
          type: string
          title: Agent Name
          description: Name of the skipped agent
        agent_uuid:
          type: string
          maxLength: 36
          minLength: 36
          title: Agent Uuid
          description: ID of the skipped agent
          examples:
            - f47ac10b-58cc-4372-a567-0e02b2c3d479
        reason:
          type: string
          enum:
            - no_linked_tests
            - connection_not_verified
          title: Reason
          description: |-
            Why this agent was not run:
            - `no_linked_tests`: the agent has no tests linked
            - `connection_not_verified`: the agent's connection is not verified
      type: object
      required:
        - agent_name
        - agent_uuid
        - reason
      title: BatchTestSkip
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````