curl --request GET \
--url "https://api.nixflex.com/v1/voices/$NXF_VOICE_KEY?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.get(process.env.NXF_VOICE_KEY, {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.get(os.environ["NXF_VOICE_KEY"], agent_language="multi")
# AsyncNixflex supports the same calls with await (and async with).
nixflex voices get "$NXF_VOICE_KEY" --agent-language multi --base-url https://api.nixflex.com --json
{
"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
}
Voices
Get a voice
Read a voice visible to the Nixflex account and its compatibility with an optional agent language. A successful read does not guarantee compatibility.
GET
/
voices
/
{voice_key}
curl --request GET \
--url "https://api.nixflex.com/v1/voices/$NXF_VOICE_KEY?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.get(process.env.NXF_VOICE_KEY, {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.get(os.environ["NXF_VOICE_KEY"], agent_language="multi")
# AsyncNixflex supports the same calls with await (and async with).
nixflex voices get "$NXF_VOICE_KEY" --agent-language multi --base-url https://api.nixflex.com --json
{
"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
}
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
Read a voice visible to this account and its compatibility with an optional agent language. A successful read can return selectable: false; read the reason before using the voice.
Do not send a request body.
agent_language takes precedence over agent_id. Without either, selectable reflects availability and approved languages, not a particular agent. A fixed-language agent needs approval for that language; a multi-language agent uses its server-derived language set. Preview absence is separate from availability. Accent language, locale and label can each be null; keep unknown metadata as null.
Method: GET ·
Success: 200 ·
Scope: Owning account
The important part
- Keep the exact voice key from the catalogue.
- A missing or unavailable voice needs a deliberate alternative, not a guessed key.
Authentication
SendAuthorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential.
Request fields
| Field | Type | Required | Default | Limits and meaning |
|---|---|---|---|---|
voice_key (path) | string | Yes | None | Voice key returned by List voices. Lookup is case-insensitive. |
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. |
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 |
|---|---|---|
voice_key | string | Stable neutral catalog identifier; use this value when selecting a voice. |
displayName | string | Display label, not an identifier. |
gender | string | Catalog gender label. Allowed: "male", "female", "unknown". |
nativeLanguage | string or null | Native language code, when known. |
locale | string or null | Locale label, when known. |
accents | array of object | Available accent labels. |
accents[].language | string or null | Accent language. Null when not supplied in the catalog. |
accents[].locale | string or null | Accent locale. |
accents[].label | string or null | Neutral accent label. Null when not supplied in the catalog. |
languages | array of string | Languages approved for this voice. |
origin | string | Standard catalog or a connection belonging to this account. Allowed: "standard", "connected". |
availability | string | Current catalog availability. Allowed: "active", "temporarily_unavailable", "unavailable". |
selectable | boolean | Whether a new selection is compatible with the supplied agent context. |
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. |
previewLanguage | string or null | Preview language, or null when no preview exists. |
previewStatus | string | Preview state; none when no preview is available. |
previewUrl | string or null | Preview URL when present. Null does not imply that the voice is unavailable. |
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. Set NXF_VOICE_KEY to the intended account-owned identifiers or approved recipient before running.
curl --request GET \
--url "https://api.nixflex.com/v1/voices/$NXF_VOICE_KEY?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.get(process.env.NXF_VOICE_KEY, {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.get(os.environ["NXF_VOICE_KEY"], agent_language="multi")
# AsyncNixflex supports the same calls with await (and async with).
nixflex voices get "$NXF_VOICE_KEY" --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.
{
"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
}
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 |
|---|---|---|---|
| 404 | voice_not_found | The voice is unknown or not visible to this account. | Select a key from this account’s catalog. |
| 400 | invalid_agent_language | The agent language context is invalid. | Use a supported code or multi. |
| 400 | agent_not_found | The supplied agent context could not be read for this account. | Use an owned agent ID or a draft language. |
| 503 | catalog_unavailable | The catalog is not loaded. | Retry the read after recovery. |
| 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. |
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
Authorizations
Path Parameters
Query Parameters
Response
OK