import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const inventoryCoverages = await client.inventoryCoverage.list();
console.log(inventoryCoverages.data);{
"data": [
{
"group": "318",
"group_type": "npa",
"number_range": 1,
"number_type": "did",
"phone_number_type": "local",
"coverage_type": "number",
"record_type": "inventory_coverage_group",
"administrative_area": "NJ",
"count": 3,
"advance_requirements": true
}
],
"meta": {
"total_results": 25
}
}Creates an inventory coverage request. If locality, npa or national_destination_code is used in groupBy, and no region or locality filters are used, the whole paginated set is returned.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const inventoryCoverages = await client.inventoryCoverage.list();
console.log(inventoryCoverages.data);{
"data": [
{
"group": "318",
"group_type": "npa",
"number_range": 1,
"number_type": "did",
"phone_number_type": "local",
"coverage_type": "number",
"record_type": "inventory_coverage_group",
"administrative_area": "NJ",
"count": 3,
"advance_requirements": true
}
],
"meta": {
"total_results": 25
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Consolidated filter parameter (deepObject style). Originally: filter[npa], filter[nxx], filter[administrative_area], filter[phone_number_type], filter[country_code], filter[count], filter[features], filter[groupBy]
Show child attributes
Filter by npa
Filter by nxx
Filter by administrative area
Filter by phone number type
local, toll_free, national, mobile, landline, shared_cost Filter by country. Defaults to US
AT, AU, BE, BG, CA, CH, CN, CY, CZ, DE, DK, EE, ES, FI, FR, GB, GR, HU, HR, IE, IT, LT, LU, LV, NL, NZ, MX, NO, PL, PT, RO, SE, SG, SI, SK, US Include count in the result
Filter if the phone number should be used for voice, fax, mms, sms, emergency. Returns features in the response when used.
sms, mms, voice, fax, emergency "voice,sms"
Filter to group results
locality, npa, national_destination_code Successful response with a list of inventory coverage levels
Show child attributes
"318"
"npa"
1
did, toll-free "did"
local, toll_free, national, landline, shared_cost, mobile "local"
number, block "number"
"inventory_coverage_group"
"NJ"
3
Indicates if the phone number requires advance requirements.
true
Was this page helpful?