API 参考

接收事件

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 不同。