Create an inventory coverage request
GET/inventory_coverage
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.
Request
Query Parameters
Possible values: [local
, toll_free
, national
, mobile
, landline
, shared_cost
]
Possible values: [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
]
Possible values: [sms
, mms
, voice
, fax
, emergency
]
Filter if the phone number should be used for voice, fax, mms, sms, emergency. Returns features in the response when used.
Possible values: [locality
, npa
, national_destination_code
]
Responses
200: Successful response with a list of inventory coverage levels
- application/json
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/inventory_coverage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"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
}
}
{
"errors": [
{
"code": "10007",
"title": "Unexpected error",
"detail": "An unexpected error occured.",
"source": {
"pointer": "/base",
"parameter": "string"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10015"
}
}
]
}