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

<span data-api-safety-label="read-only"><Badge color="gray" size="sm" shape="pill">Read only</Badge></span>

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.

## 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_abc123' \
  -H "Authorization: Bearer $DIALNEXA_API_KEY"
```

## 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](/docs/api-reference/v1/voices/list#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](/docs/api-reference/v1/voices/list)
* [Create Agent](/docs/api-reference/v1/agents/create#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: Transcribers
  - name: Webhooks
  - name: Voices
  - name: Workflows
  - name: Workflow Leads
  - name: Authentication
  - name: Agent Builder
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. 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_abc123
                      code: hi
                      name: Hindi
                      voice_count: 9
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  value:
                    statusCode: 401
                    message: Missing or invalid API key.
                    error: Unauthorized
      security:
        - bearer: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        statusCode:
          type: integer
          example: 400
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: phone_number must be a valid E.164 phone number
        error:
          type: string
          example: Bad Request
      required:
        - statusCode
        - message
        - error
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````