> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update number credentials through private setup

> Prepare private carrier credentials for the MCP server’s number-update tool and handle confirmation, missing setup and uncertain routing results.

**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](https://docs.nixflex.com/ai-rules.md#phone-numbers)

Use a privately configured carrier pair to update an existing number without putting secret values in chat or tool arguments.

Building an app? [Developer version](https://docs.nixflex.com/guides/developer/phone-numbers/credentials-and-removal.md).

Package: **MCP 0.5.0 or later** · Tool input: **Number, provider, confirm** · Secrets: **Private process environment** · Carrier switch: **Not supported**

**The important part**

* The replacement carrier account must contain the exact number and match its current carrier.
* The tool accepts only `phone_number`, `provider` and `confirm`; never add secrets to those arguments.
* Private credentials are read only after `confirm: true`; missing configuration sends no request.
* An unknown routing outcome needs checking before retry. A pending-save completion uses exactly the same private details.

## See how it works

Illustrative conversation between colleagues.

**Owner**\
Can the assistant update this number with our replacement carrier credentials?**Administrator**\
I will supply the selected pair privately to the MCP process, without showing it in chat.**Owner**\
Then show the exact number and provider for approval. Do not retry automatically if the result is unclear.

## Before you start

Use MCP 0.5.0 with 97 tools with `update_phone_number_credentials`. Have the local client administrator privately configure only the number’s current carrier pair. The tool uses organisation authority; dashboard roles do not narrow the shared key.

## Complete the task

**1. Choose the existing number and carrier**

Inspect the owned number and confirm its current provider. This action keeps its agent, instructions, switches, integrations and history; it does not buy, reimport or switch the number to another carrier.

**2. Supply the selected pair privately**

For `provider: twilio`, the process needs `NIXFLEX_TWILIO_SID` and `NIXFLEX_TWILIO_TOKEN`. For `provider: telnyx`, it needs `NIXFLEX_TELNYX_API_KEY` and `NIXFLEX_TELNYX_CONNECTION_ID`. These are variable names, not values to paste. Use the private launcher or secret manager for your client.

**3. Check the client’s configuration route**

Codex can forward the selected variable names; Cursor can use environment references. Follow the relevant client guide. The Desktop bundle exposes only the Nixflex API-key field, with no carrier-secret fields. If its host cannot privately supply the pair, use the supported dashboard, CLI or SDK workflow.

**4. Review and confirm one update**

Show the exact number and current provider to the person approving the change. Call `update_phone_number_credentials` with those fields and `confirm: true`. Keep client approval enabled and never ask the assistant to inspect or print the environment.

**5. Read the result and complete the stated follow-up**

The server still checks number ownership, account state and pending operations. A replacement can change routing and may require fresh number verification. Follow the returned result, verify the intended channels and avoid automatic retries.

## Read the result

| What you see | What it means | What to do |
| - | - | - |
| `confirmation_required`, `sent: false` | The update was not sent. | Review the number and change before confirmation. |
| `credentials_not_configured` | The selected private pair is missing; no request was sent. | Have the administrator fix private setup without exposing values. |
| `carrier_outcome_unknown` | The carrier outcome is uncertain. | Contact support before retrying. |
| `credential_save_pending` | A pending save permits a specific completion path. | Complete manually with exactly the same private details. |
| Update confirmed | The existing number has a saved update result. | Follow verification guidance and test the channels you use. |

## Next

* [Configure Codex’s private variable forwarding](https://docs.nixflex.com/ai-tools/codex.md#optional-private-number-credential-updates)
* [Configure Cursor’s environment references](https://docs.nixflex.com/ai-tools/cursor.md)
* [Update carrier details in the dashboard](https://docs.nixflex.com/guides/business/phone-numbers/update-carrier-details.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.