Gmail Postmaster Tools

App · 9 actions

Review sending domains, check Gmail sender compliance and read mail traffic metrics.

Actions

ActionWhat it does
Get a domain verification tokenGet the DNS verification token for a registered domain.
Get a sending domainRead a domain’s verification status and your access level.
Get domain compliance statusRead a domain’s compliance with Gmail’s sender requirements.
List domain usersList the people with permission to view a domain.
List sending domainsList the sending domains registered in Postmaster Tools.
Query traffic statisticsRead spam rates and delivery errors over a date range.
Register a sending domainAdd a sending domain to Postmaster Tools for verification.
Remove a sending domainRemove a sending domain from your Postmaster Tools account.
Verify a sending domainAsk Google to verify the DNS record for a sending domain.

Get a domain verification token

Get the DNS verification token for a registered domain.

Inputs

DomaindomaintextRequired
Choose a registered sending domain.
Dns record typedns_record_typetextRequired
How you will publish the value in DNS.One of: TXT, CNAME.

Outputs

dataobject
The response from Gmail Postmaster Tools.
Example output
{
  "data": {
    "name": "example",
    "token": "example",
    "verificationMethod": "example"
  }
}

Get a sending domain

Read a domain’s verification status and your access level.

Inputs

DomaindomaintextRequired
Choose a registered sending domain.

Outputs

dataobject
The response from Gmail Postmaster Tools.
Example output
{
  "data": {
    "createTime": "example",
    "lastVerifyTime": "example",
    "name": "example",
    "permission": "example",
    "verificationState": "example"
  }
}

Get domain compliance status

Read a domain’s compliance with Gmail’s sender requirements.

Inputs

DomaindomaintextRequired
Choose a registered sending domain.

Outputs

dataobject
The response from Gmail Postmaster Tools.
Example output
{
  "data": {
    "complianceData": {},
    "name": "example",
    "subdomainComplianceData": {}
  }
}

List domain users

List the people with permission to view a domain.

Inputs

DomaindomaintextRequired
Choose a registered sending domain.
Page tokenpage_tokentext
Continue with the next page token returned by the previous step.
Page sizepage_sizenumber
The maximum number of records on this page.At least 1.

Outputs

dataobject
The response from Gmail Postmaster Tools.
Example output
{
  "data": {
    "nextPageToken": "example",
    "users": [
      {
        "name": "example",
        "permission": "example",
        "user": "example"
      }
    ]
  }
}

List sending domains

List the sending domains registered in Postmaster Tools.

Inputs

Page tokenpage_tokentext
Continue with the next page token returned by the previous step.
Page sizepage_sizenumber
The maximum number of records on this page.At least 1.

Outputs

dataobject
The response from Gmail Postmaster Tools.
Example output
{
  "data": {
    "domains": [
      {
        "createTime": "example",
        "lastVerifyTime": "example",
        "name": "example",
        "permission": "example",
        "verificationState": "example"
      }
    ],
    "nextPageToken": "example"
  }
}

Query traffic statistics

Read spam rates and delivery errors over a date range.

Inputs

DomaindomaintextRequired
Choose a registered sending domain.
Start datestart_datedateRequired
The first day of traffic data to return.
End dateend_datedateRequired
The last day of traffic data to return.
MetricsmetricslistRequired
Choose the metrics to include.One or more of: SPAM_RATE (Spam rate), DELIVERY_ERROR_COUNT (Delivery error count), DELIVERY_ERROR_RATE (Delivery error rate).
Page tokenpage_tokentext
Continue with the token returned by the previous step.
Page sizepage_sizenumber
The maximum number of statistics to return.At least 1.

Outputs

dataobject
The response from Gmail Postmaster Tools.
Example output
{
  "data": {
    "domainStats": [
      {
        "date": {
          "day": 1,
          "month": 1,
          "year": 1
        },
        "metric": "example",
        "name": "example",
        "value": {
          "doubleValue": 1,
          "floatValue": 1,
          "intValue": "example",
          "stringList": {},
          "stringValue": "example"
        }
      }
    ],
    "nextPageToken": "example"
  }
}

Register a sending domain

Add a sending domain to Postmaster Tools for verification.

Inputs

Domain namedomain_nametextRequired
The bare domain name, such as example.com.

Outputs

dataobject
The response from Gmail Postmaster Tools.
Example output
{
  "data": {
    "createTime": "example",
    "lastVerifyTime": "example",
    "name": "example",
    "permission": "example",
    "verificationState": "example"
  }
}

Remove a sending domain

Remove a sending domain from your Postmaster Tools account.

Inputs

DomaindomaintextRequired
Choose a registered sending domain.

Outputs

dataobject
The response from Gmail Postmaster Tools.
Example output
{
  "data": {}
}

Verify a sending domain

Ask Google to verify the DNS record for a sending domain.

Inputs

DomaindomaintextRequired
Choose a registered sending domain.
Dns record typedns_record_typetextRequired
Select the DNS record type you published.One of: TXT, CNAME.

Outputs

dataobject
The response from Gmail Postmaster Tools.
Example output
{
  "data": {}
}

On this page