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

# List Voice Languages

> List the languages supported by one voice.

Read only
Returns the language choices supported by one voice as a root array of `id` (prefixed `lang_`, the same ID that [List Languages](https://dialnexa.com/docs/api-reference/v1/languages/list.md) returns), `code` (a short code such as `en` or `hi`) and `name`. Use this endpoint when a voice picker needs to show per-voice language options before saving an agent.

## When to use this

* **Voice pickers**: after the user selects a voice, show only the languages that voice actually supports.
* **Pre-save validation**: confirm the `language_id` you are about to set on an agent is supported by its `voice_id`, so [Create Agent](https://dialnexa.com/docs/api-reference/v1/agents/create.md) or [Update Agent](https://dialnexa.com/docs/api-reference/v1/agents/update.md) does not fail validation.
* **Multilingual rollouts**: check whether one voice can cover all your target languages or whether you need a different voice per market.

## Path parameters

| Parameter | Description |
| - | - |
| `id` | Voice ID, for example `voice_mfgt2k9x4q7w1z`. |

## Related endpoints

* [Get Voice Details](https://dialnexa.com/docs/api-reference/v1/voices/get.md): fetch one voice record.
* [List Speech To Speech Voices](https://dialnexa.com/docs/api-reference/v1/voices/s2s.md): fetch S2S-compatible voices and language choices.
* [List Languages](https://dialnexa.com/docs/api-reference/v1/languages/list.md): fetch the platform language catalog.


## OpenAPI

````yaml GET /v1/voices/{id}/languages
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/voices/{id}/languages:
    get:
      tags:
        - Voices
      summary: List Voice Languages
      description: Returns the languages supported by one voice.
      operationId: listVoiceLanguages
      parameters:
        - name: id
          required: true
          in: path
          description: Voice ID
          schema:
            example: voice_mfgt2k9x4q7w1z
            type: string
      responses:
        '200':
          description: Voice languages returned successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      example: lang_mfgsys4hhg8gdn
                      type: string
                    code:
                      type: string
                      example: en
                    name:
                      type: string
                      example: English
              examples:
                success:
                  summary: Successful response
                  value:
                    - id: lang_mfgsys4hhg8gdn
                      code: en
                      name: English
                    - id: lang_mfgsys4f62f0vb
                      code: hi
                      name: Hindi
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 401 Unauthorized
                  value:
                    message: >-
                      API key is missing or invalid. You can generate this by
                      logging in into dashboard
        '404':
          description: Voice not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 404 Not Found
                  value:
                    message: Voice not found
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 500 Internal Server Error
                  value:
                    message: An unexpected error occurred. Please try again later.
      security:
        - bearer: []
components:
  schemas:
    FilteredErrorResponse:
      type: object
      description: >-
        Error body on calls, batch calls, voices, languages and LLMs, which
        return only the message (and data for a coded refusal).
      properties:
        message:
          type: string
        data:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable refusal code.
          description: >-
            Present for a coded refusal: code and the details listed for that
            code.
        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:
        - message
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````

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