API 參考
接收事件

account.auth.required

帳號需要(重新)認證——驗證碼、掃碼或兩步驗證。

事件載荷

{
  "id": "evt_auth_3c4d5e6f7a",
  "type": "account.auth.required",
  "provider": "whatsapp",
  "account_id": "acc_8c21d0",
  "occurred_at": "2026-06-08T13:23:00Z",
  "data": {
    "auth_status": "awaiting_qr_scan",
    "runtime_status": "disconnected",
    "auth_payload": {
      "qr_code": "2@A1B2C3D4..."
    },
    "event": {
      "kind": "account_auth_status",
      "auth_status": "awaiting_qr_scan"
    }
  }
}

備註

  • 帳號需要使用者操作才能上線。data.auth_status 表示目前等待哪一步,data.auth_payload 帶有要渲染或展示的材料,例如 qr_code、url、pin 或 verify_code,具體取決於 provider 與 auth_mode。