Retrieve a list of all Regulations
TODO: Resource-level docs
Retrieve a list of all Regulations.
Query parameters
-
EndUserType string
The type of End User the regulation requires - can be
individual
orbusiness
.Values are
individual
orbusiness
. -
IsoCountry string
The ISO country code of the phone number's country.
-
NumberType string
The type of phone number that the regulatory requiremnt is restricting.
-
PageSize integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
.
GET /v2/RegulatoryCompliance/Regulations
curl \
-X GET https://numbers.twilio.com/v2/RegulatoryCompliance/Regulations \
--user "username:password"
Response examples (200)
{
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
},
"results": [
{
"end_user_type": "individual",
"friendly_name": "string",
"iso_country": "string",
"number_type": "string",
"sid": "string",
"url": "https://example.com"
}
]
}
Response examples (200)
{
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
},
"results": [
{
"end_user_type": "individual",
"friendly_name": "string",
"iso_country": "string",
"number_type": "string",
"sid": "string",
"url": "https://example.com"
}
]
}