> ## 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.

# List conversation quality records

> List per-call quality records of AI Assistant voice calls, newest call first, filtered by assistant, assistant version and the time the call ended. See [Call quality signals](https://developers.telnyx.com/docs/inference/ai-insights/call-quality) for definitions.



## OpenAPI

````yaml /openapi/source/external/inference/inference-embedding.json get /ai/conversations/quality
openapi: 3.1.0
info:
  version: 2.0.0
  title: Telnyx API
  x-latency-category: responsive
  x-endpoint-cost: light
  description: SIP trunking, SMS, MMS, Call Control and Telephony Data Services.
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
    description: Version 2.0.0 of the Telnyx API
security:
  - bearerAuth: []
tags:
  - name: Chat
    description: Generate text with LLMs
  - name: Assistants
    description: Configure AI assistant specifications
  - name: Avatars
    description: Create and manage real-time AI avatars
  - name: Conversations
    description: Manage historical AI assistant conversations
  - name: File-based Text-to-Speech
    description: Turn audio into text or text into audio.
  - name: Embeddings
    description: Embed documents and perform text searches
  - name: Clusters
    description: Identify common themes and patterns in your embedded documents
  - name: OpenAI Embeddings
    description: >-
      OpenAI-compatible embeddings endpoints for generating vector
      representations of text
paths:
  /ai/conversations/quality:
    get:
      tags:
        - Conversations
      summary: List conversation quality records
      description: >-
        List per-call quality records of AI Assistant voice calls, newest call
        first, filtered by assistant, assistant version and the time the call
        ended. See [Call quality
        signals](https://developers.telnyx.com/docs/inference/ai-insights/call-quality)
        for definitions.
      operationId: list_conversation_quality
      parameters:
        - name: assistant_id
          in: query
          required: false
          description: Only calls handled by this assistant.
          schema:
            type: string
          example: assistant-6fa1f2b4-1b2c-4d3e-9f10-2a3b4c5d6e7f
        - name: assistant_version_id
          in: query
          required: false
          description: Only calls that ran this assistant version.
          schema:
            type: string
          example: 20250812T114318034399
        - name: ended_at[gte]
          in: query
          required: false
          description: Only calls that ended at or after this time (ISO 8601).
          schema:
            type: string
            format: date-time
          example: '2026-11-01T00:00:00Z'
        - name: ended_at[lte]
          in: query
          required: false
          description: Only calls that ended at or before this time (ISO 8601).
          schema:
            type: string
            format: date-time
          example: '2026-11-30T23:59:59Z'
        - name: page[number]
          in: query
          required: false
          description: Page number (1-based).
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: page[size]
          in: query
          required: false
          description: Records per page.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
      responses:
        '200':
          description: Quality records
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationQualityListData'
              example:
                data:
                  - conversation_id: 1d3c7b9a-5e2f-4a61-8b0d-7c9e2f4a6b13
                    assistant_id: assistant-6fa1f2b4-1b2c-4d3e-9f10-2a3b4c5d6e7f
                    assistant_version_id: 20250812T114318034399
                    started_at: '2026-11-20T12:00:00Z'
                    ended_at: '2026-11-20T12:01:05Z'
                    duration_ms: 65000
                    time_to_first_speech_ms: 1250
                    response_latency_p50_ms: 820
                    response_latency_p95_ms: 1900
                    user_turn_count: 6
                    assistant_turn_count: 7
                    end_reason: assistant_hangup
                    error_count: 0
                    stt_failure: false
                    llm_failure: false
                    tts_failure: false
                    loop_detected: false
                    max_repeated_replies: 1
                    silence_timeout_count: 1
                    task_success: true
                meta:
                  total_pages: 1
                  total_results: 1
                  page_number: 1
                  page_size: 20
        '400':
          description: >-
            Invalid query parameter, for example a malformed `ended_at[gte]`
            date or a `page[size]` over 100.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                errors:
                  - code: '10015'
                    title: Bad Request
                    detail: Invalid value for ended_at[gte]
      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 response of client.ai.conversations.quality.list())
            {
              console.log(response);
            }
        - 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.conversations.quality.list()
            print(page.data)
        - 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\tquality, err := client.AI.Conversations.Quality.List(context.TODO())\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", quality.Data)\n}\n"
        - lang: Java
          source: |-
            package com.telnyx.sdk.example;

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

            public final class Main {
                private Main() {}

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

                    var page = client.ai().conversations().quality().list();
                }
            }
        - lang: Ruby
          source: |-
            require "telnyx"

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

            page = telnyx.ai.conversations.quality.list

            puts(page)
        - lang: PHP
          source: >-
            <?php


            require_once dirname(__DIR__) . '/vendor/autoload.php';


            use Telnyx\Client;

            use Telnyx\Core\Exceptions\APIException;


            $client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API
            Key');


            try {
              $page = $client->ai->conversations->quality->list();

              var_dump($page);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            telnyx ai:conversations:quality list \
              --api-key 'My API Key'
components:
  schemas:
    ConversationQualityListData:
      type: object
      title: ConversationQualityListData
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ConversationQuality'
        meta:
          $ref: '#/components/schemas/Meta'
      required:
        - data
        - meta
    ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorObject'
      required:
        - errors
    ConversationQuality:
      type: object
      title: ConversationQuality
      description: >-
        Per-call quality record of an AI Assistant voice call. See [Call quality
        signals](https://developers.telnyx.com/docs/inference/ai-insights/call-quality)
        for definitions.
      properties:
        conversation_id:
          type: string
          format: uuid
          description: ID of the conversation.
        assistant_id:
          type: string
          description: ID of the assistant that handled the call.
        assistant_version_id:
          type:
            - string
            - 'null'
          description: Assistant version the call ran, when known.
        started_at:
          type: string
          format: date-time
          description: When the assistant started.
        ended_at:
          type: string
          format: date-time
          description: When the call ended.
        duration_ms:
          type: integer
          minimum: 0
          description: Call duration in milliseconds.
        time_to_first_speech_ms:
          type:
            - integer
            - 'null'
          minimum: 0
          description: >-
            Time from the start request to the first assistant audio sent to the
            call; null when not measured (the assistant never spoke, or a
            Realtime WebSocket session).
        response_latency_p50_ms:
          type:
            - integer
            - 'null'
          minimum: 0
          description: >-
            Median time from the end of the caller's speech to the start of the
            assistant's reply; null without such a reply.
        response_latency_p95_ms:
          type:
            - integer
            - 'null'
          minimum: 0
          description: >-
            95th percentile (nearest rank) of the same response latency; null
            without such a reply.
        user_turn_count:
          type: integer
          minimum: 0
          description: Caller utterances transcribed to non-empty text.
        assistant_turn_count:
          type: integer
          minimum: 0
          description: Spoken assistant replies.
        end_reason:
          type: string
          enum:
            - user_hangup
            - assistant_hangup
            - transfer
            - error
            - timeout
            - other
          description: >-
            Why the call ended. `timeout` covers both the user idle timeout and
            the maximum call duration.
        error_count:
          type: integer
          minimum: 0
          description: Errors reported during the call, including the one that ended it.
        stt_failure:
          type: boolean
          description: Speech-to-text failed at least once.
        llm_failure:
          type: boolean
          description: The language model failed at least once.
        tts_failure:
          type: boolean
          description: Text-to-speech failed at least once.
        loop_detected:
          type: boolean
          description: The assistant gave 3 or more near-identical replies in a row.
        max_repeated_replies:
          type: integer
          minimum: 0
          description: Longest run of consecutive near-identical assistant replies.
        silence_timeout_count:
          type: integer
          minimum: 0
          description: 'User-silence timeouts hit: idle re-prompts plus the idle hangup.'
        task_success:
          type:
            - boolean
            - 'null'
          description: >-
            From the conversation's latest completed insight whose result has a
            boolean `task_success` field; null until such an insight exists.
      required:
        - conversation_id
        - assistant_id
        - assistant_version_id
        - started_at
        - ended_at
        - duration_ms
        - time_to_first_speech_ms
        - response_latency_p50_ms
        - response_latency_p95_ms
        - user_turn_count
        - assistant_turn_count
        - end_reason
        - error_count
        - stt_failure
        - llm_failure
        - tts_failure
        - loop_detected
        - max_repeated_replies
        - silence_timeout_count
        - task_success
      example:
        conversation_id: 1d3c7b9a-5e2f-4a61-8b0d-7c9e2f4a6b13
        assistant_id: assistant-6fa1f2b4-1b2c-4d3e-9f10-2a3b4c5d6e7f
        assistant_version_id: 20250812T114318034399
        started_at: '2026-11-20T12:00:00Z'
        ended_at: '2026-11-20T12:01:05Z'
        duration_ms: 65000
        time_to_first_speech_ms: 1250
        response_latency_p50_ms: 820
        response_latency_p95_ms: 1900
        user_turn_count: 6
        assistant_turn_count: 7
        end_reason: assistant_hangup
        error_count: 0
        stt_failure: false
        llm_failure: false
        tts_failure: false
        loop_detected: false
        max_repeated_replies: 1
        silence_timeout_count: 1
        task_success: true
    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
    ErrorObject:
      type: object
      properties:
        code:
          type: string
          description: >-
            Telnyx error code. Edge idempotency errors use 10015, 10027, or
            10036; idempotency protection outages use 10016; replay-cap 413s
            surface 10007. Fallback 404/500 responses from the framework may use
            string status codes ('404', '500') instead.
          enum:
            - '10007'
            - '10015'
            - '10016'
            - '10027'
            - '10036'
            - '404'
            - '500'
        title:
          type: string
        detail:
          type: string
        source:
          type: object
          properties:
            pointer:
              type: string
      required:
        - code
        - title
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````