> ## 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 a conversation's quality record

> Retrieve the 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.



## OpenAPI

````yaml /openapi/source/external/inference/inference-embedding.json get /ai/conversations/{conversation_id}/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/{conversation_id}/quality:
    get:
      tags:
        - Conversations
      summary: Get a conversation's quality record
      description: >-
        Retrieve the 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.
      operationId: get_conversation_quality
      parameters:
        - name: conversation_id
          in: path
          required: true
          description: ID of the conversation.
          schema:
            type: string
          example: 1d3c7b9a-5e2f-4a61-8b0d-7c9e2f4a6b13
      responses:
        '200':
          description: The quality record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationQualityData'
              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
        '404':
          description: >-
            No quality record for this conversation: not an AI Assistant voice
            call (web chat, SMS, Conversation Relay), data retention is off, or
            it ended before quality tracking was available.
      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
            });


            const response = await
            client.ai.conversations.quality.get('conversation_id');


            console.log(response.data);
        - 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
            )
            response = client.ai.conversations.quality.get(
                "conversation_id",
            )
            print(response.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\tresponse, err := client.AI.Conversations.Quality.Get(\n\t\tcontext.TODO(),\n\t\t\"conversation_id\",\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", response.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 response = client.ai().conversations().quality().get("conversation_id");
                }
            }
        - lang: Ruby
          source: |-
            require "telnyx"

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

            response = telnyx.ai.conversations.quality.get("conversation_id")

            puts(response)
        - 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 {
              $response = $client->ai->conversations->quality->get(
                'conversation_id',
              );

              var_dump($response);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            telnyx ai:conversations:quality get \
              --api-key 'My API Key' \
              --conversation-id 1d3c7b9a-5e2f-4a61-8b0d-7c9e2f4a6b13
components:
  schemas:
    ConversationQualityData:
      type: object
      title: ConversationQualityData
      properties:
        data:
          $ref: '#/components/schemas/ConversationQuality'
      required:
        - data
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````