> ## 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 Language Options

> List voice language options that retain compatible voices for all selected languages in your workspace.

Read only

List voice language options before choosing a primary or additional agent language. Each returned language leaves at least one voice compatible with all selected languages in your workspace. Languages you already passed in `language_ids` are not returned.

## List Voice Language Options Request

Call without filters for the initial choices. Then repeat with the selected `lang_` IDs in the comma-separated `language_ids` query. The optional `provider` query accepts comma-separated provider names.

```bash theme={null}
curl 'https://api.dialnexa.com/v1/voices/language-options?language_ids=lang_mfgsys4hhg8gdn' \
  -H "Authorization: Bearer $DIALNEXA_API_KEY"
```

## Query parameters

| Parameter | Description |
| - | - |
| `language_ids` | Comma-separated selected language IDs. Omit for the initial list. |
| `provider` | Optional comma-separated provider filters. |

## Verify The Result

A successful API-key response is a root array of objects with `id`, `name`, `code`, and `voice_count`. It is not wrapped in `data` or `items`. An empty array means the filters leave no selectable options; remove a filter or review the selected languages.

Use the chosen IDs with the `language_ids` filter on [List Voices](https://dialnexa.com/docs/api-reference/v1/voices/list.md#filter-voices-by-all-selected-languages). Counts describe compatible voices, not transcription accuracy or a guarantee of pronunciation quality.

## Errors And Recovery

A `401` means the API key is missing or invalid. This read does not change settings and can be retried safely. Confirm workspace access if an imported voice is missing.

## Related Endpoints

* [List Voices](https://dialnexa.com/docs/api-reference/v1/voices/list.md)
* [Create Agent](https://dialnexa.com/docs/api-reference/v1/agents/create.md#configure-primary-and-secondary-languages)


## OpenAPI

````yaml GET /v1/voices/language-options
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/language-options:
    get:
      tags:
        - Voices
      summary: List Voice Language Options
      description: >-
        Lists languages that leave at least one compatible voice alongside all
        selected languages, scoped to the shared catalog and this workspace
        imports. Languages already in language_ids are not returned. API-key
        responses are a root array.
      operationId: listVoiceLanguageOptions
      parameters:
        - name: language_ids
          in: query
          required: false
          schema:
            type: string
          description: Comma-separated selected language IDs. Omit for the initial list.
        - name: provider
          in: query
          required: false
          schema:
            type: string
          description: Optional comma-separated provider filters.
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    code:
                      type: string
                    name:
                      type: string
                    voice_count:
                      type: integer
                      minimum: 0
                  required:
                    - id
                    - name
                    - code
                    - voice_count
              examples:
                success:
                  value:
                    - id: lang_mfgsys4f62f0vb
                      code: hi
                      name: Hindi
                      voice_count: 9
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  value:
                    message: >-
                      API key is missing or invalid. You can generate this by
                      logging in into dashboard
        '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.