Postmaster Tools API 概览
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助 Postmaster Tools API,您可以收集有关向 Gmail 用户发送的群发电子邮件的指标,并将数据导入其他系统或与其他系统合并这些数据。指标包括用户将您的电子邮件标记为垃圾邮件的百分比和投放错误。如需详细了解 Postmaster Tools API 提供的指标,请参阅 Postmaster Tools 帮助中心文章的“信息中心”部分。
简要的实现步骤
如需使用此 API,请按以下大致步骤操作:
- 设置身份验证域名,即用于对电子邮件进行身份验证的 DKIM (d=) 域名或 SPF 域名(返回路径域名)。
- 设置 API:
- 创建一个项目。
- 启用 Postmaster Tools API。
- 为该 API 设置凭据。
- 创建 OAuth2 令牌。
- 使用 OAuth2 令牌和凭据进行 API 调用,包括验证网域和检索指标。
后续步骤
如需设置身份验证网域,请前往设置身份验证网域。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[],[],null,["# Postmaster Tools API overview\n\nThe Postmaster Tools API allows you to gather metrics on bulk emails sent to\nGmail users and import data into, or merge that data with, other systems.\nMetrics include the percentage of your email marked as spam by the user and\ndelivery errors. For a full explanation of the metrics provided by the\nPostmaster Tools API, refer to Dashboards section of the\n[Postmaster Tools help center article](https://support.google.com/mail/answer/6227174).\n\nHigh-level implementation steps\n-------------------------------\n\nFollow these high-level steps to use this API:\n\n1. Set up an authentication domain, either the DKIM (d=) or SPF domain (Return-Path domain) that is used to authenticate your email.\n2. Set up the API:\n 1. Create a project.\n 2. Turn on the Postmaster Tools API.\n 3. Set up credentials for the API.\n 4. Create an OAuth2 token.\n3. Use the OAuth2 token and credentials to make API calls including verifying domains and retrieving metrics.\n\nNext steps\n----------\n\nTo set up the authentication domain, proceed to\n[Set up authentication domain](/workspace/gmail/postmaster/guides/domain)."]]