Skip to main content
DELETE
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 Disconnect an owned number from Nixflex and clear the routing managed by this import. This does not release the number from its carrier account or end that account’s charges.
Method: DELETE ·
Success: 200 ·
Scope: Owning account
The important part
  • Removal changes the number connection; check the exact target first.
  • Tracked cleanup may remain pending after the request is accepted.

Authentication

Send Authorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential.

Request fields

Do not send a request body. No request body is required. Use the exact owned business number and URL-encode the leading +. Removal can affect new calls and messages using this number. Do not use it as a request to erase all call history, account data, or copies in external storage. After an unclear removal write, the engine can make one exact-resource read. Only explicit proof that all routing and application/trunk overrides are empty can finish that same removal. A missing resource (404), changed identity, missing routing fields, remaining routing or read failure is not conclusive. No second carrier write is sent by this recovery check.

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 repeat removal. Initial unconfirmed cleanup returns 503 number_cleanup_uncertain; an exact retry while still unclear returns 409 with the same code. A conflicting operation returns 409 number_operation_pending. Confirmed carrier change with database completion unknown returns 503 number_save_pending; an exact deliberate retry resumes completion without another carrier write. Keep unknown operations held and reconcile through support; do not delete and reimport to recover.

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.

Response

OK

phone_number
object
required