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

> List all voices available for agents.

Read only
List voices available to the authenticated workspace, including the shared catalog and its imported voices. API-key responses are a root array containing `id`, `name`, `gender`, `provider`, and `accent`. Use `id` as the agent's `voice_id`; use [Get Voice Languages](https://dialnexa.com/docs/api-reference/v1/voices/languages.md) to inspect supported languages.

## Filter Voices By All Selected Languages

Pass comma-separated `language_ids` to require support for every selected language. The existing `language_id` filter remains available for a single language. Obtain IDs from [List Voice Language Options](https://dialnexa.com/docs/api-reference/v1/voices/language-options.md).

| Parameter | Description |
| - | - |
| `language_ids` | Comma-separated language IDs; the voice must support all of them. |
| `language_id` | One language ID. |
| `gender` | `male`, `female`, or `non-binary`. |
| `provider` | Upstream provider filter. Availability can depend on the workspace. |
| `name`, `accent` | Narrow by voice name or accent. |
| `page`, `limit` | Page starts at 1. Limit defaults to 20; the maximum is 50, and a larger value returns `400`. A `provider`, `accent` or `gender` outside its list also returns `400`; that message does not list the allowed values, so use the values on this page. |

## Query parameters

| Parameter | Description |
| - | - |
| `llm_id` | Filter voices compatible with a specific LLM ID (S2S models only). |

## Verify Available Voices

Choose a voice from this workspace's current results before saving the agent. A private import from another workspace is not usable even if you know its ID. Voice listing does not change any settings and can be retried safely.

## Errors

* `400 Bad Request` is returned when `page` or `limit` is below `1` or not a whole number, `limit` is above `50`, or a `provider`, `accent` or `gender` is outside its list.
* `401 Unauthorized` is returned when the API key is missing or revoked.

## Related endpoints

* [Get Voice Details](https://dialnexa.com/docs/api-reference/v1/voices/get.md): detail for a single voice.
* [List Accents](https://dialnexa.com/docs/api-reference/v1/voices/accents.md): accent filter dimension.
* [Text-to-speech and voices](https://dialnexa.com/docs/voice-ai/text-to-speech-and-voices.md): guidance on choosing the right voice.


## OpenAPI

````yaml GET /v1/voices
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:
    get:
      tags:
        - Voices
      summary: List Voices
      description: >-
        Returns voices with optional filtering by provider, accent, gender, or
        name. Without llm_id it returns text-to-speech voices only; with llm_id
        it returns only the voices linked to that LLM.
      operationId: listVoices
      parameters:
        - name: provider
          required: false
          in: query
          description: Filter by TTS provider
          schema:
            enum:
              - elevenlabs
              - smallestai
              - sarvam
              - cartesia
              - soniox
            type: string
        - name: accent
          required: false
          in: query
          description: Accent of the voice
          schema:
            enum:
              - indian
              - british
              - american
              - canadian
              - african
              - australian
              - swedish
            type: string
        - name: gender
          required: false
          in: query
          description: Gender of the voice
          schema:
            enum:
              - male
              - female
              - non-binary
            type: string
        - name: name
          required: false
          in: query
          description: Search by voice name
          schema:
            type: string
            example: English
        - name: page
          required: false
          in: query
          description: Page number (starts from 1)
          schema:
            minimum: 1
            default: 1
            example: 1
            type: number
        - name: limit
          required: false
          in: query
          description: >-
            Results per page. Default 20, maximum 50; a larger value returns
            400.
          schema:
            minimum: 1
            maximum: 50
            default: 20
            example: 20
            type: number
        - name: language_id
          required: false
          in: query
          description: Filter voices that support a specific language ID
          schema:
            example: lang_mfgsys4hhg8gdn
            type: string
        - name: llm_id
          required: false
          in: query
          description: Filter voices compatible with a specific LLM ID (S2S models only)
          schema:
            example: llm_mfgt5q2x8k4w7r
            type: string
        - name: language_ids
          in: query
          required: false
          schema:
            type: string
          description: >-
            Comma-separated language IDs. The voice must support every selected
            language.
      responses:
        '200':
          description: Voices returned successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                    gender:
                      type: string
                    provider:
                      type: string
                    accent:
                      type: string
                      nullable: true
              examples:
                success:
                  summary: Successful response
                  value:
                    - id: voice_mfgt2k9x4q7w1z
                      name: Aditi
                      gender: female
                      provider: elevenlabs
                      accent: indian
        '400':
          description: >-
            A query value is invalid: page or limit below 1 or not a whole
            number, limit above 50, or a provider, accent or gender outside its
            list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                limit:
                  summary: limit above 50
                  value:
                    message: >-
                      Request validation failed: limit must not be greater than
                      50
                page:
                  summary: page below 1
                  value:
                    message: 'Request validation failed: page must not be less than 1'
                accent:
                  summary: Unknown accent
                  value:
                    message: >-
                      Request validation failed: accent must be one of the
                      following values: 
        '401':
          description: Unauthorized - missing or invalid API key.
          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
        '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.