List phone numbers
Returns phone numbers associated with the account. Results support pagination, sorting, and filters for number attributes, status, source, connections, billing groups, emergency addresses, tags, and customer references.
Query parameters
Consolidated page parameter (deepObject style). Originally: page[size], page[number]
Specifies the sort order for results. If not given, results are sorted by created_at in descending order.
Consolidated filter parameter (deepObject style). Originally: filter[tag], filter[phone_number], filter[status], filter[country_iso_alpha2], filter[connection_id], filter[voice.connection_name], filter[voice.usage_payment_method], filter[billing_group_id], filter[emergency_address_id], filter[customer_reference], filter[number_type], filter[source]
{
"billing_group_id": "62e4bf2e-c278-4282-b524-488d9c9c43b2",
"connection_id": "1521916448077776306",
"country_iso_alpha2": "US",
"emergency_address_id": "9102160989215728032",
"status": "active",
"voice.connection_name": {
"contains": "test",
"ends_with": "test",
"eq": "test",
"starts_with": "test"
},
"voice.usage_payment_method": "channel"
}Although it is an infrequent occurrence, due to the highly distributed nature of the Telnyx platform, it is possible that there will be an issue when loading in Messaging Profile information. As such, when this parameter is set to true and an error in fetching this information occurs, messaging profile related fields will be omitted in the response and an error message will be included instead of returning a 503 error.
Response
Successful response with a list of phone numbers.
Example response
{
"data": [
{
"activated_at": "2019-10-23T18:10:00.000Z",
"billing_group_id": "86f58db9-0fe3-4adc-9d1f-46e66e6e9323",
"call_forwarding_enabled": true,
"call_recording_enabled": true,
"caller_id_name_enabled": true,
"cnam_listing_enabled": true,
"connection_id": "1293384261075731499",
"connection_name": "connection-name",
"country_iso_alpha2": "US",
"created_at": "2019-10-23T18:10:00.000Z",
"customer_reference": "customer-reference",
"deletion_lock_enabled": false,
"emergency_address_id": "1315261609962112019",
"emergency_enabled": true,
"emergency_status": "active",
"external_pin": "1234",
"hd_voice_enabled": true,
"id": "1293384261075731499",
"inbound_call_screening": "disabled",
"messaging_profile_id": "abc85f64-5717-4562-b3fc-2c9600000000",
"messaging_profile_name": "regional-customers",
"phone_number": "+19705555098",
"phone_number_type": "local",
"purchased_at": "2019-10-23T18:10:00.000Z",
"record_type": "phone_number",
"source_type": "number_order",
"status": "active",
"t38_fax_gateway_enabled": true,
"tags": [
"tag_1",
"tag_2"
],
"updated_at": "2019-10-24T18:10:00.000Z"
}
],
"errors": [
{
"code": "10007",
"detail": "An unexpected error occured.",
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10015"
},
"source": {
"pointer": "/base"
},
"title": "Unexpected error"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Changes
Changed in 4 of the 61 revisions of this API.20616
- ▲
the response property
errors/items/codebecame optional for the status400response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status401response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status404response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status422response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status500response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status400response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status401response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status404response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status422response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status500response-property-became-optional
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status400response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status401response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status404response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status422response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status500response-property-type-changed
- ○
added the optional property
errors/items/meta/urlto the response with the400statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the401statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the404statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the422statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the500statusresponse-optional-property-added
This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status400response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status401response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status404response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status422response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status500response-property-type-changed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the400statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the401statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the404statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the422statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the500statusresponse-optional-property-removed
- ○
the response property
errors/items/codebecame required for the status400response-property-became-required
- ○
the response property
errors/items/codebecame required for the status401response-property-became-required
- ○
the response property
errors/items/codebecame required for the status404response-property-became-required
- ○
the response property
errors/items/codebecame required for the status422response-property-became-required
- ○
the response property
errors/items/codebecame required for the status500response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status400response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status401response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status404response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status422response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status500response-property-became-required
This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the optional property
data/items/activated_atto the response with the200statusresponse-optional-property-added
- ○
- ●
removed the optional property
data/items/activated_atfrom the response with the200statusresponse-optional-property-removed
This revision also has 111 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●