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

# List voices

> List voices visible to the Nixflex account. Check compatibility for the optional agent context before choosing a voice.

**FIXED · agent** For a different inbound opening on each number, use Dynamic greeting and put the opening in that number’s custom\_prompt. Fixed welcome\_message text, spoken language, pickup delay and general call timezone are shared agent settings. Use separate agents when those must differ. A booking timezone changes calendar times only.

**NOT OFFERED → do this instead · number** A number cannot override fixed agent settings. Use its dynamic opening for business-specific wording. Use different agents for different fixed settings.

**YOU CAN CHANGE · agent** Choose the supported catalogue voice and an eligible route. Select manual speech terms or configure structured values to extract from transcripts.

**SCOPE · number** Choose a complete primary and backup voice pair on the number. It overrides the agent pair as a whole. To use the saved agent pair, set voice\_pair\_inherit to true. Setting the older voice\_id field can clear the agent’s catalogue key, and a pair that is only partly set can be unavailable. Never choose by alias precedence.

Group numbers by the knowledge and agent settings their customers need. Attribute each customer’s usage to its verified business number.

Agents are unlimited. There is no fee per agent. Customers pay only for usage (minutes and texts). Many customers can use one shared agent, each with its own number and number prompt. Use separate agents only for different knowledge or agent settings. List page size, knowledge-base quotas and simultaneous-call limits do not cap agent count.

For a different greeting per business, keep Dynamic greeting on (the default) and put the opening line in that number’s custom\_prompt. For example, “Start every call with: Thank you for calling Oak and Stone”.

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#agents-voices)

List the voices visible to this account. Compatibility is calculated for the optional agent context; catalog availability can change before a call.

Method: **GET** · Success: **200** · Scope: **Owning account**

**The important part**

* Use returned voice keys when choosing an available voice.
* Choose from voices already in the catalogue.

