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

# Get test suite run history

> Retrieves paginated history of test runs for a specific test suite with filtering options



## OpenAPI

````yaml https://telnyx-openapi-ng.s3.us-east-1.amazonaws.com/ai/assistants.yml get /ai/assistants/tests/test-suites/{suite_name}/runs
openapi: 3.1.0
info:
  title: Telnyx AI Assistants API
  version: 2.0.0
  description: >-
    API for managing AI Assistants, including CRUD fields, versions, tags,
    integrations, MCP servers, and shared tools.
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
security:
  - bearerAuth: []
paths:
  /ai/assistants/tests/test-suites/{suite_name}/runs:
    get:
      tags:
        - Assistants
      summary: Get test suite run history
      description: >-
        Retrieves paginated history of test runs for a specific test suite with
        filtering options
      operationId: >-
        get_test_suite_runs_for_test_public_assistants_tests_test_suites__suite_name__runs_get
      parameters:
        - name: suite_name
          in: path
          required: true
          schema:
            type: string
            title: Suite Name
        - name: status
          in: query
          required: false
          schema:
            type: string
            description: >-
              Filter runs by execution status (pending, running, completed,
              failed, timeout)
            title: Status
          description: >-
            Filter runs by execution status (pending, running, completed,
            failed, timeout)
        - name: test_suite_run_id
          in: query
          required: false
          schema:
            type: string
            description: Filter runs by specific suite execution batch ID
            title: Test Suite Run Id
          description: Filter runs by specific suite execution batch ID
        - name: page
          in: query
          style: deepObject
          explode: true
          description: >-
            Consolidated page parameter (deepObject style). Originally:
            page[size], page[number]
          schema:
            type: object
            properties:
              size:
                type: integer
                maximum: 100
                minimum: 1
                description: Number of test runs to return per page (1-100)
                default: 20
                title: Page[Size]
              number:
                type: integer
                minimum: 1
                description: Page number to retrieve (1-based indexing)
                default: 1
                title: Page[Number]
      responses:
        '200':
          description: Returns paginated list of test runs within the specified suite
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedTestRunList'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Telnyx from 'telnyx';


            const client = new Telnyx({
              apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
            });


            // Automatically fetches more pages as needed.

            for await (const testRunResponse of
            client.ai.assistants.tests.testSuites.runs.list('suite_name')) {
              console.log(testRunResponse.run_id);
            }
        - lang: Python
          source: |-
            import os
            from telnyx import Telnyx

            client = Telnyx(
                api_key=os.environ.get("TELNYX_API_KEY"),  # This is the default and can be omitted
            )
            page = client.ai.assistants.tests.test_suites.runs.list(
                suite_name="suite_name",
            )
            page = page.data[0]
            print(page.run_id)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/team-telnyx/telnyx-go\"\n\t\"github.com/team-telnyx/telnyx-go/option\"\n)\n\nfunc main() {\n\tclient := telnyx.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tpage, err := client.AI.Assistants.Tests.TestSuites.Runs.List(\n\t\tcontext.TODO(),\n\t\t\"suite_name\",\n\t\ttelnyx.AIAssistantTestTestSuiteRunListParams{},\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", page)\n}\n"
        - lang: Java
          source: >-
            package com.telnyx.sdk.example;


            import com.telnyx.sdk.client.TelnyxClient;

            import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;

            import
            com.telnyx.sdk.models.ai.assistants.tests.testsuites.runs.RunListPage;

            import
            com.telnyx.sdk.models.ai.assistants.tests.testsuites.runs.RunListParams;


            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    TelnyxClient client = TelnyxOkHttpClient.fromEnv();

                    RunListPage page = client.ai().assistants().tests().testSuites().runs().list("suite_name");
                }
            }
        - lang: Ruby
          source: >-
            require "telnyx"


            telnyx = Telnyx::Client.new(api_key: "My API Key")


            page =
            telnyx.ai.assistants.tests.test_suites.runs.list("suite_name")


            puts(page)
        - lang: CLI
          source: |-
            telnyx ai:assistants:tests:test-suites:runs list \
              --api-key 'My API Key' \
              --suite-name suite_name
components:
  schemas:
    PaginatedTestRunList:
      properties:
        meta:
          $ref: '#/components/schemas/Meta'
          description: Pagination metadata including total counts and current page info.
        data:
          items:
            $ref: '#/components/schemas/TestRunResponse'
          type: array
          title: Data
          description: Array of test run objects for the current page.
      type: object
      required:
        - meta
        - data
      title: PaginatedTestRunList
      description: |-
        Paginated list of test runs with metadata.

        Returns test run execution results with pagination support for
        handling large numbers of test executions.
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          title: Detail
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
    Meta:
      properties:
        total_pages:
          type: integer
        total_results:
          type: integer
        page_number:
          type: integer
        page_size:
          type: integer
      type: object
      required:
        - total_pages
        - total_results
        - page_number
        - page_size
      title: Meta
    TestRunResponse:
      properties:
        run_id:
          type: string
          format: uuid
          title: Run Id
          description: Unique identifier for this specific test run execution.
          example: 987fcdeb-51a2-43d1-b456-426614174000
        test_id:
          type: string
          format: uuid
          title: Test Id
          description: Identifier of the assistant test that was executed.
          example: 123e4567-e89b-12d3-a456-426614174000
        status:
          $ref: '#/components/schemas/TestStatus'
        triggered_by:
          type: string
          title: Triggered By
          description: How this test run was initiated (manual, scheduled, or API).
          example: cron
        completed_at:
          type: string
          format: date-time
          title: Completed At
          description: Timestamp when the test run finished execution.
        logs:
          type: string
          title: Logs
          description: Detailed execution logs and debug information.
        conversation_id:
          type: string
          title: Conversation Id
          description: Identifier of the conversation created during test execution.
        conversation_insights_id:
          type: string
          title: Conversation Insights Id
          description: Identifier for conversation analysis and insights data.
        test_suite_run_id:
          type: string
          format: uuid
          title: Test Suite Run Id
          description: Identifier linking this run to a test suite execution batch.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the test run was created and queued.
          example: '2024-01-23T10:30:00Z'
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Timestamp of the last update to this test run.
        detail_status:
          items:
            $ref: '#/components/schemas/TestRunDetailResult'
          type: array
          title: Detail Status
          description: >-
            Detailed evaluation results for each rubric criteria. Name is name
            of the criteria from the rubric and status is the result of the
            evaluation. This list will have a result for every criteria in the
            rubric section.
      type: object
      required:
        - run_id
        - test_id
        - status
        - triggered_by
        - created_at
      title: TestRunResponse
      description: |-
        Response model containing test run execution details and results.

        Provides comprehensive information about a test execution including
        status, timing, logs, and detailed evaluation results.
    ValidationError:
      title: ValidationError
      required:
        - loc
        - msg
        - type
      type: object
      properties:
        loc:
          title: Location
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
    TestStatus:
      type: string
      enum:
        - pending
        - starting
        - running
        - passed
        - failed
        - error
      title: TestStatus
      description: |-
        Represents the lifecycle of a test:
          - 'pending': Test is waiting to be executed.
          - 'starting': Test execution is initializing.
          - 'running': Test is currently executing.
          - 'passed': Test completed successfully.
          - 'failed': Test executed but did not pass.
          - 'error': An error occurred during test execution.
    TestRunDetailResult:
      properties:
        name:
          type: string
          title: Name
        status:
          $ref: '#/components/schemas/TestStatus'
      type: object
      required:
        - name
        - status
      title: TestRunDetailResult
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````