郵件管理員工具 API 總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
透過 Postmaster Tools API,您可以收集傳送給 Gmail 使用者的大量電子郵件指標,並將資料匯入其他系統,或與其他系統的資料合併。指標包括使用者將您的電子郵件標示為垃圾郵件的比率,以及傳送錯誤。如要完整瞭解 Postmaster Tools API 提供的指標,請參閱這篇郵件管理員工具說明中心文章的「資訊主頁」一節。
高階實作步驟
如要使用這項 API,請按照下列高階步驟操作:
- 設定驗證網域,也就是用來驗證電子郵件的 DKIM (d=) 或 SPF 網域 (Return-Path 網域)。
- 設定 API:
- 建立專案。
- 啟用郵件管理員工具 API。
- 設定 API 的憑證。
- 建立 OAuth2 權杖。
- 使用 OAuth2 權杖和憑證發出 API 呼叫,包括驗證網域和擷取指標。
後續步驟
如要設定驗證網域,請參閱「設定驗證網域」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間: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)."]]