Retrieve a list of all Regulations.
Query parameters
-
The type of End User the regulation requires - can be
individualorbusiness.Values are
individualorbusiness. -
The ISO country code of the phone number's country.
-
The type of phone number that the regulatory requiremnt is restricting.
-
A boolean parameter indicating whether to include constraints or not for supporting end user, documents and their fields
-
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. -
The page index. This value is simply for client state.
Minimum value is
0. -
The page token. This is provided by the API.
GET
/v2/RegulatoryCompliance/Regulations
curl \
--request GET 'https://numbers.twilio.com/v2/RegulatoryCompliance/Regulations' \
--user "username:password"
Response examples (200)
Read empty
{
"results": [],
"meta": {
"page": 0,
"page_size": 50,
"first_page_url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Regulations?IsoCountry=US&IncludeConstraints=true&EndUserType=business&NumberType=mobile&PageSize=50&Page=0",
"previous_page_url": null,
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Regulations?IsoCountry=US&IncludeConstraints=true&EndUserType=business&NumberType=mobile&PageSize=50&Page=0",
"next_page_url": null,
"key": "results"
}
}
{
"results": [
{
"sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"friendly_name": "Australia: Local - Individual",
"iso_country": "AU",
"number_type": "local",
"end_user_type": "individual",
"requirements": {
"end_user": [
{
"name": "Individual",
"type": "individual",
"requirement_name": "individual_info",
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Regulations/individual",
"fields": [
"first_name",
"last_name"
],
"detailed_fields": [
{
"machine_name": "first_name",
"friendly_name": "First Name",
"description": "First name of the Individual"
},
{
"machine_name": "last_name",
"friendly_name": "Last Name",
"description": "Last name of the Individual"
}
]
}
],
"supporting_document": [
[
{
"name": "Address",
"type": "document",
"requirement_name": "proof_of_address",
"description": "The physical location of the individual or business. Must be within locality or region covered by the phone numbers prefix; a PO Box is not acceptable where a local address is required.",
"accepted_documents": [
{
"name": "Address Validation",
"type": "address",
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/DocumentTypes/address",
"fields": [
"address_sids"
],
"detailed_fields": [
{
"machine_name": "address_sids",
"friendly_name": "Address sid(s)",
"description": "Address sid of the individual"
}
]
}
]
}
]
]
},
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Regulations/RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
],
"meta": {
"page": 0,
"page_size": 50,
"first_page_url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Regulations?PageSize=50&Page=0",
"previous_page_url": null,
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Regulations?PageSize=50&Page=0",
"next_page_url": null,
"key": "results"
}
}