接收事件
contact.updated
WhatsApp 通訊錄儲存名稱、暱稱或大頭貼更新。依 data.event.source 和 changed_fields 更新實際提供的 address_book、push_name 或 avatar_url 欄位。空字串表示清除,省略保留原值,null 無效。請及時下載帶簽章的大頭貼 URL。contact.id 識別聯絡人,可能與 conversation_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 通訊錄儲存名稱、暱稱或大頭貼更新。依 data.event.source 和 changed_fields 更新實際提供的 address_book、push_name 或 avatar_url 欄位。空字串表示清除,省略保留原值,null 無效。請及時下載帶簽章的大頭貼 URL。contact.id 識別聯絡人,可能與 conversation_id 不同。