[Business guide](https://docs.nixflex.com/guides/business/your-own-voice.md) · [Developer guide](https://docs.nixflex.com/concepts/voices.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Authentication

Send `Authorization: Bearer KEY_ID:KEY_SECRET` using the owning account’s server-side credential.

## Request fields

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `language` (query) | string | No | Omitted | Supported fixed language code. multi is invalid here; use agent\_language for that context. |
| `gender` (query) | string | No | Omitted | Optional gender filter. Allowed: `"male"`, `"female"`, `"unknown"`. |
| `locale` (query) | string | No | Omitted | Ordering preference, not a strict filter. |
| `agent_id` (query) | string | No | Omitted | Optional owned agent whose saved language provides the compatibility context. Ignored when agent\_language is supplied. |
| `agent_language` (query) | string | No | Omitted | Optional supported language code or multi for a draft agent. Takes precedence over agent\_id. |
| `availability` (query) | string | No | `"active"` | all includes temporarily unavailable/unavailable voices. Any other supplied value follows the active behaviour. |
| `limit` (query) | integer | No | `50` | The handler parses an integer and clamps it to 1–100. Missing, zero or unparseable values use 50. Minimum 1. Maximum 100. |
| `cursor` (query) | string | No | Omitted | Opaque next\_cursor from the previous page. Keep the same account and filters. |

Do not send a request body.

Native language matches sort first, then matching locale, display name, and voice key. Compatibility context changes selectable; it does not remove every incompatible voice from the list. Keep filters unchanged while following next\_cursor. Stop at null. The server does not return total\_in\_scope. Accent language, locale and label can each be null; keep unknown metadata as null.

## Response fields

`200 OK` returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.

| Field | Type | Meaning |
| - | - | - |
| `data` | array of object | Visible voices on this page. |
| `data[].voice_key` | string | Stable neutral catalog identifier; use this value when selecting a voice. |
| `data[].displayName` | string | Display label, not an identifier. |
| `data[].gender` | string | Catalog gender label. Allowed: `"male"`, `"female"`, `"unknown"`. |
| `data[].nativeLanguage` | string or null | Native language code, when known. |
| `data[].locale` | string or null | Locale label, when known. |
| `data[].accents` | array of object | Available accent labels. |
| `data[].accents[].language` | string or null | Accent language. Null when not supplied in the catalog. |
| `data[].accents[].locale` | string or null | Accent locale. |
| `data[].accents[].label` | string or null | Neutral accent label. Null when not supplied in the catalog. |
| `data[].languages` | array of string | Languages approved for this voice. |
| `data[].origin` | string | Standard catalog or a connection belonging to this account. Allowed: `"standard"`, `"connected"`. |
| `data[].availability` | string | Current catalog availability. Allowed: `"active"`, `"temporarily_unavailable"`, `"unavailable"`. |
| `data[].selectable` | boolean | Whether a new selection is compatible with the supplied agent context. |
| `data[].incompatibilityReason` | string or null | Reason when not selectable: voice\_unavailable, voice\_temporarily\_unavailable, no\_approved\_languages, native\_language\_not\_in\_multi\_set or language\_not\_approved. These are response values, not HTTP errors. |
| `data[].previewLanguage` | string or null | Preview language, or null when no preview exists. |
| `data[].previewStatus` | string | Preview state; none when no preview is available. |
| `data[].previewUrl` | string or null | Preview URL when present. Null does not imply that the voice is unavailable. |
| `next_cursor` | string or null | Continuation cursor, or null at the end. No total count is returned. |

## Example request

Raw HTTP base URL: `https://api.nixflex.com/v1`. Node and Python SDK base URL: `https://api.nixflex.com`. The SDK adds `/v1`. Keep `NIXFLEX_API_KEY` in your private process environment. The shell examples use Bash syntax. SDK and CLI examples require Node/CLI 0.11.0 or later and Python 0.4.0 or later.

```bash cURL theme={"dark"}
curl --request GET \
  --url "https://api.nixflex.com/v1/voices?limit=25&language=en&agent_language=multi" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY"
```

```javascript Node theme={"dark"}
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl,maxRetries:0});
const result = await client.voices.list({limit:25,language:"en",agent_language:"multi"});
// Handle result privately; do not log secrets or call content.
```

```python Python theme={"dark"}
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
with Nixflex(os.environ["NIXFLEX_API_KEY"], base_url=base_url,max_retries=0) as client:
    result = client.voices.list(limit=25,language="en",agent_language="multi")
# AsyncNixflex supports the same calls with await (and async with).
```

```bash CLI theme={"dark"}
nixflex voices list --limit 25 --language en --agent-language multi --base-url https://api.nixflex.com --json
```

## Example response

Illustrative `200` response. Identifiers and values are examples; some optional or compatibility fields are omitted.

```json Response theme={"dark"}
{
  "data": [
    {
      "voice_key": "00000000-0000-4000-8000-000000000001",
      "displayName": "Example voice",
      "gender": "female",
      "nativeLanguage": "en",
      "locale": "en-GB",
      "accents": [],
      "languages": [
        "en"
      ],
      "origin": "standard",
      "availability": "active",
      "selectable": true,
      "incompatibilityReason": null,
      "previewLanguage": null,
      "previewStatus": "none",
      "previewUrl": null
    }
  ],
  "next_cursor": null
}
```

## Errors

Failures return an `error` object with `code`, `message`, `doc_url` and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 400 | [`invalid_gender`](https://docs.nixflex.com/api-reference/errors#invalid_gender) | The gender filter is unsupported. | Use male, female or unknown. |
| 400 | [`invalid_language`](https://docs.nixflex.com/api-reference/errors#invalid_language) | The language filter is invalid or multi. | Use a supported fixed language code. |
| 400 | [`invalid_agent_language`](https://docs.nixflex.com/api-reference/errors#invalid_agent_language) | The draft agent language is invalid. | Use a supported language code or multi. |
| 400 | [`agent_not_found`](https://docs.nixflex.com/api-reference/errors#agent_not_found) | The agent context was not found for this account. | Use an owned agent ID or agent\_language. |
| 400 | [`invalid_cursor`](https://docs.nixflex.com/api-reference/errors#invalid_cursor) | The cursor is malformed or belongs to another account/filter. | Restart with the intended filters. |
| 409 | [`cursor_expired`](https://docs.nixflex.com/api-reference/errors#cursor_expired) | The catalog revision changed. | Restart at the first page and deduplicate by voice\_key. |
| 503 | [`catalog_unavailable`](https://docs.nixflex.com/api-reference/errors#catalog_unavailable) | The catalog is not loaded. | Retry the read after a short wait. |
| 401 | [`unauthorized`](https://docs.nixflex.com/api-reference/errors#unauthorized) | The credential is missing or invalid. | Check the full account credential. |
| 429 | [`rate_limit_exceeded`](https://docs.nixflex.com/api-reference/errors#rate_limit_exceeded) | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |

## Retry and idempotency

This is a read-only request. Retry transient connection or server failures with bounded backoff; respect Retry-After for 429. Do not retry validation or ownership errors unchanged. A later read can return newer state.

## Related endpoints

* [Get a voice](https://docs.nixflex.com/api-reference/voices/get-voices-voice_key.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json GET /voices
openapi: 3.1.0
info:
  title: Nixflex public API
  version: 1.0.0
  description: >-
    Nixflex API reference for agents, calls, messaging, knowledge, organisations
    and integrations. Authenticate with the owning account and follow each
    operation’s permissions, response and retry contract.
servers:
  - url: https://api.nixflex.com/v1
security:
  - bearerAuth: []
paths:
  /voices:
    get:
      tags:
        - Voices
      summary: List voices
      description: >-
        List the voices visible to this account. Compatibility is calculated for
        the optional agent context; catalog availability can change before a
        call. Native language matches sort first, then matching locale, display
        name, and voice key. Compatibility context changes selectable; it does
        not remove every incompatible voice from the list. Keep filters
        unchanged while following next_cursor. Stop at null. The server does not
        return total_in_scope. Accent language, locale and label can each be
        null; keep unknown metadata as null.
      operationId: listVoices
      parameters:
        - name: language
          in: query
          required: false
          schema:
            type: string
            description: >-
              Supported fixed language code. multi is invalid here; use
              agent_language for that context.
          description: >-
            Supported fixed language code. multi is invalid here; use
            agent_language for that context.
        - name: gender
          in: query
          required: false
          schema:
            type: string
            description: Optional gender filter.
            enum:
              - male
              - female
              - unknown
          description: Optional gender filter.
        - name: locale
          in: query
          required: false
          schema:
            type: string
            description: Ordering preference, not a strict filter.
          description: Ordering preference, not a strict filter.
        - name: agent_id
          in: query
          required: false
          schema:
            type: string
            description: >-
              Optional owned agent whose saved language provides the
              compatibility context. Ignored when agent_language is supplied.
          description: >-
            Optional owned agent whose saved language provides the compatibility
            context. Ignored when agent_language is supplied.
        - name: agent_language
          in: query
          required: false
          schema:
            type: string
            description: >-
              Optional supported language code or multi for a draft agent. Takes
              precedence over agent_id.
          description: >-
            Optional supported language code or multi for a draft agent. Takes
            precedence over agent_id.
        - name: availability
          in: query
          required: false
          schema:
            type: string
            description: >-
              all includes temporarily unavailable/unavailable voices. Any other
              supplied value follows the active behaviour.
            default: active
          description: >-
            all includes temporarily unavailable/unavailable voices. Any other
            supplied value follows the active behaviour.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            description: >-
              The handler parses an integer and clamps it to 1–100. Missing,
              zero or unparseable values use 50.
            minimum: 1
            maximum: 100
            default: 50
          description: >-
            The handler parses an integer and clamps it to 1–100. Missing, zero
            or unparseable values use 50.
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            description: >-
              Opaque next_cursor from the previous page. Keep the same account
              and filters.
          description: >-
            Opaque next_cursor from the previous page. Keep the same account and
            filters.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        voice_key:
                          type: string
                          description: >-
                            Stable neutral catalog identifier; use this value
                            when selecting a voice.
                        displayName:
                          type: string
                          description: Display label, not an identifier.
                        gender:
                          type: string
                          description: Catalog gender label.
                          enum:
                            - male
                            - female
                            - unknown
                        nativeLanguage:
                          type:
                            - string
                            - 'null'
                          description: Native language code, when known.
                        locale:
                          type:
                            - string
                            - 'null'
                          description: Locale label, when known.
                        accents:
                          type: array
                          items:
                            type: object
                            properties:
                              language:
                                type:
                                  - string
                                  - 'null'
                                description: >-
                                  Accent language. Null when not supplied in the
                                  catalog.
                              locale:
                                type:
                                  - string
                                  - 'null'
                                description: Accent locale.
                              label:
                                type:
                                  - string
                                  - 'null'
                                description: >-
                                  Neutral accent label. Null when not supplied
                                  in the catalog.
                            required:
                              - language
                              - locale
                              - label
                            description: ''
                            additionalProperties: false
                          description: Available accent labels.
                        languages:
                          type: array
                          items:
                            type: string
                            description: Approved language code.
                          description: Languages approved for this voice.
                        origin:
                          type: string
                          description: >-
                            Standard catalog or a connection belonging to this
                            account.
                          enum:
                            - standard
                            - connected
                        availability:
                          type: string
                          description: Current catalog availability.
                          enum:
                            - active
                            - temporarily_unavailable
                            - unavailable
                        selectable:
                          type: boolean
                          description: >-
                            Whether a new selection is compatible with the
                            supplied agent context.
                        incompatibilityReason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Reason when not selectable: voice_unavailable,
                            voice_temporarily_unavailable,
                            no_approved_languages,
                            native_language_not_in_multi_set or
                            language_not_approved. These are response values,
                            not HTTP errors.
                        previewLanguage:
                          type:
                            - string
                            - 'null'
                          description: Preview language, or null when no preview exists.
                        previewStatus:
                          type: string
                          description: Preview state; none when no preview is available.
                        previewUrl:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Preview URL when present. Null does not imply that
                            the voice is unavailable.
                      required:
                        - voice_key
                        - displayName
                        - gender
                        - nativeLanguage
                        - locale
                        - accents
                        - languages
                        - origin
                        - availability
                        - selectable
                        - incompatibilityReason
                        - previewLanguage
                        - previewStatus
                        - previewUrl
                      description: ''
                      additionalProperties: false
                    description: Visible voices on this page.
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Continuation cursor, or null at the end. No total count is
                      returned.
                required:
                  - data
                  - next_cursor
                description: ''
                additionalProperties: false
              example:
                data:
                  - voice_key: 00000000-0000-4000-8000-000000000001
                    displayName: Example voice
                    gender: female
                    nativeLanguage: en
                    locale: en-GB
                    accents: []
                    languages:
                      - en
                    origin: standard
                    availability: active
                    selectable: true
                    incompatibilityReason: null
                    previewLanguage: null
                    previewStatus: none
                    previewUrl: null
                next_cursor: null
        '400':
          description: >-
            invalid_gender: The gender filter is unsupported. Use male, female
            or unknown. invalid_language: The language filter is invalid or
            multi. Use a supported fixed language code. invalid_agent_language:
            The draft agent language is invalid. Use a supported language code
            or multi. agent_not_found: The agent context was not found for this
            account. Use an owned agent ID or agent_language. invalid_cursor:
            The cursor is malformed or belongs to another account/filter.
            Restart with the intended filters.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '401':
          description: >-
            unauthorized: The credential is missing or invalid. Check the full
            account credential.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '409':
          description: >-
            cursor_expired: The catalog revision changed. Restart at the first
            page and deduplicate by voice_key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '429':
          description: >-
            rate_limit_exceeded: The account request limit was reached. Wait for
            Retry-After. Reconcile uncertain writes before resending.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '503':
          description: >-
            catalog_unavailable: The catalog is not loaded. Retry the read after
            a short wait.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error class.
                      code:
                        type: string
                        description: Stable machine-readable code.
                      message:
                        type: string
                        description: Readable refusal or failure reason.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                        format: uri
                      details:
                        type: object
                        properties: {}
                        description: Additional field, operation or outcome details.
                        additionalProperties: true
                    required:
                      - type
                      - code
                      - message
                      - doc_url
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A
        verified personal dashboard Bearer session may be used where the
        operation documents role-based access.

````

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