> ## 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 or remove a connection

> Replace carrier credentials in place, preserve number settings and reconcile uncertain routing or removal without deleting and re-importing.

**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)

Replace a number’s carrier credentials in place, or remove its connection deliberately while tracking external routing cleanup.

Credentials: **Write-only replacement** · Scope: **Existing carrier and number** · Removal: **Separate cleanup operation**

**The important part**

* Credential updates keep the existing number and its settings; they do not switch carrier.
* Use one supported credential pair and keep the request private.
* An uncertain routing or removal result requires reconciliation, not automatic replay.

[Business guide](https://docs.nixflex.com/guides/business/phone-numbers.md) · [API reference](https://docs.nixflex.com/api-reference/introduction.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Choose the operation

Use [update credentials](https://docs.nixflex.com/api-reference/phone-numbers/credentials.md) when the connection remains wanted but its carrier credentials change. Use [remove number](https://docs.nixflex.com/api-reference/phone-numbers/delete.md) only when disconnecting is the actual intention. Moving agents is a separate [number PATCH](https://docs.nixflex.com/guides/developer/phone-numbers/routing-and-overrides.md).

The credential endpoint accepts exactly the pair documented for the existing carrier. It refuses mixed pairs, extra settings, agent fields and carrier switches. Keep the credential payload in your private server secret process; do not copy it into logs or shell arguments.

## Replace credentials in place

Verification checks ownership of the exact number before routing is changed. The number ID, agent assignment, prompts, channel switches, integrations and history remain. A successful response identifies the number and carrier with `updated:true`; it does not return a secret or a full resource snapshot.

Changed credential identity can clear callback-verification evidence while retaining a saved public key. Follow the existing fresh test-call and approval flow where required. Identical current credentials retain verification only when the resource also matches.

After a lost response, read current state and reconcile the existing operation. Stop automatic retries on `carrier_outcome_unknown`. A `credential_save_pending` result permits only deliberate completion with identical input after review. Do not delete and re-import to recover from a credential update.

## Remove deliberately

Removal has external routing cleanup and local completion steps. It does not guarantee cancellation of carrier rental or deletion of a separate carrier account. Check the current operation state and authorised cleanup path before submitting once.

An initial unconfirmed cleanup can return 503 `number_cleanup_uncertain`; an exact retry while still uncertain returns 409 with the same code. A conflicting operation returns `number_operation_pending`. Confirmed carrier change with database completion unknown can return `number_save_pending`; a deliberate exact retry resumes completion without another carrier write. This is not permission for an automatic retry loop.

## Decide from the actual result

| Code or result | Next step |
| - | - |
| `carrier_mismatch` | Use credentials for the existing carrier; this route does not migrate it. |
| `invalid_credentials` | Correct the private pair and verify its account ownership. |
| `number_cleanup_credentials_missing` | Restore the supported cleanup credentials before removal. |
| `number_cleanup_uncertain` | Preserve the pending operation and seek reconciliation. |
| `number_save_pending` | Reconcile local completion with the same intended operation. |
| Confirmed removal | Verify the resulting connection state; handle external rental separately. |

* [Read exact credential fields](https://docs.nixflex.com/api-reference/phone-numbers/credentials.md)
* [Read removal errors and retry rules](https://docs.nixflex.com/api-reference/phone-numbers/delete.md)
* [Move an owned number between agents](https://docs.nixflex.com/guides/developer/phone-numbers/routing-and-overrides.md)

## Related dashboard and AI tasks

* [Update number credentials through private setup](https://docs.nixflex.com/ai-tools/number-credentials.md)
* [Update a number’s carrier connection details](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.