Skip to main content
PUT
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 Change selected settings on an account-owned agent. Although the method is PUT, this is a partial update: omitted fields keep their saved values. Creation defaults are not reapplied.
Method: PUT ·
Success: 200 ·
Scope: Owning account
The important part
  • Omitted fields keep their stored values; send only the intended change.
  • Read the agent after an uncertain response before repeating the update.

Authentication

Send Authorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential. Send Content-Type: application/json.

Request fields

Partial update. Omitted fields remain unchanged; create defaults are never reapplied. At least one recognised field is required. Unknown fields alongside recognised fields produce warnings; unknown-only input is refused. Send JSON booleans and numbers, not strings. A null value is allowed only where stated. Changing voice_key, voice_id or language revalidates the resulting voice selection; use one identifier or a matching pair. A language-only update rechecks the existing voice. Enabling voicemail is checked against the merged saved/request state. Unknown fields are ignored only alongside a supported field and appear in warnings. The system_prompt limit is 3,000 tokens with knowledge enabled, otherwise 16,000 characters. A 100,000-character parsing ceiling is not the accepted prompt size. Extraction definitions reject unknown nested fields and reserve proto, constructor and prototype. Compatibility fields remain stored settings and do not necessarily select runtime behaviour. Customer keyterms: at most 20 nonempty comma-separated terms, at most 50 Unicode characters per trimmed term, and a conservative 450-byte total safety budget for changed values. The text field also has a 2,000-character ceiling. Empty entries do not count; repeated nonempty terms count separately toward 20. Null clears the list. On update, omitted values are retained. An exact unchanged saved string is kept even if it exceeds the newer count, term-length, size or text limits. Any change must meet all current limits. The safety byte count normalizes each trimmed term (NFKD, removes combining marks, lowercases, removes whitespace) to detect duplicates. Each unique normalized term costs the UTF-8 bytes of its first trimmed original spelling plus 4 bytes. Empty and duplicate normalized terms add no bytes. This conservative count is not a tokenizer. Term length counts Unicode code points, not UTF-16 code units. 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. More than 20 changed terms returns 400 invalid_agent_field with message “Keep up to 20 words - remove some to save” and details.field “boosted_keywords”. The count check runs before term-length and safety-byte checks. DELETE switches is_active to false; it does not remove the record. GET by owned agent ID still returns the inactive agent. The default active-only list omits it; status=disabled or status=all includes it.

Response fields

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

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_AGENT_ID to the intended account-owned identifiers or approved recipient before running.

Example response

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

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.

Retry and idempotency

Never automatically retry PUT. Read the agent after a timeout and compare the fields you intended to change. Repeating a setting is not a guarantee that audit, validation, or retention effects are absent.

Authorizations

Authorization
string
header
required

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.

Path Parameters

id
string
required

The account-owned identifier returned by the API.

Body

application/json

Partial update. Omitted fields remain unchanged; create defaults are never reapplied. At least one recognised field is required. Unknown fields alongside recognised fields produce warnings; unknown-only input is refused.

Partial update. Omitted fields remain unchanged; create defaults are never reapplied. At least one recognised field is required. Unknown fields alongside recognised fields produce warnings; unknown-only input is refused.

is_active
boolean

Whether the agent is active.

ai_speaks_first
boolean

Let the agent speak first.

dynamic_greeting
boolean

Generate a greeting for the conversation.

func_end_call
boolean

Voice silence/duration timer gate, not a blanket prohibition on END_CALL.

func_cold_transfer
boolean

Compatibility-only; not the effective transfer permission.

func_send_sms
boolean

Compatibility-only; use incall_sms_enabled for in-call SMS.

record_call
boolean

Agent recording default; an explicit number true/false wins.

post_call_sms_enabled
boolean

Enable a post-call SMS where supported.

incall_sms_enabled
boolean

Allow in-call SMS under the effective number policy.

amd_enabled
boolean

Enable answering-machine detection where supported.

greet_by_name
boolean

Inbound name-greeting hint, independent of remembering callers; not global anonymization.

remember_callers
boolean

Phone caller context/learning; false does not erase saved records or website visitor history.

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

Requires a nonblank voicemail_message when true.

name
string

Up to 200 characters.

Maximum string length: 200
system_prompt
string

Up to 3,000 tokens when knowledge prompt checks are enabled; otherwise up to 16,000 characters. The 100,000-character input ceiling is for counting, not the accepted prompt size.

Maximum string length: 100000
welcome_message
string

Up to 16,000 characters. Static greeting when dynamic greeting is off.

Maximum string length: 16000
voice_id
string | null

Older catalogue alias, up to 200 characters; prefer voice_key. If both voice fields are supplied, they must identify the same voice.

Maximum string length: 200
voice_key
string | null

Catalog identifier, up to 36 characters. Prefer this to a voice alias.

Maximum string length: 36
language
string

Supported language code or multi, up to 32 characters; empty uses multi. The selected voice must support the language.

Maximum string length: 32
webhook_url
string | null

HTTP(S) URL without embedded credentials, up to 2,048 characters; empty is accepted.

Maximum string length: 2048
phone_number
string | null

E.164, null or empty, up to 32 characters. Does not import or attach a number.

Maximum string length: 32
llm_model
string

Compatibility-only; does not select the runtime model.

Maximum string length: 200
fallback_message
string

Compatibility-only; no current runtime consumer.

Maximum string length: 16000
post_call_sms_template
string

No endpoint default; supply a template when enabling post-call SMS.

