Skip to main content

Retrieve a phone number

GET 
/external_connections/:id/phone_numbers/:phone_number_id

Return the details of a phone number associated with the given external connection.

Request

Path Parameters

    id int64required

    Identifies the resource.

    phone_number_id stringrequired

    A phone number's ID via the Telnyx API

Responses

200: Successful response

401: Unauthorized

404: Not found

Request samples


curl -L 'https://api.telnyx.com/v2/external_connections/:id/phone_numbers/:phone_number_id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": {
"ticket_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
"telephone_number": "string",
"number_id": "string",
"civic_address_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"displayed_country_code": "string",
"acquired_capabilities": [
"FirstPartyAppAssignment"
]
}
}