Manage phone numbers and number pools
manage_numberChange a phone number's or number pool's call and SMS settings, rename a number, pool or caller ID, generate or reset its welcome and voicemail greetings, mark a number dispatch, create a pool, or add/remove a number from a pool. Read ids and current settings with get_numbers first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name (max 255), for rename and create_pool. | |
| text | No | What the greeting says (max 1000), for generate_welcome / generate_voicemail. | |
| action | Yes | update_settings: change the given settings (number_id or number_pool_id; a pool applies them to every member). rename: set name (number_id, number_pool_id or callerid_id). reset_welcome: remove the custom welcome audio. generate_welcome / generate_voicemail: synthesize text with voice_id. set_dispatch: set enabled. create_pool: name, rotation_mode, number_ids, team_ids. add_to_pool / remove_from_pool: number_pool_id and number_id. | |
| changes | No | update_settings only. Field → new value, for the fields that change: is_record, is_whispertext (call screening), is_welcome, is_sms_missed_call (booleans); routing (team|agent|ivr); call_mode (roundrobin|simultaneous|simultaneous_all); team_id, fallback_id, voicemail_team_id (0 = lead's team), user_id (routing agent), tag_id, callerid_id; lead_owner_routing (ignore|owner_first|only_owner|only_team); ivr_menu (full menu, digit → "user_<id>" or "team_<id>"); sms_missed_call_body; ai_sms_agent_id + ai_sms_team_id; ai_voice_agent_id + ai_voice_mode (always|fallback|after_hours). | |
| enabled | No | set_dispatch: true to turn on, false to make the number regular again. | |
| team_ids | No | create_pool, or a pool's update_settings: the teams that use the pool (replaces the list). | |
| voice_id | No | A voice_id from get_numbers (number_id or number_pool_id), for generate_welcome / generate_voicemail. | |
| number_id | No | The phone number to act on, from get_numbers. | |
| number_ids | No | create_pool: numbers to put in the new pool. | |
| callerid_id | No | A caller ID from get_numbers' caller_ids, for rename only. | |
| rotation_mode | No | Pool caller ID rotation, for create_pool (default round_robin) and a pool's update_settings. | |
| number_pool_id | No | The number pool to act on, from get_numbers. |