Create Voice IN Number List
create_voice_in_number_listCreate a Voice IN Number List — a caller-ID (source number) filter for inbound calls. Choose mode: "full_number" (entries match the caller's number exactly) or "prefix" (entries match by prefix). Choose default_action: "allow" (calls pass unless an entry rejects them — a deny-list) or "reject" (calls are rejected unless an entry allows them — an allow-list). Optionally seed the list with numbers (full numbers or prefixes; allowed characters: digits, letters, "+", "-", "." — stored EXACTLY as passed, no normalization); by default those entries carry the OPPOSITE action of default_action (the usual deny-list / allow-list shape) — override with numbers_action. Creating a list does NOT filter anything by itself: attach it to a SIP or PSTN Voice IN Trunk via src_number_list_id on create_sip_trunk / create_pstn_trunk / update_sip_trunk / update_pstn_trunk. Returns the created list, or a readable error (in which case nothing is created).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | How entries match the caller's number: "full_number" (exact match) or "prefix" (prefix match). Cannot be mixed within one list. | |
| name | Yes | Name of the Voice IN Number List (must be unique for the customer). | |
| numbers | No | Optional initial entries — full caller numbers (mode "full_number") or prefixes (mode "prefix"). Allowed characters: digits, letters, "+", "-", "."; max 20 chars each, up to 500. Stored exactly as passed (whitespace trimmed, nothing else normalized) and unique within the list. | |
| default_action | Yes | What happens to a call whose caller number matches NO entry: "allow" (deny-list style) or "reject" (allow-list style). | |
| numbers_action | No | Action the initial `numbers` entries carry: "allow" or "reject". Default: the opposite of default_action. |