curl --request GET \
--url "https://api.nixflex.com/v1/voices?limit=25&language=en&agent_language=multi" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
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.
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).
nixflex voices list --limit 25 --language en --agent-language multi --base-url https://api.nixflex.com --json
{
"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
}
Voices
List voices
List voices visible to the Nixflex account. Check compatibility for the optional agent context before choosing a voice.
GET
/
voices
curl --request GET \
--url "https://api.nixflex.com/v1/voices?limit=25&language=en&agent_language=multi" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
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.
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).
nixflex voices list --limit 25 --language en --agent-language multi --base-url https://api.nixflex.com --json
{
"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
}
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
List the voices visible to this account. Compatibility is calculated for the optional agent context; catalog availability can change before a call.
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.
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.
Authentication
SendAuthorization: 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. |
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.
curl --request GET \
--url "https://api.nixflex.com/v1/voices?limit=25&language=en&agent_language=multi" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
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.
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).
nixflex voices list --limit 25 --language en --agent-language multi --base-url https://api.nixflex.com --json
Example response
Illustrative200 response. Identifiers and values are examples; some optional or compatibility fields are omitted.
{
"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 anerror 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 | The gender filter is unsupported. | Use male, female or unknown. |
| 400 | invalid_language | The language filter is invalid or multi. | Use a supported fixed language code. |
| 400 | invalid_agent_language | The draft agent language is invalid. | Use a supported language code or multi. |
| 400 | agent_not_found | The agent context was not found for this account. | Use an owned agent ID or agent_language. |
| 400 | invalid_cursor | The cursor is malformed or belongs to another account/filter. | Restart with the intended filters. |
| 409 | cursor_expired | The catalog revision changed. | Restart at the first page and deduplicate by voice_key. |
| 503 | catalog_unavailable | The catalog is not loaded. | Retry the read after a short wait. |
| 401 | unauthorized | The credential is missing or invalid. | Check the full account credential. |
| 429 | rate_limit_exceeded | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |