Browse Coverage
This request returns data about available phone numbers rentable through CarrierX. Responses can also include inventory levels.
get | /phonenumber/coverage |
Sample
A sample GET request to get data about available phone numbers matching the criteria in the request URL:
curl -X GET \
'https://api.carrierx.com/core/v2/phonenumber/coverage?limit=1&group_by=state' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'
Response
200
status code with data about available phone numbers:
{
"count": 1,
"has_more": true,
"items": [
{
"count": 81,
"key": "IL"
}
],
"limit": 1,
"offset": 0,
"pagination": {
"next": "https://api.carrierx.com/core/v2/phonenumber/coverage?limit=1&group_by=state&offset=1"
},
"total": 5
}
This request is enabled for Pagination, Result Filtering, and Field Filtering.
Required Scopes
To get information about phone numbers the partner must have one of the following scopes enabled:
phonenumber.manage
phonenumber.read
Query Arguments
Parameter | Data Type | Description | Examples |
---|---|---|---|
filter | string | Values accepted in this field are:
| filter=capabilities+bit+4 / filter=capabilities+eq+31 / filter=npa+eq+516 / filter=state+eq+NY |
group_by required | string | Which criteria the results should be grouped by. Values accepted in this field are:
| group_by=locality |
order | string | Values accepted in this field are count or key . Only one value is accepted at a time. Refer to the table below for more information on these parameters. | order=count+asc |
Response Object
Attribute | Data Type | Description |
---|---|---|
count | integer | The total quantity of phone numbers for the given NPA. |
key | string | The value by which the phone numbers are grouped in the response. |