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 photo = await client.whatsapp.phoneNumbers.profile.photo.retrieve('phone_number');
console.log(photo.data);{
"data": {
"record_type": "whatsapp_phone_number_profile_photos",
"phone_number_id": "<string>",
"profile_photo_url": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const photo = await client.whatsapp.phoneNumbers.profile.photo.retrieve('phone_number');
console.log(photo.data);{
"data": {
"record_type": "whatsapp_phone_number_profile_photos",
"phone_number_id": "<string>",
"profile_photo_url": "<string>"
}
}