Check out our upcoming events and meetups! View events →
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const profile = await client.whatsapp.phoneNumbers.profile.retrieve('phone_number');
console.log(profile.data);{
"data": {
"id": "<string>",
"record_type": "whatsapp_phone_number_profiles",
"phone_number_id": "<string>",
"display_name": "<string>",
"profile_photo_url": "<string>",
"category": "<string>",
"about": "<string>",
"description": "<string>",
"email": "<string>",
"website": "<string>",
"address": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const profile = await client.whatsapp.phoneNumbers.profile.retrieve('phone_number');
console.log(profile.data);{
"data": {
"id": "<string>",
"record_type": "whatsapp_phone_number_profiles",
"phone_number_id": "<string>",
"display_name": "<string>",
"profile_photo_url": "<string>",
"category": "<string>",
"about": "<string>",
"description": "<string>",
"email": "<string>",
"website": "<string>",
"address": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Was this page helpful?