# Gmail Postmaster Tools

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

App · 9 actions. Web page: https://docs.lodol.com/docs/integrations/gmail-postmaster-tools

## Actions

### Get a domain verification token

Get the DNS verification token for a registered domain.

**Inputs**

- Domain (`domain`, text, required): Choose a registered sending domain.
- Dns record type (`dns_record_type`, text, required): How you will publish the value in DNS. One of: `TXT`, `CNAME`.

**Outputs**

- `data` (object): The response from Gmail Postmaster Tools.

**Example output**

```json
{
  "data": {
    "name": "example",
    "token": "example",
    "verificationMethod": "example"
  }
}
```

### Get a sending domain

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

**Inputs**

- Domain (`domain`, text, required): Choose a registered sending domain.

**Outputs**

- `data` (object): The response from Gmail Postmaster Tools.

**Example output**

```json
{
  "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**

- Domain (`domain`, text, required): Choose a registered sending domain.

**Outputs**

- `data` (object): The response from Gmail Postmaster Tools.

**Example output**

```json
{
  "data": {
    "complianceData": {},
    "name": "example",
    "subdomainComplianceData": {}
  }
}
```

### List domain users

List the people with permission to view a domain.

**Inputs**

- Domain (`domain`, text, required): Choose a registered sending domain.
- Page token (`page_token`, text): Continue with the next page token returned by the previous step.
- Page size (`page_size`, number): The maximum number of records on this page. At least 1.

**Outputs**

- `data` (object): The response from Gmail Postmaster Tools.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "users": [
      {
        "name": "example",
        "permission": "example",
        "user": "example"
      }
    ]
  }
}
```

### List sending domains

List the sending domains registered in Postmaster Tools.

**Inputs**

- Page token (`page_token`, text): Continue with the next page token returned by the previous step.
- Page size (`page_size`, number): The maximum number of records on this page. At least 1.

**Outputs**

- `data` (object): The response from Gmail Postmaster Tools.

**Example output**

```json
{
  "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**

- Domain (`domain`, text, required): Choose a registered sending domain.
- Start date (`start_date`, date, required): The first day of traffic data to return.
- End date (`end_date`, date, required): The last day of traffic data to return.
- Metrics (`metrics`, list, required): 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 token (`page_token`, text): Continue with the token returned by the previous step.
- Page size (`page_size`, number): The maximum number of statistics to return. At least 1.

**Outputs**

- `data` (object): The response from Gmail Postmaster Tools.

**Example output**

```json
{
  "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 name (`domain_name`, text, required): The bare domain name, such as example.com.

**Outputs**

- `data` (object): The response from Gmail Postmaster Tools.

**Example output**

```json
{
  "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**

- Domain (`domain`, text, required): Choose a registered sending domain.

**Outputs**

- `data` (object): The response from Gmail Postmaster Tools.

**Example output**

```json
{
  "data": {}
}
```

### Verify a sending domain

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

**Inputs**

- Domain (`domain`, text, required): Choose a registered sending domain.
- Dns record type (`dns_record_type`, text, required): Select the DNS record type you published. One of: `TXT`, `CNAME`.

**Outputs**

- `data` (object): The response from Gmail Postmaster Tools.

**Example output**

```json
{
  "data": {}
}
```
