Create Block Rules
Create one or more block rules to prevent specific phone numbers from reaching your inbound numbers.
Call Blocking – Blocked numbers will be rejected before reaching any agent. Blocking can apply globally or to specific inbound lines.
Headers
Your API key for authentication.
Body Parameters
A list of phone numbers to block, formatted in E.164 (e.g., +14155551234
). Maximum 10 numbers per request.
Set to true
to block the numbers globally across all inbound numbers. Set to false
to scope the block to a specific inbound_number
. You cannot enable both is_global
and inbound_number
in the same request.
The E.164 formatted inbound number to associate the block with. Required when is_global
is false
.
Optional text to describe the reason for blocking.
Response
Contains the number of rules created and the list of created blocks.
Number of block rules successfully created.
List of block rule objects that were created.
null
on success, or an array of error objects if validation fails.