curl --request GET \
--url 'https://api.nixflex.com/v1/agents' \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
const response = await fetch('https://api.nixflex.com/v1/agents', {
method: 'GET',
headers: { Authorization: `Bearer ${process.env.NIXFLEX_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
// Handle the private result without logging it.
import os, json
from urllib.request import Request, urlopen
request = Request('https://api.nixflex.com/v1/agents', method='GET',
headers={'Authorization': 'Bearer ' + os.environ['NIXFLEX_API_KEY']})
with urlopen(request, timeout=30) as response:
result = json.load(response)
# Handle the private result without logging it.
$headers = @{ Authorization = "Bearer $env:NIXFLEX_API_KEY" }
$result = Invoke-RestMethod -Method GET -Uri 'https://api.nixflex.com/v1/agents' -Headers $headers -DisableKeepAlive
# Handle $result privately.
[]
Agents
List agents
List Nixflex agents owned by the account. Read their settings and use each agent ID for detail, update or disable requests.
GET
/
agents
curl --request GET \
--url 'https://api.nixflex.com/v1/agents' \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
const response = await fetch('https://api.nixflex.com/v1/agents', {
method: 'GET',
headers: { Authorization: `Bearer ${process.env.NIXFLEX_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
// Handle the private result without logging it.
import os, json
from urllib.request import Request, urlopen
request = Request('https://api.nixflex.com/v1/agents', method='GET',
headers={'Authorization': 'Bearer ' + os.environ['NIXFLEX_API_KEY']})
with urlopen(request, timeout=30) as response:
result = json.load(response)
# Handle the private result without logging it.
$headers = @{ Authorization = "Bearer $env:NIXFLEX_API_KEY" }
$result = Invoke-RestMethod -Method GET -Uri 'https://api.nixflex.com/v1/agents' -Headers $headers -DisableKeepAlive
# Handle $result privately.
[]
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 owned agents, with active agents selected by default.
Do not send a request body.
Returns a bare array of your agents; active only unless status is supplied.
Each item has the same safe settings projection as create/update/get.
Disabled agents can be listed with status=disabled or status=all, or fetched by owned ID.
Carrier auth tokens and unreviewed future columns are never returned.
Numbers must be decimal digits without signs, leading zeros (except 0), fractions,
exponents or trailing text. Repeated/array/object values are rejected.
Invalid query values return
Method: GET ·
Success: 200 ·
Scope: Owning account
The important part
Use the optional status and search filters. Results are a bare array, ordered by created_at DESC then agent_id DESC. Invalid paging or filter queries return 400 invalid_agent_list.
- Use the returned agent IDs for later reads and changes.
- An empty list only describes this account and the requested page.
Authentication
UseAuthorization: Bearer KEY_ID:KEY_SECRET for the owning account. An organisation API key has Owner authority. Personal sessions use the role rules documented in Authentication; do not treat a Member session as an API key.
Request fields
| Field | Type | Required | Default and limits |
|---|---|---|---|
limit (query) | integer | No | Strict decimal integer; no signs, fractions, leading zeros or repeated values. Invalid values return 400 invalid_agent_list; not clamped. Maximum 200 Minimum 1 Default: 100 |
offset (query) | integer | No | Strict decimal integer. Pages are not a snapshot during concurrent writes. Maximum 1000000 Minimum 0 Default: 0 |
status (query) | string | No | Allowed: active, disabled, all Default: “active” |
search (query) | string | No | Case-insensitive literal name/agent_id substring. Trim outer whitespace; empty means no search. Control characters forbidden. No wildcard or regex syntax. At most 200 characters |
| Parameter | Contract |
|---|---|
| limit | Integer 1..200, default 100 |
| offset | Integer 0..1000000, default 0 |
| status | active (default), disabled, all |
| search | Case-insensitive literal substring of name or agent_id; up to 200 characters, no control characters; leading/trailing whitespace trimmed; empty = no search |
400 invalid_agent_list, not silent clamping/defaults.
Use the documented bounds and encode query values.
Order is created_at DESC, agent_id DESC, including tied creation times. Pages are
not a snapshot: concurrent creation, enabling/disabling or edits may shift offsets.
Every filter remains scoped to the authenticated API key. Search cannot change that.
Special characters such as %, _, *, quotes and parentheses are literal, not wildcards.
Example: GET /v1/agents?status=all&search=Support&limit=50&offset=50.
URL-encode search values (the SDKs and CLI do this automatically).
Node: client.agents.list({status:'all',search:'Support',limit:50,offset:50}).
client.agents.iter(200) walks active agents until a short/empty page. Its page size
must be an integer 1..200 (larger sizes throw before HTTP); it does not silently stop
after 200 total agents. At the maximum offset it throws rather than truncate silently.
CLI: nixflex agents list --status all --search Support --limit 50 --offset 50.
Python (sync or await): client.agents.list(status='all', search='Support', limit=50, offset=50).
MCP: list_agents takes the same four fields; no new tool or confirmation needed.
Database failures return 503 agent_store_unavailable, not an empty successful list.
Read automatic knowledge terms
Automatic knowledge terms are read-only. They come from valid, unsuppressed live pieces, keep source spelling, and are ranked by importance, essential identity, repeated support and stable tie-breaks. Generic terms are filtered. The default limit is 80 per agent; platform configuration can choose 0–100. Customer terms take priority and stay first on calls; duplicates and weaker automatic terms are removed to fit the call limits. The returned list is not a promise that every term will be sent on a call. Read automatic keyterms. The optionalknowledge_keyterms array appears when knowledge is enabled and filters against the saved customer terms.
Response fields
200 returns the following shape.
| Field | Type | Meaning |
|---|---|---|
| [] | array | Returned items. |
[].is_active | boolean | Optional saved value. |
[].ai_speaks_first | boolean | Optional saved value. |
[].dynamic_greeting | boolean | Optional saved value. |
[].func_end_call | boolean | Optional saved value. |
[].func_cold_transfer | boolean | Optional saved value. |
[].func_send_sms | boolean | Optional saved value. |
[].record_call | boolean | Optional saved value. |
[].post_call_sms_enabled | boolean | Optional saved value. |
[].incall_sms_enabled | boolean | Optional saved value. |
[].amd_enabled | boolean | Optional saved value. |
[].greet_by_name | boolean | Optional saved value. |
[].remember_callers | boolean | Optional saved value. |
[].require_booking_confirmation | boolean | Saved confirmation setting for supported calendar changes. A new voice booking always requires one combined read-back and one clear yes, even when false. A null number override inherits the agent. |
[].voicemail_leave_enabled | boolean | Optional saved value. |
[].name | string | Optional saved value. |
[].system_prompt | string | Optional saved value. |
[].welcome_message | string | Optional saved value. |
[].voice_id | string or null | Optional saved value. |
[].voice_key | string or null | Optional saved value. |
[].language | string | Optional saved value. |
[].webhook_url | string or null | Optional saved value. |
[].phone_number | string or null | Optional saved value. |
[].llm_model | string | Optional saved value. |
[].fallback_message | string | Optional saved value. |
[].post_call_sms_template | string | Optional saved value. |
[].transfer_number | string or null | Optional saved value. |
[].transfer_whisper | string or null | Optional saved value. |
[].timezone | string | Optional saved value. |
[].boosted_keywords | string or null | Optional saved value. |
[].voicemail_message | string or null | Optional saved value. |
[].temperature | number | Optional saved value. |
[].response_eagerness | integer | Optional saved value. |
[].stt_confidence | number | Optional saved value. |
[].stt_max_silence_ms | integer | Optional saved value. |
[].interruption_sensitivity | integer | Optional saved value. |
[].max_call_duration_seconds | integer or null | Optional saved value. |
[].silence_hangup_seconds | integer or null | Optional saved value. |
[].wait_tag_seconds | integer or null | Optional saved value. |
[].ivr_timeout_seconds | integer | Optional saved value. |
[].voice_speed | number | Optional saved value. |
[].dtmf_enabled | boolean or null | Optional saved value. |
[].response_length | string | Allowed: short, medium, long |
[].transfer_type | string | Allowed: cold, warm |
[].recording_source | string or null | Allowed: provider, nixflex, |
[].data_extraction_fields | array | Optional saved value. |
[].data_extraction_fields[].name | string | Unique; proto, constructor and prototype forbidden. |
[].data_extraction_fields[].type | string | Allowed: text, selector, boolean, number |
[].data_extraction_fields[].description | string | At most 2000 characters |
[].data_extraction_fields[].optional | boolean | Optional saved value. |
[].data_extraction_fields[].format_example | string | At most 2000 characters |
[].data_extraction_fields[].choices | array | Required non-empty for selector; whitespace-only choices rejected. |
[].pickup_delay | integer or null | Optional saved value. |
[].speaking_rate | number or null | Optional saved value. |
[].id | string | Optional saved value. |
[].agent_id | string | Optional saved value. |
[].api_key_id | string | Optional saved value. |
[].created_at | string | Optional saved value. |
[].updated_at | string | Optional saved value. |
[].greeting_language | string or null | Optional saved value. |
[].precall_webhook_url | string or null | Optional saved value. |
[].tester_scenarios | array | Optional saved value. |
[].outbound_transfer_numbers | array | Optional saved value. |
[].outbound_warm_transfer_numbers | array | Optional saved value. |
[].outbound_post_call_sms_templates | array | Optional saved value. |
[].outbound_max_duration_seconds | integer or null | Optional saved value. |
[].outbound_silence_hangup_seconds | integer or null | Optional saved value. |
[].call_retention_days | integer | Allowed: 90, 30, 7, 1, 0 |
[].warnings | array | Optional saved value. |
[].warnings[].code | string | Allowed: unknown_fields |
[].warnings[].fields | array | Optional saved value. |
[].warnings[].message | string | Optional saved value. |
Example request
Production HTTP examples. Replace the placeholder identifiers with resources owned by the account. SetNIXFLEX_API_KEY privately; never print it.
curl --request GET \
--url 'https://api.nixflex.com/v1/agents' \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
const response = await fetch('https://api.nixflex.com/v1/agents', {
method: 'GET',
headers: { Authorization: `Bearer ${process.env.NIXFLEX_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
// Handle the private result without logging it.
import os, json
from urllib.request import Request, urlopen
request = Request('https://api.nixflex.com/v1/agents', method='GET',
headers={'Authorization': 'Bearer ' + os.environ['NIXFLEX_API_KEY']})
with urlopen(request, timeout=30) as response:
result = json.load(response)
# Handle the private result without logging it.
$headers = @{ Authorization = "Bearer $env:NIXFLEX_API_KEY" }
$result = Invoke-RestMethod -Method GET -Uri 'https://api.nixflex.com/v1/agents' -Headers $headers -DisableKeepAlive
# Handle $result privately.
Example response
Illustrative response with placeholder identifiers.[]
Errors
Branch onerror.code, not the wording of error.message. The envelope includes type, code, message, doc_url and details.
| Status / code | What it means | What to do |
|---|---|---|
400 · invalid_agent_list | Invalid agent list query. | Correct the named field or query using the request table before trying again. |
401 · unauthorized | The credential is missing or invalid. | Check the full account credential and API host privately; stop the retry loop. |
| 404 | Not found on your account. | Check the exact owned identifier and current resource state; do not probe another account. |
| 429 | Rate limit exceeded. Honour the Retry-After header. | Wait at least Retry-After and use a bounded read retry. |
| 500 | Server error. | Keep the last result unknown and use bounded read retries; do not replace it with empty data. |
| 503 | Agent storage or catalog unavailable; check before retrying a write. | Keep the last result unknown and use bounded read retries; do not replace it with empty data. |
Retry and idempotency
Use bounded retries only for temporary read failures. Keep the same filters while paging. See retry rules.Related endpoints
Authorizations
Query Parameters
Response
Success