Skip to main content

Retrieve a phone number



Retrieve a phone number


Path Parameters

    id int64required

    Identifies the resource.


200: Successful response with details about a phone number.




    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]

    The phone number's current status.

    tags string[]

    A list of user-assigned tags to help manage the phone number.

    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_name string

    The user-assigned name of the connection to be associated with this phone number.

    connection_id string

    Identifies the connection associated with the phone number.

    customer_reference string

    A customer reference string for customer look ups.

    messaging_profile_id string

    Identifies the messaging profile associated with the phone number.

    messaging_profile_name string

    The name of the messaging profile associated with the phone number.

    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.

default: Unexpected error




  • Array [

  • code integerrequired
    title stringrequired
    detail string



    pointer json-pointer

    JSON pointer (RFC6901) to the offending entity.

    parameter string

    Indicates which query parameter caused the error.



    url string

    URL with additional information on the error.

  • ]