Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

DialingPermissions HighRiskSpecialPrefix Resource


Returns the list of high-risk prefixes for a country.


DialingPermissions HighRiskSpecialPrefix properties

dialingpermissions-highriskspecialprefix-properties page anchor
prefixstring
Not PII

A prefix is a contiguous number range for a block of E.164 numbers that includes the E.164 assigned country code. For example, a North American Numbering Plan prefix like +1510720 written like +1(510) 720 matches all numbers inclusive from +1(510) 720-0000 to +1(510) 720-9999.


Read multiple DialingPermissions HighRiskSpecialPrefix resources

read-multiple-dialingpermissions-highriskspecialprefix-resources page anchor
GET https://voice.twilio.com/v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes

Path parameters

path-parameters page anchor
IsoCodestring<iso-country-code>required
PageSizeinteger

How many resources to return in each list page. The default is 50, and the maximum is 1000.

Minimum: 1Maximum: 1000

Pageinteger

The page index. This value is simply for client state.

Minimum: 0

PageTokenstring

The page token. This is provided by the API.

Read multiple DialingPermissions HighRiskSpecialPrefix resources

read-multiple-dialingpermissions-highriskspecialprefix-resources-1 page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_12
// Download the helper library from https://www.twilio.com/docs/node/install
_12
// Find your Account SID and Auth Token at twilio.com/console
_12
// and set the environment variables. See http://twil.io/secure
_12
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12
const authToken = process.env.TWILIO_AUTH_TOKEN;
_12
const client = require('twilio')(accountSid, authToken);
_12
_12
client.voice.v1.dialingPermissions
_12
.countries('LV')
_12
.highriskSpecialPrefixes
_12
.list({limit: 20})
_12
.then(highriskSpecialPrefixes => highriskSpecialPrefixes.forEach(h => console.log(h.prefix)));

Output

_19
{
_19
"content": [
_19
{
_19
"prefix": "+37181"
_19
},
_19
{
_19
"prefix": "+3719000"
_19
}
_19
],
_19
"meta": {
_19
"first_page_url": "https://voice.twilio.com/v1/DialingPermissions/Countries/LV/HighRiskSpecialPrefixes?PageSize=50&Page=0",
_19
"key": "content",
_19
"next_page_url": "https://voice.twilio.com/v1/DialingPermissions/Countries/LV/HighRiskSpecialPrefixes?PageSize=50&Page=1",
_19
"page": 0,
_19
"page_size": 50,
_19
"previous_page_url": "https://voice.twilio.com/v1/DialingPermissions/Countries/LV/HighRiskSpecialPrefixes?PageSize=50&Page=0",
_19
"url": "https://voice.twilio.com/v1/DialingPermissions/Countries/LV/HighRiskSpecialPrefixes?PageSize=50&Page=0"
_19
}
_19
}


Rate this page: