> ## 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.

# Import and connect an owned phone number

> Import an owned number through the API or dashboard and verify its saved agent and routing without exposing carrier credentials.

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

Connect an existing eligible number to an active owned agent, then verify both the saved number and its routing outcome.

Input: **Existing owned number** · Assignment: **Active owned agent** · Finish: **Saved state and routing checked**

**The important part**

* Import can replace routing used by another application.
* You can import a new number from your server or connect it in the dashboard. Use the [import fields for your carrier](https://docs.nixflex.com/api-reference/phone-numbers/import.md).
* A pending or uncertain import is not permission to use or re-import the number.

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

## Prepare the connection

Confirm that the number belongs to the intended carrier account and that you may change its routing. Import connects an existing number; it is not a purchase or port. Choose an active agent owned by the same Nixflex account.

Record the current routing through your authorised configuration process before a deliberate change. Import can replace call or SMS routing, so an application previously receiving those events may stop receiving them.

## Use the supported setup path

For a new API connection, send the owned number, its assigned agent and one complete carrier credential set. The [public import reference](https://docs.nixflex.com/api-reference/phone-numbers/import.md) lists the fields for each carrier. The dashboard is also available for a manual connection.

An existing integration may use its securely prepared private import payload unchanged. Keep that file outside source control, logs and shared workspaces, and submit only through an authorised server process. Never put credentials in a URL or a copied command argument.

## Save and verify once

Submit the intended import once, with automatic write retries disabled. Preserve any returned operation information. Read the [owned number](https://docs.nixflex.com/api-reference/phone-numbers/get.md) and check its agent, channel switches and safe state projection. Credentials are write-only.

Verify the real routing through the approved connection test. A saved credential or signature key does not confirm that a later callback was verified. Do not start ordinary traffic while the connection remains pending.

## Reconcile an uncertain result

| Code | Recovery |
| - | - |
| `number_already_imported` | Read the existing number; use PATCH for settings or a deliberate move. |
| `number_operation_pending` | Wait for the existing operation and read its state. |
| `number_cleanup_uncertain` | Keep routing unchanged and ask support to reconcile. |
| `number_save_pending` | Routing may have changed; reconcile completion before another write. |
| `agent_not_owned` or `agent_unavailable` | Choose an active owned agent; do not bypass the account check. |

Do not remove and re-import as recovery. Moving to another agent within the account uses an agent-only number PATCH after current busy work settles.

* [Change routing and overrides](https://docs.nixflex.com/guides/developer/phone-numbers/routing-and-overrides.md)
* [Update credentials or remove a connection](https://docs.nixflex.com/guides/developer/phone-numbers/credentials-and-removal.md)
* [Read the import reference](https://docs.nixflex.com/api-reference/phone-numbers/import.md)


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