Mick
Mick

Reputation: 3024

How to receive contact name via Twilio WhatsApp

I am using the Twilio API for WhatsApp in a sandbox, for prototyping and testing. According to the Facebook / WhatsApp documentation, there are several types of inbound notifications that may be delivered to your unique Webhook.

Twilio API documentation is very limited and doesn’t mention any of the more advanced scenarios. For example retrieving the customers name, which should be present in every webhook request

When I inspect the webhook, the body payload is very limited. Is there any way to receive the original channelData?

Upvotes: 4

Views: 831

Answers (2)

santi
santi

Reputation: 21

You can get the sender's name using the 'ProfileName' key from the request form.

Upvotes: 2

Mick
Mick

Reputation: 3024

Apparently, this feature is not implemented yet. I received the following statement from Twilio.

Unfortunately we don't support the Contact name being included in the inbound Whatsapp message posted to your webhook at this time. I've raised a feature request for this with the Product Team in hopes that we'll have this feature available in the near future.

Upvotes: 1

Related Questions