2

how can I get customer name and display photo from the Twilio Whatsapp api

Adeyemi Seun
  • 111
  • 9

1 Answers1

2

Twilio developer evangelist here.

From what I can tell from the WhatsApp API documentation, WhatsApp doesn't send the user's display photo as part of a message and you can't look it up for a contact.

They do send the profile name, however that is not exposed in the Twilio API for WhatsApp. The request parameters that are set for WhatsApp messages are the same for SMS messages and you can see them all in the documentation here.

Edit

Twilio does now support sending the profile name, and other WhatsApp specific properties, as part of the incoming webhook.

philnash
  • 70,667
  • 10
  • 60
  • 88
  • 1
    How this is beneficial to the business integrating to Twilio, if the name parameter is missing? As a business I need to be able to see the name for better interaction with my existing or potential customer. I understand from a software perspective that they have to reuse what is currently working to keep a uniform standard across but from a business perspective this is very poor. – kimathie Nov 13 '19 at 06:17
  • As of this message, you do get the profile name as part of the message response https://www.twilio.com/docs/messaging/guides/webhook-request#whatsapp-specific-parameters – R. Chappell Dec 20 '21 at 11:41
  • That is correct, I’ll update my answer. Thanks! – philnash Dec 20 '21 at 11:42