Skip to main content
GET
/
porting_orders
/
{porting_order_id}
/
associated_phone_numbers
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const associatedPhoneNumbers = await client.portingOrders.associatedPhoneNumbers.list(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
);

console.log(associatedPhoneNumbers.data);
{
  "data": [
    {
      "id": "f24151b6-3389-41d3-8747-7dd8c681e5e2",
      "porting_order_id": "a24151b6-3389-41d3-8747-7dd8c681e5e2",
      "country_code": "GB",
      "phone_number_type": "local",
      "phone_number_range": {
        "start_at": "+441234567890",
        "end_at": "+441234567899"
      },
      "action": "keep",
      "record_type": "porting_associated_phone_number",
      "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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

porting_order_id
string<uuid>
required

Identifies the Porting Order associated with the phone numbers

Query Parameters

page
object

Consolidated page parameter (deepObject style). Originally: page[size], page[number]

filter
object

Consolidated filter parameter (deepObject style). Originally: filter[phone_number], filter[action]

sort
object

Consolidated sort parameter (deepObject style). Originally: sort[value]

Response

Successful response

data
object[]
meta
object