contacts message to your webhook.
How it works
- You create a template with a Request Contact Info button and wait for Meta’s approval.
- You send the template to the customer through the Messaging API.
- The customer taps Share Contact Info.
- WhatsApp posts the customer’s contact card in the chat.
- Your webhook receives an incoming message with
type: "contacts"that contains the phone number.
Create the template in the panel
Follow the normal Create Template steps. In Step 4 — Template Content:- Write the body. Explain why you need the number — for example, to deliver an order.
- Click + Add Button and select Request Contact Info.
- Click Next, review the summary, and click Create.
Send the template
The button is static, so you don’t add abutton component. Send only the components your header and body need.
body component exactly as for any other template. See Send Template Messages.
Receive the shared number
When the customer taps the button, your webhook receives an incoming message withtype: "contacts". The envelope is the same as every other incoming message — see Incoming Message Events.
Sharing is the customer’s choice. If they never tap the button, no
contacts message arrives. Don’t build a flow that waits for it indefinitely.