Skip to main content

List all phone numbers

GET 

/external_connections/:id/phone_numbers

Returns a list of all active phone numbers associated with the given external connection.

Request

Path Parameters

    id int64required

    Identifies the resource.

Query Parameters

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 250

    The size of the page

    filter[phone_number][eq] E164

    The phone number to filter by

    filter[phone_number][contains] string

    The partial phone number to filter by. Requires 3-15 digits.

    filter[phone_number][contains] string

    If present, connections associated with the given phone_number will be returned. A full match is necessary with a e164 format.

    filter[civic_address_id][eq] uuid

    The civic address ID to filter by

    filter[location_id][eq] uuid

    The location ID to filter by

Responses

200: Successful response

Schema

    data

    object[]

  • Array [

  • ticket_id uuid

    Uniquely identifies the resource.

    telephone_number string

    Phone number in E164 format.

    number_id string

    Phone number ID from the Telnyx API.

    civic_address_id uuid

    Identifies the civic address assigned to the phone number.

    location_id uuid

    Identifies the location assigned to the phone number.

    displayed_country_code string

    The iso country code that will be displayed to the user when they receive a call from this phone number.

    acquired_capabilities string[]

    Possible values: [FirstPartyAppAssignment, InboundCalling, Office365, OutboundCalling, UserAssignment]

  • ]

  • meta

    object

    total_pages integer
    total_results integer
    page_number integer
    page_size integer

401: Unauthorized

404: Not found

422: Bad request

Loading...