接收事件
contact.updated
WhatsApp 通訊錄名稱更新(不含 whatsapp-protocol)。僅更新 data.contact.address_book 中提供的欄位:空字串表示清空,省略保持原值,null 無效。不覆蓋對方暱稱或帳號本人資料。contact.id 識別聯絡人資源,不一定是對話識別碼。
事件載荷
{
"id": "0000000000000000000000000000000000000000000000000000000000000191",
"type": "contact.updated",
"provider": "whatsapp",
"account_id": "acc_example",
"occurred_at": "2026-09-20T03:00:00Z",
"data": {
"contact": {
"id": "15550000002@s.whatsapp.net",
"conversation_id": "100000000000002@lid",
"address_book": {
"full_name": "Example customer",
"first_name": "Example"
}
},
"event": {
"kind": "contact_updated",
"source": "address_book",
"changed_fields": ["address_book.full_name", "address_book.first_name"],
"changed_at": "2026-09-20T03:00:00Z"
}
}
}備註
- WhatsApp 通訊錄名稱更新(不含 whatsapp-protocol)。僅更新 data.contact.address_book 中提供的欄位:空字串表示清空,省略保持原值,null 無效。不覆蓋對方暱稱或帳號本人資料。contact.id 識別聯絡人資源,不一定是對話識別碼。