import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const requirementGroups = await client.requirementGroups.list();
console.log(requirementGroups);[
{
"id": "<string>",
"country_code": "<string>",
"phone_number_type": "<string>",
"status": "approved",
"action": "<string>",
"customer_reference": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"record_type": "requirement_group",
"regulatory_requirements": [
{
"requirement_id": "<string>",
"field_value": "<string>",
"field_type": "<string>",
"status": "approved",
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
]import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const requirementGroups = await client.requirementGroups.list();
console.log(requirementGroups);[
{
"id": "<string>",
"country_code": "<string>",
"phone_number_type": "<string>",
"status": "approved",
"action": "<string>",
"customer_reference": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"record_type": "requirement_group",
"regulatory_requirements": [
{
"requirement_id": "<string>",
"field_value": "<string>",
"field_type": "<string>",
"status": "approved",
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Consolidated filter parameter (deepObject style). Originally: filter[country_code], filter[phone_number_type], filter[action], filter[status], filter[customer_reference]
Show child attributes
Filter requirement groups by country code (iso alpha 2)
Filter requirement groups by phone number type.
local, toll_free, mobile, national, shared_cost Filter requirement groups by action type
ordering, porting, action Filter requirement groups by status
approved, unapproved, pending-approval, declined, expired Filter requirement groups by customer reference
List requirement groups
approved, unapproved, pending-approval, declined, expired "requirement_group"
Show child attributes
approved, unapproved, pending-approval, declined, expired Was this page helpful?