Skip to main content

Slim List phone numbers

GET 

/phone_numbers/slim

List phone numbers, This endpoint is a lighter version of the /phone_numbers endpoint having higher performance and rate limit.

Request

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: 20

    The size of the page

    include_connection boolean

    Include the connection associated with the phone number.

    include_tags boolean

    Include the tags associated with the phone number.

    filter[tag] string

    Filter by phone number tags. (This requires the include_tags param)

    filter[phone_number] string

    Filter by phone number. Requires at least three digits. Non-numerical characters will result in no values being returned.

    filter[status] string

    Possible values: [purchase_pending, purchase_failed, port_pending, active, deleted, port_failed, emergency_only, ported_out, port_out_pending]

    Filter by phone number status.

    filter[connection_id] int64

    Filter by connection_id.

    filter[voice.connection_name][contains] string

    Filter contains connection name. Requires at least three characters and the include_connection param.

    filter[voice.connection_name][starts_with] string

    Filter starts with connection name. Requires at least three characters and the include_connection param.

    filter[voice.connection_name][ends_with] string

    Filter ends with connection name. Requires at least three characters and the include_connection param.

    filter[voice.connection_name] string

    Filter by connection name , requires the include_connection param and the include_connection param.

    filter[voice.usage_payment_method] string

    Possible values: [pay-per-minute, channel]

    Filter by usage_payment_method.

    filter[billing_group_id] string

    Filter by the billing_group_id associated with phone numbers. To filter to only phone numbers that have no billing group associated them, set the value of this filter to the string 'null'.

    filter[emergency_address_id] int64

    Filter by the emergency_address_id associated with phone numbers. To filter only phone numbers that have no emergency address associated with them, set the value of this filter to the string 'null'.

    filter[customer_reference] string

    Filter numbers via the customer_reference set.

    sort string

    Possible values: [purchased_at, phone_number, connection_name, usage_payment_method]

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

Responses

200: Successful response with a list of phone numbers.

Schema

    data

    object[]

  • Array [

  • id int64

    Identifies the resource.

    record_type string

    Identifies the type of the resource.

    phone_number string

    The +E.164-formatted phone number associated with this record.

    status string

    Possible values: [purchase-pending, purchase-failed, port-pending, port-failed, active, deleted, emergency-only, ported-out, port-out-pending, requirement-info-pending, requirement-info-under-review, requirement-info-exception, provision-pending]

    The phone number's current status.

    external_pin string

    If someone attempts to port your phone number away from Telnyx and your phone number has an external PIN set, Telnyx will attempt to verify that you provided the correct external PIN to the winning carrier. Note that not all carriers cooperate with this security mechanism.

    connection_id string

    Identifies the connection associated with the phone number.

    customer_reference string

    A customer reference string for customer look ups.

    billing_group_id string

    Identifies the billing group associated with the phone number.

    emergency_enabled boolean

    Indicates whether emergency services are enabled for this number.

    emergency_address_id int64

    Identifies the emergency address associated with the phone number.

    call_forwarding_enabled boolean

    Default value: true

    Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints.

    cnam_listing_enabled boolean

    Indicates whether a CNAM listing is enabled for this number.

    caller_id_name_enabled boolean

    Indicates whether caller ID is enabled for this number.

    call_recording_enabled boolean

    Indicates whether call recording is enabled for this number.

    t38_fax_gateway_enabled boolean

    Indicates whether T38 Fax Gateway for inbound calls to this number.

    purchased_at string

    ISO 8601 formatted date indicating when the resource was purchased.

    created_at string

    ISO 8601 formatted date indicating when the resource was created.

    number_level_routing string

    Possible values: [disabled]

    Default value: disabled

    Deprecated field, the only value for this is 'disabled'. All routing for numbers should be configured via connection settings.

    phone_number_type string

    Possible values: [local, toll_free, mobile, national, shared_cost, landline, tollfree, shortcode, longcode]

    The phone number's type. Note: For numbers purchased prior to July 2023 or when fetching a number's details immediately after a purchase completes, the legacy values tollfree, shortcode or longcode may be returned instead.

    inbound_call_screening string

    Possible values: [disabled, reject_calls, flag_calls]

    Default value: disabled

    The inbound_call_screening setting is a phone number configuration option variable that allows users to configure their settings to block or flag fraudulent calls. It can be set to disabled, reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated with it.

  • ]

  • meta

    object

    total_pages integer
    total_results integer
    page_number integer
    page_size integer

default: Unexpected error

Schema

    errors

    Error[]

  • Array [

  • code integerrequired
    title stringrequired
    detail string

    source

    object

    pointer json-pointer

    JSON pointer (RFC6901) to the offending entity.

    parameter string

    Indicates which query parameter caused the error.

    meta

    object

    url string

    URL with additional information on the error.

  • ]

Loading...