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

# Get test suite

> Fetches one test suite by id, including its scenarios and config. Scope `sessions:read`.



## OpenAPI

````yaml /api-reference/openapi.json get /agent-test-suites/{suite_id}
openapi: 3.1.0
info:
  title: Lehar API
  version: v0
  description: >-
    Customer-facing REST API for the Lehar voice-AI platform. Platform-admin
    endpoints are intentionally excluded from this reference. Regenerate with
    `npm run sync:openapi`.
servers:
  - url: https://api.lehar.ai/ca/api/v0
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /agent-test-suites/{suite_id}:
    get:
      tags:
        - Agent Testing
      summary: Get test suite
      description: >-
        Fetches one test suite by id, including its scenarios and config. Scope
        `sessions:read`.
      operationId: get_suite_ca_api_v0_agent_test_suites__suite_id__get
      parameters:
        - name: suite_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Test suite record
          content:
            application/json:
              example:
                id: test_suite_01hzy8x2m4q7r8s9t0v1w2x3y4
                agent_id: agent_sales_hi
                name: Renewal objections
                scenarios:
                  - label: Price objection
                    instructions: >-
                      You are a budget-conscious customer who thinks the renewal
                      price is too high.
                    runs: 2
                    max_turns: 8
                    variables:
                      callee_name: Jane
                config:
                  judges:
                    - task_completion
                    - safety
                  variables:
                    company: Acme
                  max_parallel: 3
                created_by_user_id: user_01EXAMPLE
                created_at: '2026-05-22T10:00:00Z'
                updated_at: '2026-05-22T10:00:00Z'
        '400':
          description: >-
            The authenticated context has no `customer_id` (platform staff must
            select a workspace via `X-Customer-ID`).
        '401':
          description: Missing or invalid credentials (code `unauthorized`).
        '403':
          description: >-
            The credential is missing the required `sessions:read` scope (code
            `forbidden`).
        '404':
          description: No suite with this id in the workspace.
          content:
            application/json:
              example:
                error:
                  code: not_found
                  message: Test suite not found
        '500':
          description: Unexpected server error (code `internal_error`).
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
    BearerAuth:
      type: http
      scheme: bearer

````