GET /v1/organisation/outbound-settings. Where available, the Owner or organisation API key can PATCH the same path with require_from_number_for_shared_agent. Campaigns need a reviewed sender. If it changes, choose and confirm again.
Read the compact AI rules
Reconcile a call launch from its saved request or call ID before deciding whether another action is appropriate.
Guide: API reference ·
Topic: Outcomes and retries
The important part
These examples require the documented minimum client versions.
- A 201 launch reply means initiated, not connected or completed.
- Use the saved request UUID to reconcile pending or unknown launches without redialling.
Single-call variables
The HTTP field isdynamic_vars. Use double braces in the prompt: {{name}}.
dynamic_vars keyword; use only one alias.
CLI --body/--set may use either alias, but cannot combine them or combine one
with --var. Ambiguous inputs fail locally before any request. Empty maps and
empty string values are preserved. Campaign recipient variables is a separate,
unchanged contract; do not rename it to dynamic_vars.
Supply every referenced value; enabled missing-detail checks may refuse incomplete
calls. Per-call purpose/variables can become part of stored prompts and history.
They are not guaranteed to disappear or be stored nowhere.
One attempt for a change
Python sync and async now use the same no-automatic-mutation-retry rule as Node:- GET: bounded retry on network failure, timeout, 429 and 5xx; default one
retry,
max_retries=0/maxRetries=0disables it. Retry-After waits cap at 30s. - POST/PUT/PATCH/DELETE: one attempt, including 429, 5xx, disconnect and timeout.
- Lost/malformed change reply, unproved 5xx or redirect:
NixflexOutcomeUnknownError,outcome='unknown',safe_to_retry=false. A call/change may already have happened. - A 429 remains a rate-limit error. Its delay is not permission to resend a change.
- Explicit whole-operation proof (
outcome=not_sent,sent=false,charged=false,safe_to_retry=true) stays distinct, but the SDK still does not resend it.
NixflexServerError for existing catch compatibility.
Catch the specific unknown type before a general server error. Status, request ID
and original error details remain available when a response supplied them.
Do not put a blind retry loop around the SDK, CLI or MCP tool. If a call_id is
known, read it; otherwise check recent history and the request ID with support.
An empty history page does not confirm nothing was sent. This is not an exactly-once
server/idempotency guarantee. MCP retains its existing no-retry mutation wrapper
around pinned SDK 0.8.0; the variable fix works without publishing a new SDK first.
Node history iteration and MCP summaries
for await (const call of client.calls.iter(200)) { ... } reads beyond 200 rows.
The iterator accepts whole-number page sizes 1–200 only. Oversized, zero, negative,
fractional and nonnumeric values throw RangeError before HTTP. A full final page
requires one last empty read; a short page stops immediately. Offset pages are not
a snapshot and can shift if history changes during iteration.
MCP summaries read call_direction, then compatible call_type/older direction.
Unrecognised/missing direction is null, not guessed inbound. Zero duration, false
success and null analysis are not invented as positive results. Summary lists
exclude transcripts, prompts and recording URLs; use get_call for detail.
Full history filters, recording availability and billing breakdown are later batches.
Do not rely on the current CLI/MCP agent_id call-list argument: the API does not
apply that filter yet. No additional live control or tester capability is added.
Reconcile an outbound request UUID
Save one UUID before the first request for an intended call. Persist it with the request payload so a process restart cannot accidentally create a new intent. Supply it as the JSON fieldrequest_id, not an Idempotency-Key header.
A 201 can also include
request_status:"unconfirmed" and safe_to_retry:false: the call ID is known even though the final journal acknowledgement was lost. Never redial it. A new UUID is a new explicit call intent. Requests without request_id retain their existing behaviour and have no launch replay protection.
Read outbound request status. A 404 or an empty history page does not confirm that an uncertain call was never placed.