Retrieve regulatory requirements for a list of phone numbers
GET/phone_numbers_regulatory_requirements
Retrieve regulatory requirements for a list of phone numbers
Request
Query Parameters
filter[phone_number] stringrequired
Record type phone number/ phone numbers
Responses
200: An array of Regulatory Requirements Responses
- application/json
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/phone_numbers_regulatory_requirements' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"phone_number": "+41215471644",
"phone_number_type": "local",
"region_information": [
{
"region_name": "CH",
"region_type": "country_code"
}
],
"record_type": "phone_number_regulatory_requirements",
"regulatory_requirements": [
{
"description": "Address matching the DID area code (street, building number, postal code, city and country)",
"id": "12ade33a-21c0-473b-b055-b3c836e1c292",
"example": "311 W Superior St, Chicago, IL 60654",
"label": "Address matching the DID area code",
"field_type": "address_id",
"acceptance_criteria": {
"locality_limit": "Identical locality as the numbers desired",
"field_value": "45f45a04-b4be-4592-95b1-9306b9db2b21",
"field_type": "address"
},
"record_type": "regulatory_requirement"
}
]
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}
{
"errors": [
{
"code": "10007",
"title": "Unexpected error",
"detail": "An unexpected error occured.",
"source": {
"pointer": "/base",
"parameter": "string"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10015"
}
}
]
}