Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Interfejs Postmaster Tools API umożliwia zbieranie danych o wysyłanych zbiorczo e-mailach do użytkowników Gmaila oraz importowanie danych do innych systemów lub scalanie ich z tymi systemami.
Dane obejmują odsetek e-maili oznaczonych przez użytkowników jako spam oraz błędy dostarczania. Pełne wyjaśnienie danych udostępnianych przez interfejs Postmaster Tools API znajdziesz w sekcji Panele w artykule pomocy Postmaster Tools.
Najważniejsze etapy wdrażania
Aby korzystać z tego interfejsu API, wykonaj te ogólne czynności:
Skonfiguruj domenę uwierzytelniania, czyli domenę DKIM (d=) lub domenę SPF (zdefiniowaną dla ścieżki zwrotnej) używaną do uwierzytelniania Twojego e-maila.
Skonfiguruj interfejs API:
Utwórz projekt.
Włącz interfejs Postmaster Tools API.
skonfigurować dane logowania do interfejsu API,
Utwórz token OAuth2.
Używaj tokena i danych logowania OAuth2 do wywoływania interfejsów API, w tym do weryfikowania domen i pobierania danych.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-08-29 UTC."],[],[],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)."]]