Check out our upcoming events and meetups! View events →
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const requirementGroup = await client.requirementGroups.create({
action: 'ordering',
country_code: 'US',
phone_number_type: 'local',
});
console.log(requirementGroup.id);{
"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"
}
]
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ISO alpha 2 country code
"US"
local, toll_free, mobile, national, shared_cost "local"
ordering, porting "ordering"
"My Requirement Group"
Show child attributes
Requirement group created
approved, unapproved, pending-approval, declined, expired "requirement_group"
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const requirementGroup = await client.requirementGroups.create({
action: 'ordering',
country_code: 'US',
phone_number_type: 'local',
});
console.log(requirementGroup.id);{
"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"
}
]
}