import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const phoneNumbersRegulatoryRequirement = await client.phoneNumbersRegulatoryRequirements.retrieve();
console.log(phoneNumbersRegulatoryRequirement.data);{
"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": "600 Congress Avenue, 14th Floor, Austin, TX 78701",
"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": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const phoneNumbersRegulatoryRequirement = await client.phoneNumbersRegulatoryRequirements.retrieve();
console.log(phoneNumbersRegulatoryRequirement.data);{
"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": "600 Congress Avenue, 14th Floor, Austin, TX 78701",
"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": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
An array of Regulatory Requirements Responses
Show child attributes
"+41215471644"
"local"
"phone_number_regulatory_requirements"
Show child attributes
"Address matching the DID area code (street, building number, postal code, city and country)"
"12ade33a-21c0-473b-b055-b3c836e1c292"
"600 Congress Avenue, 14th Floor, Austin, TX 78701"
"Address matching the DID area code"
"address_id"
Show child attributes
"Identical locality as the numbers desired"
"45f45a04-b4be-4592-95b1-9306b9db2b21"
"address"
"regulatory_requirement"
Was this page helpful?