smb_app_state_sync webhook referenceThis reference describes trigger events and payload contents for the WhatsApp Business Account smb_app_state_sync webhook.
The smb_app_state_sync webhook is used for synchronizing contacts of WhatsApp Business app users who have been onboarded via a solution provider.
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "<WHATSAPP_BUSINESS_ACCOUNT_ID>",
"changes": [
{
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "<BUSINESS_DISPLAY_PHONE_NUMBER>",
"phone_number_id": "<BUSINESS_PHONE_NUMBER_ID>"
},
"state_sync": [
{
"type": "contact",
"contact": {
"full_name": "<CONTACT_FULL_NAME>",
"first_name": "<CONTACT_FIRST_NAME>",
"phone_number": "<CONTACT_PHONE_NUMBER>"
},
"action": "<ACTION>",
"metadata": {
"timestamp": "<WEBHOOK_TRIGGER_TIMESTAMP>"
}
},
<!-- Additional contacts would follow, if any -->
]
},
"field": "smb_app_state_sync"
}
]
}
]
}| Placeholder | Description | Example value |
|---|---|---|
String | Indicates if the business customer added, edited, or deleted a contact from their WhatsApp Business app phone address book. Values can be:
|
|
String | Business display phone number. |
|
String | Business phone number ID. |
|
String | The contact's first name, as it appears in the business customer's WhatsApp Business app phone address book. Not included when the business customer removes a contact from their WhatsApp Business app phone address book. |
|
String | The contact's full name, as it appears in the business customer's WhatsApp Business app phone address book. Not included when the business customer removes a contact from their WhatsApp Business app phone address book. |
|
| The contact's WhatsApp phone number. |
|
Integer | Unix timestamp indicating when the webhook was triggered. |
|
String | WhatsApp Business Account ID. |
|
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "102290129340398",
"changes": [
{
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "15550783881",
"phone_number_id": "106540352242922"
},
"state_sync": [
{
"type": "contact",
"contact": {
"full_name": "Pablo Morales",
"first_name": "Pablo",
"phone_number": "16505551234"
},
"action": "add",
"metadata": {
"timestamp": "1739321024"
}
}
]
},
"field": "smb_app_state_sync"
}
]
}
]
}