import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const mobilePhoneNumber = await client.mobilePhoneNumbers.retrieve('id');
console.log(mobilePhoneNumber.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>"
}
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const mobilePhoneNumber = await client.mobilePhoneNumbers.retrieve('id');
console.log(mobilePhoneNumber.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>"
}
}
}Show child attributes
Was this page helpful?