Maximum string length: 600
transfer_number
string | null

E.164 number, null or empty; text limit 32 characters.

Maximum string length: 32
transfer_whisper
string | null

Up to 16,000 characters.

Maximum string length: 16000
timezone
string

Nonempty IANA time zone. When omitted, use the valid account time zone or UTC.

Maximum string length: 100
boosted_keywords
string | null

Customer keyterms: at most 20 nonempty comma-separated terms, at most 50 Unicode characters per trimmed term, and a conservative 450-byte total safety budget for changed values. The text field also has a 2,000-character ceiling. Empty entries do not count; repeated nonempty terms count separately toward 20. Null clears the list. On update, omitted values are retained. An exact unchanged saved string is kept even if it exceeds the newer count, term-length, size or text limits. Any change must meet all current limits.

Example:

"Nixflex, Sam, appointment"

voicemail_message
string | null

Required and nonblank when voicemail_leave_enabled is true; no endpoint default.

Maximum string length: 600
temperature
number

0–0.7 inclusive.

Required range: 0 <= x <= 0.7
response_eagerness
integer

Response delay, 0–1,000 milliseconds.

Required range: 0 <= x <= 1000
stt_confidence
number

0–1; stored compatibility setting.

Required range: 0 <= x <= 1
stt_max_silence_ms
integer

0–2,147,483,647 milliseconds; not response delay.

Required range: 0 <= x <= 2147483647
interruption_sensitivity
integer

Stored compatibility value; does not tune current interruption decisions.

Required range: 0 <= x <= 100
max_call_duration_seconds
integer | null

Null uses the runtime fallback; it does not mean unlimited.

Required range: 1 <= x <= 2147483
silence_hangup_seconds
integer | null

Null uses the runtime fallback.

Required range: 1 <= x <= 2147483
wait_tag_seconds
integer | null

30–120 seconds for a wait tag; null leaves it unset.

Required range: 30 <= x <= 120
ivr_timeout_seconds
integer

1–1,800 seconds for phone-menu navigation.

Required range: 1 <= x <= 1800
voice_speed
number

Compatibility-only; use speaking_rate.

Required range: 0.01 <= x <= 100
speaking_rate

Existing numeric clamp to 0.5..1.5. Null or empty clears.

pickup_delay
any

Legacy write-through value with no API type or range enforcement. Omit it to retain the current pickup delay.

dtmf_enabled
boolean | null

Keypad input; null leaves the preference unset.

response_length
enum<string>

short, medium or long.

Available options:
short,
medium,
long
transfer_type
enum<string>

cold or warm.

Available options:
cold,
warm
recording_source
string | null

provider or nixflex (case/space normalized); null/empty clears to provider.

data_extraction_fields
object[]

Up to 50 definitions, described below.

Maximum array length: 50
call_retention_days
enum<integer>

Update-only retention in days. Zero means delete eligible content after each call; this is not immediate proof of erasure.

Available options:
90,
30,
7,
1,
0

Response

OK

One safe projection for create, update, get and list. No secrets or automatic future-column exposure.

is_active
boolean
ai_speaks_first
boolean
dynamic_greeting
boolean
func_end_call
boolean
func_cold_transfer
boolean
func_send_sms
boolean
record_call
boolean
post_call_sms_enabled
boolean
incall_sms_enabled
boolean
amd_enabled
boolean
greet_by_name
boolean
remember_callers
boolean
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
name
string
system_prompt
string
welcome_message
string
voice_id
string | null
voice_key
string | null
language
string
webhook_url
string | null
phone_number
string | null
llm_model
string
fallback_message
string
post_call_sms_template
string
transfer_number
string | null
transfer_whisper
string | null
timezone
string
boosted_keywords
string | null

Customer keyterms: at most 20 nonempty comma-separated terms, at most 50 Unicode characters per trimmed term, and a conservative 450-byte total safety budget for changed values. The text field also has a 2,000-character ceiling. Empty entries do not count; repeated nonempty terms count separately toward 20. Null clears the list. On update, omitted values are retained. An exact unchanged saved string is kept even if it exceeds the newer count, term-length, size or text limits. Any change must meet all current limits.

voicemail_message
string | null
temperature
number
response_eagerness
integer
stt_confidence
number
stt_max_silence_ms
integer
interruption_sensitivity
integer
max_call_duration_seconds
integer | null
silence_hangup_seconds
integer | null
wait_tag_seconds
integer | null
ivr_timeout_seconds
integer
voice_speed
number
dtmf_enabled
boolean | null
response_length
enum<string>
Available options:
short,
medium,
long
transfer_type
enum<string>
Available options:
cold,
warm
recording_source
enum<string> | null
Available options:
provider,
nixflex,
null
data_extraction_fields
object[]
pickup_delay
integer | null
speaking_rate
number | null
id
string
read-only
agent_id
string
read-only
api_key_id
string
read-only
created_at
string
read-only
updated_at
string
read-only
greeting_language
string | null
read-only
precall_webhook_url
string | null
read-only
tester_scenarios
any

Stored compatibility metadata; not a create input.

outbound_transfer_numbers
string[] | null
read-only
outbound_warm_transfer_numbers
string[] | null
read-only
outbound_post_call_sms_templates
any

Stored compatibility message template data; not a create input.

outbound_max_duration_seconds
integer | null
read-only
outbound_silence_hangup_seconds
integer | null
read-only
call_retention_days
enum<integer> | null
Available options:
90,
30,
7,
1,
0,
null
warnings
object[]