List all phone number extensions
GET/porting_orders/:porting_order_id/phone_number_extensions
Returns a list of all phone number extensions of a porting order.
Request
Path Parameters
Identifies the Porting Order associated with the phone number extensions
Query Parameters
Filter results by phone number
Filter results by a list of phone numbers
Filter results by porting phone number id
Filter results by a list of porting phone number ids
Possible values: [-created_at
, created_at
]
Specifies the sort order for results. If not given, results are sorted by created_at in descending order
Possible values: >= 1
Default value: 1
The page number to load
Possible values: >= 1
and <= 250
Default value: 20
The size of the page
Responses
200: Successful response
- application/json
401: Unauthorized
404: Not found
422: Unprocessable entity. Check message field in response for details.
Request samples
curl -L 'https://api.telnyx.com/v2/porting_orders/:porting_order_id/phone_number_extensions' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"id": "f24151b6-3389-41d3-8747-7dd8c681e5e2",
"porting_phone_number_id": "f24151b6-3389-41d3-8747-7dd8c681e5e2",
"extension_range": {
"start_at": 1,
"end_at": 10
},
"activation_ranges": [
{
"start_at": 1,
"end_at": 10
}
],
"record_type": "porting_phone_number_extension",
"created_at": "2021-03-19T10:07:15.527Z",
"updated_at": "2021-03-19T10:07:15.527Z"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}