API 參考
接收事件

account.history.synced

一次 WhatsApp 歷史同步批次已結束;data.summary 給出已投遞的會話與訊息數量。

事件載荷

{
  "id": "evt_wa_history_synced_10001",
  "type": "account.history.synced",
  "provider": "whatsapp",
  "account_id": "acc_8c21d0",
  "occurred_at": "2026-06-08T13:22:00Z",
  "data": {
    "summary": {
      "conversations": 12,
      "messages": 184
    }
  }
}

備註

  • WhatsApp HistorySync 批次的收尾事件。data.summary.conversations 是本批次投遞出的 conversation.history 事件數;data.summary.messages 是這些事件裡訊息物件的總數。
  • 此收尾事件只對應一個 parser 批次 / chunk。若 WhatsApp 連續傳送多個 HistorySync chunk,你可能收到多個 account.history.synced,應依 conversation id 與 message id 合併。