借助 Email Audit API,Google Workspace 管理员可以审核用户的电子邮件、电子邮件草稿和归档的 Hangouts 聊天。此外,网域管理员可以下载用户的邮箱。您只能根据《客户协议》将 Email Audit API 用于合法用途。Email Audit API 仅适用于 Google Workspace、教育版和 ISP 账号。您无法将其与 Google Workspace 产品未托管的 Google Workspace 或 Gmail 账号搭配使用。
Email Audit API 支持 Google Data API 协议。Google Data API 符合 Atom 发布协议 (AtomPub) 发布和编辑模型。AtomPub HTTP 请求使用 Representational Set Transfer (RESTful) 设计方法来处理 Web 服务。如需了解详情,请参阅 Google Data API 开发者概览。
受众群体
本文档适用于想要编写客户端应用的程序员,这些应用可出于合法审核目的审核 Google Workspace 用户的邮箱。
本文档假定您是 Google Workspace 网域管理员,了解 Google Data API 协议背后的一般概念,并且熟悉 Google Workspace 管理控制台。
[null,null,["最后更新时间 (UTC):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."]]