Skip to main content
GET
/
v2
/
mobile_phone_numbers
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const mobilePhoneNumbers = await client.mobilePhoneNumbers.list();

console.log(mobilePhoneNumbers.data);
{
  "data": [
    {
      "id": "<string>",
      "record_type": "mobile_phone_number",
      "phone_number": "<string>",
      "sim_card_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "<string>",
      "connection_id": "<string>",
      "connection_name": "<string>",
      "connection_type": "<string>",
      "mobile_voice_enabled": true,
      "tags": [
        "<string>"
      ],
      "customer_reference": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "call_forwarding": {
        "call_forwarding_enabled": true,
        "forwards_to": "<string>",
        "forwarding_type": "always"
      },
      "country_iso_alpha2": "<string>",
      "noise_suppression": "inbound",
      "inbound_call_screening": "disabled",
      "caller_id_name_enabled": true,
      "call_recording": {
        "inbound_call_recording_enabled": true,
        "inbound_call_recording_channels": "single",
        "inbound_call_recording_format": "wav"
      },
      "cnam_listing": {
        "cnam_listing_enabled": true,
        "cnam_listing_details": "<string>"
      },
      "outbound": {
        "interception_app_id": "<string>",
        "interception_app_name": "<string>"
      },
      "inbound": {
        "interception_app_id": "<string>",
        "interception_app_name": "<string>"
      }
    }
  ],
  "meta": {
    "total_pages": 123,
    "total_results": 123,
    "page_number": 123,
    "page_size": 123
  }
}

Authorizations

Authorization
string
header
required

Query Parameters

page[number]
integer
page[size]
integer

Response

data
object[]
meta
object