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

# Get Agent Version

> Get Agent Version with the DialNexa API. Returns one version of an agent owned by your workspace. Use this to inspect a published or draft configuration.

Read only

Get Agent Version uses your workspace API key. Returns one version of an agent owned by your workspace. Use this to inspect a published or draft configuration.

## Before you begin

Use a server-side [API key](https://dialnexa.com/docs/api-reference/api-fundamentals.md#authenticate-dialnexa-api-requests) for the intended workspace. Replace each path placeholder with an existing resource ID or version number from that workspace.

## Get Agent Version request

The request panel lists supported query parameters and body fields. For a request body, the example below supplies the required fields. Replace sample values with your own inputs.

```bash theme={null}
curl --request GET 'https://api.dialnexa.com/v1/agent-versions/{agentId}/version/{versionNumber}' \
  --header "Authorization: Bearer $DIALNEXA_API_KEY"
```

## Verify the result

Expect HTTP `200`. Read the `data` property in the success envelope; the response panel documents its fields. Top-level IDs carry their prefixes (`agent_`, `voice_`, `lang_`, `llm_`, `trs_`, `kb_`). The included `agent`, `language`, `voice`, `llm`, `voiceModel`, `transcriber`, and `sttFallbackTranscriber` records keep their own IDs unprefixed. Responses can include additional fields not listed here; you can ignore them.

## Retry safety

This operation does not modify workspace resources. Retry after a transient connection failure.

## Errors and recovery

* `401`: Missing, expired, or invalid API key.
* `404`: The agent version does not exist in your workspace.

## Related endpoints

* [List Agent Version Functions](https://dialnexa.com/docs/api-reference/v1/agents/version-functions.md)
* [Get Agent Function Descriptions](https://dialnexa.com/docs/api-reference/v1/agents/function-descriptions.md)
* [API authentication](https://dialnexa.com/docs/api-reference/api-fundamentals.md#authenticate-dialnexa-api-requests)


## OpenAPI

````yaml GET /v1/agent-versions/{agentId}/version/{versionNumber}
openapi: 3.0.0
info:
  title: DialNexa API
  description: Public `/v1` REST API for the DialNexa voice AI platform.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: Agents
  - name: Batch Calls
  - name: Calls
  - name: Knowledge Base
  - name: Languages
  - name: LLMs
  - name: Phone Numbers
  - name: Organization Folders
  - name: Transcribers
  - name: Webhooks
  - name: Voices
  - name: Workflows
  - name: Workflow Leads
  - name: Authentication
  - name: Agent Builder
  - name: Agent Evaluations
paths:
  /v1/agent-versions/{agentId}/version/{versionNumber}:
    get:
      tags:
        - Agents
      summary: Get Agent Version
      description: >-
        Returns one version of an agent owned by your workspace. Use this to
        inspect a published or draft configuration.
      operationId: getAgentVersion
      parameters:
        - name: agentId
          required: true
          in: path
          schema:
            type: string
        - name: versionNumber
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                  - statusCode
                  - message
                  - data
                  - timestamp
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  error:
                    type: boolean
                    enum:
                      - false
                  statusCode:
                    type: integer
                    example: 200
                  message:
                    type: string
                    example: Success
                  data:
                    type: object
                    properties:
                      agent_id:
                        type: string
                      version_number:
                        type: string
                        example: '1'
                        description: >-
                          Version number. Serialized as a string (the column is
                          a 64-bit integer).
                      version_title:
                        type: string
                        nullable: true
                      title:
                        type: string
                        nullable: true
                      description:
                        type: string
                        nullable: true
                      llm_id:
                        type: string
                        nullable: true
                      language_id:
                        type: string
                      voice_id:
                        type: string
                      voice_model_id:
                        type: string
                        nullable: true
                      voice_speed:
                        type: number
                        nullable: true
                      voice_temperature:
                        type: number
                        nullable: true
                      voice_volume:
                        type: number
                        nullable: true
                      voice_pitch:
                        type: number
                        nullable: true
                      prompt_text:
                        type: string
                      system_prompt_text:
                        type: string
                        nullable: true
                      conversation_start_type:
                        type: string
                      welcome_message:
                        type: string
                        nullable: true
                      knowledge_base_ids:
                        type: array
                        items:
                          type: string
                        nullable: true
                      kb_max_chunks:
                        type: number
                        nullable: true
                      kb_min_score:
                        type: number
                        nullable: true
                      is_published:
                        type: boolean
                      voicemail_detection:
                        type: boolean
                        nullable: true
                      hangup_on_voicemail:
                        type: boolean
                        nullable: true
                      voicemail_message:
                        type: string
                        nullable: true
                      end_call_on_silence_sec:
                        type: number
                      max_call_duration_sec:
                        type: number
                      ring_duration_sec:
                        type: number
                      background_sound:
                        type: string
                        nullable: true
                      ambient_noise:
                        type: boolean
                      background_sound_volume:
                        type: number
                      llm_temperature:
                        type: number
                      fallback_llm_enabled:
                        type: boolean
                        nullable: true
                      llm_fallback_delay_ms:
                        type: number
                        nullable: true
                      llm_fallback_model:
                        type: string
                        nullable: true
                      fallback_stt_enabled:
                        type: boolean
                        nullable: true
                      stt_fallback_wait_ms:
                        type: number
                        nullable: true
                      stt_fallback_transcriber_id:
                        type: string
                        nullable: true
                      predictive_preprocessing_enabled:
                        type: boolean
                        nullable: true
                      prompt_caching_enabled:
                        type: boolean
                        nullable: true
                      responsiveness:
                        type: number
                      interruption_sensitivity:
                        type: number
                      response_eagerness:
                        type: number
                      transcriber_id:
                        type: string
                        nullable: true
                      denoising_mode:
                        type: string
                        nullable: true
                      denoise_strength:
                        type: number
                        nullable: true
                      boosted_keywords:
                        type: string
                        nullable: true
                      boost_dynamic_variables:
                        type: boolean
                        nullable: true
                      reminder_message_interval:
                        type: number
                        nullable: true
                      reminder_message_content:
                        type: string
                        nullable: true
                      default_dynamic_variables:
                        nullable: true
                      call_transfer_settings:
                        nullable: true
                      agent_identity:
                        type: string
                        nullable: true
                      agent_background:
                        type: string
                        nullable: true
                      node_positions:
                        type: string
                        nullable: true
                      ivr_menu:
                        type: object
                        additionalProperties: true
                        nullable: true
                      audio_cache_enabled:
                        type: boolean
                        nullable: true
                      agent:
                        type: object
                        nullable: true
                        additionalProperties: true
                        description: >-
                          Associated resource when configured. Included record;
                          its own IDs are unprefixed.
                      language:
                        type: object
                        nullable: true
                        additionalProperties: true
                        description: >-
                          Associated resource when configured. Included record;
                          its own IDs are unprefixed.
                      voice:
                        type: object
                        nullable: true
                        additionalProperties: true
                        description: >-
                          Associated resource when configured. Included record;
                          its own IDs are unprefixed.
                      llm:
                        type: object
                        nullable: true
                        additionalProperties: true
                        description: >-
                          Associated resource when configured. Included record;
                          its own IDs are unprefixed.
                      transcriber:
                        type: object
                        nullable: true
                        additionalProperties: true
                        description: >-
                          Associated resource when configured. Included record;
                          its own IDs are unprefixed.
                      sttFallbackTranscriber:
                        type: object
                        nullable: true
                        additionalProperties: true
                        description: >-
                          Associated resource when configured. Included record;
                          its own IDs are unprefixed.
                      voiceModel:
                        type: object
                        nullable: true
                        additionalProperties: true
                        description: >-
                          Associated resource when configured. Included record;
                          its own IDs are unprefixed.
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      end_call_on_hold_sec:
                        type: integer
                        nullable: true
                        description: >-
                          Seconds to wait in a confirmed hold before hanging up;
                          null when disabled.
                      language_default_message:
                        type: string
                        nullable: true
                        description: >-
                          Message spoken when the caller language is not
                          supported.
                      prompt_tokens:
                        type: integer
                        nullable: true
                        description: Token count of the stored prompt, when computed.
                      secondary_language_ids:
                        type: array
                        items:
                          type: string
                        description: Additional language IDs the version can switch to.
                      speech_to_speech_english_accent:
                        type: string
                        enum:
                          - indian
                          - british
                          - american
                        description: >-
                          Accent of the agent's English on Speech-to-Speech
                          calls: indian (default), british or american.
                  timestamp:
                    type: string
                    format: date-time
        '401':
          description: Missing, expired, or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 401 error
                  value:
                    statusCode: 401
                    error: true
                    success: false
                    data: []
                    message: Invalid API key
                    errors: []
        '404':
          description: The agent version does not exist in the authenticated workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 404 error
                  value:
                    statusCode: 404
                    error: true
                    success: false
                    data: []
                    message: Version 3 not found for agent ID 2g7Xy3tY53gRlp
                    errors: []
      security:
        - bearer: []
components:
  schemas:
    ErrorResponse:
      type: object
      description: Error body on endpoints without response filtering.
      properties:
        statusCode:
          type: integer
          example: 404
        error:
          type: boolean
          enum:
            - true
        success:
          type: boolean
          enum:
            - false
        data:
          oneOf:
            - type: object
              properties:
                code:
                  type: string
                  description: Machine-readable refusal code.
            - type: array
              items: {}
          description: >-
            For a coded refusal, an object with code and the details listed for
            that code. Otherwise an empty array.
        message:
          type: string
        errors:
          type: array
          items:
            type: string
          description: Validation messages for a 400. Empty for other errors.
        validation_errors:
          type: array
          description: >-
            Present when uploaded rows fail number validation (batch and
            workflow lead uploads): one group per distinct error.
          items:
            type: object
            properties:
              error:
                type: string
              rows:
                type: array
                items:
                  type: integer
                description: Row numbers with this error.
              phone_numbers:
                type: array
                items:
                  type: string
        invalid_row_count:
          type: integer
          description: 'Present with validation_errors: how many rows failed.'
      required:
        - statusCode
        - error
        - success
        - data
        - message
        - errors
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.