Skip to main content

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

    porting_order_id uuidrequired

    Identifies the Porting Order associated with the phone number extensions

Query Parameters

    filter[phone_number] string

    Filter results by phone number

    filter[phone_number][in][] string[]

    Filter results by a list of phone numbers

    filter[porting_phone_number_id] uuid

    Filter results by porting phone number id

    filter[porting_phone_number_id][in][] uuid

    Filter results by a list of porting phone number ids

    sort[] string

    Possible values: [-created_at, created_at]

    Specifies the sort order for results. If not given, results are sorted by created_at in descending order

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 20

    The size of the page

Responses

200: Successful response

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
}
}