About

Available Number Blocks can be searched and retrieved using the following request.
At least one of the parameters AccountSid or PropertySid must be provided.

Resource URI

GET
/v2/numberblocks

Request

URI Parameters

Parameter Type Description
AccountSid string The secure identifier of the Account to search available Number Blocks for.
PropertySid string The secure identifier of the Property to search available Number Blocks for. At least one of AccountSid or PropertySid is required.

Optional Parameters

Parameter Type Description
Active boolean? Filter by active (true), inactive (false), or all (null).
Sms boolean? Filter by SMS capability: true - with SMS capabilities, false - without, null - all.
Voice boolean? Filter by Voice capability: true - with Voice capabilities, false - without, null - all.
IncludeAssociations boolean Include related entities (e.g. assignments, analytics numbers) in the response.
Text string Free-text search within available Number Blocks.
PageIndex integer Page index for pagination. Default: 0.
PageSize integer Number of results per page. Default: 10.
IncludeTotalCount boolean Include total count in response. Default: true.
SortBy string Field to sort by. Default: Id.
SortDir string Sorting direction: asc or desc. Default: asc.

Response

200 – OK

A successful request returns a JSON object with paging information and an array of available Number Blocks.

Response Parameters

Parameter Type Description
IdintegerInternal ID of the Number Block.
NumberBlockSidstringThe secure identifier of the Number Block.
NumberPatternstringThe block number pattern (supports wildcards or ranges).
NamestringName of the Number Block.
FriendlyNamestringUser-friendly name.
SipTrunkIdinteger?Linked SIP trunk ID (if applicable).
SipTrunkNamestringName of the associated SIP trunk (if included).
RoutingMethodstringRouting method (endpoint, programmable-voice, etc.).
TerminationNumberstringDestination telephone number for calls.
ProgrammableVoiceUrlstringURL for voice application routing.
ActivebooleanIndicates whether the Number Block is active.
HasSplitConfigurationbooleanIndicates whether split configuration is enabled.
BlockSizeintegerSize of the block (number count).
RecordingEnabledbooleanIndicates if call recording is enabled.
SupportsVoicebooleanWhether the block supports Voice.
SupportsSmsbooleanWhether the block supports SMS.
SupportsMmsbooleanWhether the block supports MMS.
CreateddatetimeCreation timestamp (UTC).
Modifieddatetime?Last modification timestamp (UTC).
QuarantineStartDatedatetime?If quarantined, start date.
QuarantineEndDatedatetime?If quarantined, end date.
SupplierNamestringName of the carrier/supplier.
NumberBlockAssignmentsarrayList of number-to-project assignments.
AnalyticsDynamicNumbersarrayAnalytics numbers associated with this block.

Example Response

{
  "Data": [
    {
      "RoutingMethod": "endpoint",
      "NumberPattern": "+6173472809#",
      "HasSplitConfiguration": false,
      "Id": 45,
      "NumberBlockSid": "BG84CFNA06P1RDJ7PFKEP819JTPN02MG",
      "Number": "+6173472809#",
      "Active": true,
      "Action": 0,
      "RecordingEnabled": false,
      "BlockSize": 10,
      "SupportsVoice": true,
      "SupportsSms": false,
      "SupportsMms": false,
      "Created": "/Date(1726117072187-0000)/",
      "Modified": "/Date(1752150029357-0000)/",
      "AnalyticsDynamicNumbers": [
        {
          "Id": 386481,
          "PublicNumber": "+61734728090",
          "RoutingNumber": "+61734728090",
          "Active": false,
          "CountryCode": "AU",
          "GeoCountry": "Australia",
          "GeoRegion": "QLD",
          "GeoCity": "Brisbane",
          "SupportsVoice": true,
          "SupportsSms": false,
          "SupportsMms": false,
          "SupplierName": "Globe",
          "VoiceNetwork": "Fone Dynamics"
        }
      ]
    }
  ],
  "PageIndex": 0,
  "PageSize": 10,
  "TotalCount": 20,
  "SortBy": "Id",
  "SortDir": "asc"
}

400 – Error

For error codes and messages, please refer to the
REST API Error Codes page.