- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- DomainComplianceData
- ComplianceRowData
- ComplianceRequirement
- ComplianceStatus
- State
- OneClickUnsubscribeVerdict
- Reason
- HonorUnsubscribeVerdict
- Reason
Retrieves the compliance status for a given domain. Returns PERMISSION_DENIED if you don't have permission to access compliance status for the domain.
HTTP request
GET https://gmailpostmastertools.googleapis.com/v2beta/{name=domains/*/complianceStatus}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. The resource name of the domain's compliance status to retrieve. Format: |
Request body
The request body must be empty.
Response body
Compliance status for a domain.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "name": string, "complianceData": { object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the domain's compliance status. Format: |
complianceData |
Compliance data for the registrable domain part of the domain in |
subdomainComplianceData |
Compliance data calculated specifically for the subdomain in |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/postmasterhttps://www.googleapis.com/auth/postmaster.traffic.readonly
For more information, see the Authorization guide.
DomainComplianceData
Compliance data for a given domain.
| JSON representation |
|---|
{ "domainId": string, "rowData": [ { object ( |
| Fields | |
|---|---|
domainId |
Domain that this data is for. |
rowData[] |
Data for each of the rows of the table. Each message contains all the data that backs a single row. |
oneClickUnsubscribeVerdict |
One-click unsubscribe compliance verdict. |
honorUnsubscribeVerdict |
Unsubscribe honoring compliance verdict. |
ComplianceRowData
Data for a single row of the compliance status table.
| JSON representation |
|---|
{ "requirement": enum ( |
| Fields | |
|---|---|
requirement |
The compliance requirement. |
status |
The compliance status for the requirement. |
ComplianceRequirement
The compliance requirement.
| Enums | |
|---|---|
COMPLIANCE_REQUIREMENT_UNSPECIFIED |
Unspecified. |
SPF |
Whether the sender has properly configured SPF. |
DKIM |
Whether the sender has properly configured DKIM. |
SPF_AND_DKIM |
Whether the sender has properly configured both SPF and DKIM. |
DMARC_POLICY |
Whether the sender has configured DMARC policy. |
DMARC_ALIGNMENT |
Whether the From: header is aligned with DKIM or SPF |
MESSAGE_FORMATTING |
Whether messages are correctly formatted according to RFC 5322. |
DNS_RECORDS |
Whether the domain has forward and reverse DNS records. |
ENCRYPTION |
Whether messages has TLS encryption. |
USER_REPORTED_SPAM_RATE |
Whether the sender is below a threshold for user-reported spam rate. |
ONE_CLICK_UNSUBSCRIBE |
Whether the sender sufficiently supports one-click unsubscribe. Note that the user-facing requirement is "one-click unsubscribe", but we require satisfaction of multiple "unsubscribe support" rules. |
HONOR_UNSUBSCRIBE |
Whether the sender honors user-initiated unsubscribe requests. |
ComplianceStatus
The status of a sender compliance requirement.
| JSON representation |
|---|
{
"status": enum ( |
| Fields | |
|---|---|
status |
Output only. The compliance status. |
State
The status types for a particular sender compliance requirement.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Unspecified. |
COMPLIANT |
The compliance requirement is met, and the sender is deemed compliant. |
NEEDS_WORK |
The compliance requirement is unmet, and the sender needs to do work to achieve compliance. |
OneClickUnsubscribeVerdict
Compliance verdict for whether a sender meets the one-click unsubscribe compliance requirement.
| JSON representation |
|---|
{ "status": { object ( |
| Fields | |
|---|---|
status |
The compliance status. |
reason |
The specific reason for the compliance verdict. Must be empty if the status is compliant. |
Reason
The specific reason a one-click unsubscribe verdict has a "non-compliant" status.
| Enums | |
|---|---|
REASON_UNSPECIFIED |
Unspecified. |
NO_UNSUB_GENERAL |
Sender does not support one-click unsubscribe for the majority of their messages. |
NO_UNSUB_SPAM_REPORTS |
Sender does not support one-click unsubscribe for most messages that are manually reported as spam. |
NO_UNSUB_PROMO_SPAM_REPORTS |
Sender does not support one-click unsubscribe for most promotional messages that are manually reported as spam. This classification of messages is a subset of those encompassed by NO_UNSUB_SPAM_REPORTS. |
HonorUnsubscribeVerdict
Compliance verdict for whether a sender meets the unsubscribe honoring compliance requirement.
| JSON representation |
|---|
{ "status": { object ( |
| Fields | |
|---|---|
status |
The compliance status. |
reason |
The specific reason for the compliance verdict. Must be empty if the status is compliant. |
Reason
The specific reason an unsubscribe honoring verdict has a "non-compliant" status.
| Enums | |
|---|---|
REASON_UNSPECIFIED |
Unspecified. |
NOT_HONORING |
The sender does not honor unsubscribe requests. |
NOT_HONORING_TOO_FEW_CAMPAIGNS |
The sender does not honor unsubscribe requests and consider to increase the number of relevant campaigns. |
NOT_HONORING_TOO_MANY_CAMPAIGNS |
The sender does not honor unsubscribe requests and consider to reduce the number of relevant campaigns. |