The Postmaster Tools API allows you to gather metrics on bulk emails sent to Gmail users and import data into, or merge that data with, other systems. Metrics include the percentage of your email marked as spam by the user and delivery errors. For a full explanation of the metrics provided by the Postmaster Tools API, refer to Dashboards section of the Postmaster Tools help center article.
High-level implementation steps
Follow these high-level steps to use this API:
- Set up an authentication domain, either the DKIM (d=) or SPF domain (Return-Path domain) that is used to authenticate your email.
- Set up the API:
- Create a project.
- Turn on the Postmaster Tools API.
- Set up credentials for the API.
- Create an OAuth2 token.
- Use the OAuth2 token and credentials to make API calls including verifying domains and retrieving metrics.
Next steps
To set up the authentication domain, proceed to Set up authentication domain.