Skip to main content
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 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.

Choose the operation

Use update credentials when the connection remains wanted but its carrier credentials change. Use remove number only when disconnecting is the actual intention. Moving agents is a separate number PATCH. 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