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.
Successful response with a list of inventory coverage levels
Array of objects (InventoryCoverage) | |
object (InventoryCoverageMetadata) |
const telnyx = require('telnyx')('YOUR_API_KEY'); const {data: inventoryCoverageRequest} = await telnyx.inventoryCoverage.request({ filter: { npa: '318', nxx: '202', country_code: 'US', groupBy: 'nxx' } });
{- "data": [
- {
- "count": 3,
- "coverage_type": "number",
- "group": "318",
- "group_type": "npa",
- "number_range": 1,
- "number_type": "did",
- "phone_number_type": "local",
- "record_type": "inventory_coverage_group"
}
], - "meta": {
- "total_results": 25
}
}