Email Audit API 可讓 Google Workspace 管理員稽核使用者的電子郵件、電子郵件草稿和封存的 Hangouts 即時通訊。此外,網域管理員也可以下載使用者的信箱。您只能根據《客戶協議》的規定,將電子郵件稽核 API 用於合法用途。Email Audit API 僅適用於 Google Workspace、教育版和 ISP 帳戶。您無法將其與 Google Workspace 或 Gmail 帳戶搭配使用,因為這些帳戶並非由 Google Workspace 產品代管。
Email Audit API 支援 Google Data API 通訊協定。Google Data API 符合 Atom 發布通訊協定 (AtomPub) 的發布和編輯模式。AtomPub HTTP 要求會使用 Representational Set Transfer (RESTful) 設計方法,以便提供網路服務。詳情請參閱 Google Data API 開發人員總覽。
觀眾
本文件適用對象為編寫用戶端應用程式的程式設計師,這些應用程式可用於合法稽核,稽核 Google Workspace 使用者的信箱。
本文假設您是 Google Workspace 網域管理員,且瞭解 Google Data API 通訊協定背後的一般概念,也熟悉 Google Workspace 管理控制台。
[null,null,["上次更新時間:2025-03-25 (世界標準時間)。"],[],[],null,["# Email Audit API overview\n\nThe Email Audit API lets Google Workspace administrators audit a user's\nemail, email drafts, and archived Hangouts chats. In addition, a domain\nadministrator can download a user's mailbox. You can use the\nEmail Audit API only for lawful purposes in accordance with your\nCustomer Agreement. The Email Audit API only\napplies to Google Workspace, Education, and ISPs accounts. You can't\nuse it with a Google Workspace or Gmail account that isn't\nhosted by the Google Workspace products.\n\nThe Email Audit API supports the\n[Google Data API](/gdata) protocol. The Google\nData API conforms to the Atom Publishing Protocol (AtomPub) publishing and\nediting model. The AtomPub HTTP requests use the Representational Set Transfer\n(RESTful) design approach to web services. For more information, see the\n[Google Data APIs developer overview](/gdata/docs/developers-guide).\n\nAudience\n--------\n\nThis document is intended for programmers who want to write client applications\nthat, for lawful auditing purposes, can audit a Google Workspace\nuser's mailbox.\n\nThis document assumes that you're a Google Workspace domain administrator\nand that you understand the general ideas behind the\n[Google Data API protocol](/gdata/docs/2.0/basics), and that you're familiar\nwith your Google Workspace Admin console.\n\nAccess account information\n--------------------------\n\n| **Warning:** Account information isn't available in the Email Audit API as of from August 1, 2017. Use the [Reports API](/workspace/admin/reports/v1/guides/manage-audit-login#retrieve_google_apps_login_events_for_a_domain). instead."]]