Skip to main content
PATCH
FIXED · account A number belongs to an account and agent. On a shared agent always pass that customer’s eligible from_number. NOT OFFERED → do this instead · number Fixed welcome_message, language, general timezone and pickup delay belong to the agent. Use Dynamic greeting and the number’s custom_prompt for its opening. Split agents for different fixed settings. YOU CAN CHANGE · number PATCH fields below. Clearing depends on the field. Null record_call or require_booking_confirmation inherits. Use the number’s voicemail controls. calcom_timezone_override, custom_prompt, voice_id, sms_reply_enabled, sms_prompt, web_prompt, speaking_rate, dtmf_enabled, require_booking_confirmation, record_call, recording_source, voicemail_leave_enabled, voicemail_message. SCOPE · number Import an owned carrier number, assign an agent, edit its channels or remove its Nixflex connection. 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 per-number settings, or move the number to another active agent on the same account. A move and a settings update are separate requests.
Method: PATCH ·
Success: 200 ·
Scope: Owning account
The important part
  • Voice selection. To override the agent for this number, send the four voice pair fields together. To return to a saved agent pair, send {"voice_pair_inherit":true} without a competing pair.
  • Change only the fields you intend; omission preserves saved values.
  • Read back the number and check its effective agent assignment.
The stored website voice switch is phone_numbers.web_calls_enabled. These three requests write that same value: PATCH /v1/phone-numbers/{phoneNumber} with web_calls_enabled, PATCH /v1/agent-web/{number} with settings.web_calls_enabled, and PUT /v1/integrations/web-calls/number/{phoneNumber} with enabled. The number’s web agent must also allow website access. Saving monitor_enabled controls permission. Live listening and takeover are dashboard operations. A public live-monitor control API is not offered.

Authentication

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

Request fields

Send a JSON object. For a move request, the body is instead exactly one field: Omitted settings remain unchanged. The six strict switches below accept only JSON booleans; sms_reply_enabled and older override fields retain their documented legacy coercion. Use canonical snake_case names. A saved web_calls_enabled value does not confirm that all effective web-call prerequisites are satisfied.

Number controls

The seven switches cover inbound, outbound, SMS reply, web agent, web calls, web functions and saved monitor permission. Off switches can prevent new work without ending an existing call. Read the number to confirm saved and effective state.

Move to another agent

Send only { "agent_id": "agent_TARGET" }. The move preserves number-specific settings and history and does not change carrier routing. New work uses the target agent. A busy number is refused. Repeating the same settled assignment returns changed: false. The move response contains agent_name and changed, while a settings response contains saved settings. Read web_calls_effective from the number detail endpoint to check effective website access. Saved permission does not start a monitor session. Never delete and re-import a number just to move it between agents.

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_PHONE_NUMBER 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 PATCH. Read the number after an uncertain settings write or move. Do not change routing to compensate for an unconfirmed move.

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

phoneNumber
string
required

Business number. Use E.164 and URL-encode the leading + as %2B.

Body

application/json

Partial settings update; at least one recognised setting is required. Unknown-only input is refused.

inbound_enabled
boolean

Saved channel switch. Must be a JSON boolean. Omitted stays unchanged.

outbound_enabled
boolean

Saved channel switch. Must be a JSON boolean. Omitted stays unchanged.

monitor_enabled
boolean

Saved monitor permission; not a live listener control. Must be a JSON boolean.

web_calls_enabled
boolean

Saved channel switch. Must be a JSON boolean. Omitted stays unchanged.

web_agent_enabled
boolean

Saved channel switch. Must be a JSON boolean. Omitted stays unchanged.

web_functions_enabled
boolean

Saved channel switch. Must be a JSON boolean. Omitted stays unchanged.

custom_prompt
string | null

Number prompt override. Null or empty clears to null.

Maximum string length: 8000
voice_id
string | null

Existing voice alias override. Trimmed; null or empty clears to null. No route-level length cap is declared.

sms_reply_enabled
boolean

SMS auto-reply switch. The string true is also accepted; use JSON booleans.

sms_prompt
string | null

SMS prompt override. Null or empty stores an empty string.

Maximum string length: 20000
web_prompt
string | null

Web prompt override. Null or empty stores an empty string. Limit is 16,000 UTF-16 code units.

Maximum string length: 16000
speaking_rate

Number values are clamped to 0.5–1.5. Null or an empty string clears to inheritance; use 1 for normal speed.

dtmf_enabled
boolean | null

Keypad override. Null or empty clears to inheritance; the string true is also accepted.

require_booking_confirmation
boolean | null

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.

record_call
boolean | null

Recording override; null inherits the agent.

recording_source
enum<string> | null

provider or nixflex; null or empty inherits the agent. Case and surrounding whitespace are normalised.

Available options:
provider,
nixflex,
null,
voicemail_leave_enabled
boolean | null

Number-specific voicemail setting; null is unset. When enabled, the merged message must be nonblank.

voicemail_message
string | null

Number-specific message. Null or empty clears to null.

Maximum string length: 2000
voice_key
string

Main catalogue voice key. Send all four voice pair fields together.

voice_route_key
string | null

Selected route for the main voice.

backup_voice_key
string

Backup catalogue voice key. Required when saving a pair.

backup_voice_route_key
string | null

Selected route for the backup voice.

voice_pair_inherit
boolean

Set true to inherit the agent’s saved pair. Omit competing pair values.

Response

OK

phone_number
object
required

Saved settings projection.