Assign a number to a sub-account
assign_number_to_subaccountMove a phone number from a Vobiz main account to a sub-account, so the sub-account uses it for calls and the main account no longer does.
Instructions
Move a number from this Vobiz account's pool to one of its sub-accounts (POST /account/{id}/numbers/{e164}/assign-subaccount). The sub-account then uses the number for its calls and the main account no longer does. The undo is unassign_number_from_subaccount. To find sub-account Auth IDs use list_sub_accounts; to give the number up entirely use release_phone_number. Gated by VOBIZ_ENABLE_PROVISIONING and confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true, set only after the user explicitly approved: assigning this number to this sub-account. If your client supports MCP elicitation, the server asks the user to approve directly and this flag is not relied on; otherwise it is your attestation that the user approved. | |
| phone_number | Yes | The number to move, E.164; it must belong to this main account. | |
| sub_account_id | Yes | Auth ID (SA_...) of the sub-account that will own the number, from list_sub_accounts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | true on success; false (with error and message) when the tool failed. | |
| assigned | No | true once the move is done. | |
| http_status | No | HTTP status Vobiz answered with. | |
| phone_number | No | The number, E.164. | |
| sub_account_id | No | The sub-account that now owns the number. | |
| backend_message | No | Message from Vobiz about the operation, or null. |