| 1 |
{ |
| 2 |
"auth": { |
| 3 |
"oauth2": { |
| 4 |
"scopes": { |
| 5 |
"https://www.googleapis.com/auth/postmaster": { |
| 6 |
"description": "Get email traffic metrics, manage domains, and manage domain users for the domains you have registered with Postmaster Tools" |
| 7 |
}, |
| 8 |
"https://www.googleapis.com/auth/postmaster.domain": { |
| 9 |
"description": "View and manage the domains you have registered with Postmaster Tools" |
| 10 |
}, |
| 11 |
"https://www.googleapis.com/auth/postmaster.traffic.readonly": { |
| 12 |
"description": "Get email traffic metrics for the domains you have registered with Postmaster Tools" |
| 13 |
} |
| 14 |
} |
| 15 |
} |
| 16 |
}, |
| 17 |
"basePath": "", |
| 18 |
"baseUrl": "https://gmailpostmastertools.googleapis.com/", |
| 19 |
"batchPath": "batch", |
| 20 |
"canonicalName": "Postmaster Tools", |
| 21 |
"description": "The Postmaster Tools API is a RESTful API that provides programmatic access to email traffic metrics (like spam reports, delivery errors etc) otherwise available through the Gmail Postmaster Tools UI currently.", |
| 22 |
"discoveryVersion": "v1", |
| 23 |
"documentationLink": "https://developers.google.com/workspace/gmail/postmaster", |
| 24 |
"fullyEncodeReservedExpansion": true, |
| 25 |
"icons": { |
| 26 |
"x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 27 |
"x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 28 |
}, |
| 29 |
"id": "gmailpostmastertools:v2", |
| 30 |
"kind": "discovery#restDescription", |
| 31 |
"mtlsRootUrl": "https://gmailpostmastertools.mtls.googleapis.com/", |
| 32 |
"name": "gmailpostmastertools", |
| 33 |
"ownerDomain": "google.com", |
| 34 |
"ownerName": "Google", |
| 35 |
"parameters": { |
| 36 |
"$.xgafv": { |
| 37 |
"description": "V1 error format.", |
| 38 |
"enum": [ |
| 39 |
"1", |
| 40 |
"2" |
| 41 |
], |
| 42 |
"enumDescriptions": [ |
| 43 |
"v1 error format", |
| 44 |
"v2 error format" |
| 45 |
], |
| 46 |
"location": "query", |
| 47 |
"type": "string" |
| 48 |
}, |
| 49 |
"access_token": { |
| 50 |
"description": "OAuth access token.", |
| 51 |
"location": "query", |
| 52 |
"type": "string" |
| 53 |
}, |
| 54 |
"alt": { |
| 55 |
"default": "json", |
| 56 |
"description": "Data format for response.", |
| 57 |
"enum": [ |
| 58 |
"json", |
| 59 |
"media", |
| 60 |
"proto" |
| 61 |
], |
| 62 |
"enumDescriptions": [ |
| 63 |
"Responses with Content-Type of application/json", |
| 64 |
"Media download with context-dependent Content-Type", |
| 65 |
"Responses with Content-Type of application/x-protobuf" |
| 66 |
], |
| 67 |
"location": "query", |
| 68 |
"type": "string" |
| 69 |
}, |
| 70 |
"callback": { |
| 71 |
"description": "JSONP", |
| 72 |
"location": "query", |
| 73 |
"type": "string" |
| 74 |
}, |
| 75 |
"fields": { |
| 76 |
"description": "Selector specifying which fields to include in a partial response.", |
| 77 |
"location": "query", |
| 78 |
"type": "string" |
| 79 |
}, |
| 80 |
"key": { |
| 81 |
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
| 82 |
"location": "query", |
| 83 |
"type": "string" |
| 84 |
}, |
| 85 |
"oauth_token": { |
| 86 |
"description": "OAuth 2.0 token for the current user.", |
| 87 |
"location": "query", |
| 88 |
"type": "string" |
| 89 |
}, |
| 90 |
"prettyPrint": { |
| 91 |
"default": "true", |
| 92 |
"description": "Returns response with indentations and line breaks.", |
| 93 |
"location": "query", |
| 94 |
"type": "boolean" |
| 95 |
}, |
| 96 |
"quotaUser": { |
| 97 |
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
| 98 |
"location": "query", |
| 99 |
"type": "string" |
| 100 |
}, |
| 101 |
"uploadType": { |
| 102 |
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
| 103 |
"location": "query", |
| 104 |
"type": "string" |
| 105 |
}, |
| 106 |
"upload_protocol": { |
| 107 |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
| 108 |
"location": "query", |
| 109 |
"type": "string" |
| 110 |
} |
| 111 |
}, |
| 112 |
"protocol": "rest", |
| 113 |
"resources": { |
| 114 |
"domainStats": { |
| 115 |
"methods": { |
| 116 |
"batchQuery": { |
| 117 |
"description": "Executes a batch of QueryDomainStats requests for multiple domains. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for any of the requested domains.", |
| 118 |
"flatPath": "v2/domainStats:batchQuery", |
| 119 |
"httpMethod": "POST", |
| 120 |
"id": "gmailpostmastertools.domainStats.batchQuery", |
| 121 |
"parameterOrder": [], |
| 122 |
"parameters": {}, |
| 123 |
"path": "v2/domainStats:batchQuery", |
| 124 |
"request": { |
| 125 |
"$ref": "BatchQueryDomainStatsRequest" |
| 126 |
}, |
| 127 |
"response": { |
| 128 |
"$ref": "BatchQueryDomainStatsResponse" |
| 129 |
}, |
| 130 |
"scopes": [ |
| 131 |
"https://www.googleapis.com/auth/postmaster", |
| 132 |
"https://www.googleapis.com/auth/postmaster.traffic.readonly" |
| 133 |
] |
| 134 |
} |
| 135 |
} |
| 136 |
}, |
| 137 |
"domains": { |
| 138 |
"methods": { |
| 139 |
"get": { |
| 140 |
"description": "Retrieves detailed information about a domain registered by you. Returns NOT_FOUND if the domain is not registered by you. Domain represents the metadata of a domain that has been registered within the system and linked to a user.", |
| 141 |
"flatPath": "v2/domains/{domainsId}", |
| 142 |
"httpMethod": "GET", |
| 143 |
"id": "gmailpostmastertools.domains.get", |
| 144 |
"parameterOrder": [ |
| 145 |
"name" |
| 146 |
], |
| 147 |
"parameters": { |
| 148 |
"name": { |
| 149 |
"description": "Required. The resource name of the domain. Format: `domains/{domain_name}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com).", |
| 150 |
"location": "path", |
| 151 |
"pattern": "^domains/[^/]+$", |
| 152 |
"required": true, |
| 153 |
"type": "string" |
| 154 |
} |
| 155 |
}, |
| 156 |
"path": "v2/{+name}", |
| 157 |
"response": { |
| 158 |
"$ref": "Domain" |
| 159 |
}, |
| 160 |
"scopes": [ |
| 161 |
"https://www.googleapis.com/auth/postmaster", |
| 162 |
"https://www.googleapis.com/auth/postmaster.domain" |
| 163 |
] |
| 164 |
}, |
| 165 |
"getComplianceStatus": { |
| 166 |
"description": "Retrieves the compliance status for a given domain. Returns PERMISSION_DENIED if you don't have permission to access compliance status for the domain.", |
| 167 |
"flatPath": "v2/domains/{domainsId}/complianceStatus", |
| 168 |
"httpMethod": "GET", |
| 169 |
"id": "gmailpostmastertools.domains.getComplianceStatus", |
| 170 |
"parameterOrder": [ |
| 171 |
"name" |
| 172 |
], |
| 173 |
"parameters": { |
| 174 |
"name": { |
| 175 |
"description": "Required. The resource name of the domain's compliance status to retrieve. Format: `domains/{domain_id}/complianceStatus`.", |
| 176 |
"location": "path", |
| 177 |
"pattern": "^domains/[^/]+/complianceStatus$", |
| 178 |
"required": true, |
| 179 |
"type": "string" |
| 180 |
} |
| 181 |
}, |
| 182 |
"path": "v2/{+name}", |
| 183 |
"response": { |
| 184 |
"$ref": "DomainComplianceStatus" |
| 185 |
}, |
| 186 |
"scopes": [ |
| 187 |
"https://www.googleapis.com/auth/postmaster", |
| 188 |
"https://www.googleapis.com/auth/postmaster.traffic.readonly" |
| 189 |
] |
| 190 |
}, |
| 191 |
"list": { |
| 192 |
"description": "Retrieves a list of all domains registered by you, along with their corresponding metadata. The order of domains in the response is unspecified and non-deterministic. Newly registered domains will not necessarily be added to the end of this list.", |
| 193 |
"flatPath": "v2/domains", |
| 194 |
"httpMethod": "GET", |
| 195 |
"id": "gmailpostmastertools.domains.list", |
| 196 |
"parameterOrder": [], |
| 197 |
"parameters": { |
| 198 |
"pageSize": { |
| 199 |
"description": "Optional. Requested page size. Server may return fewer domains than requested. If unspecified, the default value for this field is 10. The maximum value for this field is 200.", |
| 200 |
"format": "int32", |
| 201 |
"location": "query", |
| 202 |
"type": "integer" |
| 203 |
}, |
| 204 |
"pageToken": { |
| 205 |
"description": "Optional. The next_page_token value returned from a previous List request, if any.", |
| 206 |
"location": "query", |
| 207 |
"type": "string" |
| 208 |
} |
| 209 |
}, |
| 210 |
"path": "v2/domains", |
| 211 |
"response": { |
| 212 |
"$ref": "ListDomainsResponse" |
| 213 |
}, |
| 214 |
"scopes": [ |
| 215 |
"https://www.googleapis.com/auth/postmaster", |
| 216 |
"https://www.googleapis.com/auth/postmaster.domain" |
| 217 |
] |
| 218 |
} |
| 219 |
}, |
| 220 |
"resources": { |
| 221 |
"domainStats": { |
| 222 |
"methods": { |
| 223 |
"query": { |
| 224 |
"description": "Retrieves a list of domain statistics for a given domain and time period. Returns statistics only for dates where data is available. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for the domain.", |
| 225 |
"flatPath": "v2/domains/{domainsId}/domainStats:query", |
| 226 |
"httpMethod": "POST", |
| 227 |
"id": "gmailpostmastertools.domains.domainStats.query", |
| 228 |
"parameterOrder": [ |
| 229 |
"parent" |
| 230 |
], |
| 231 |
"parameters": { |
| 232 |
"parent": { |
| 233 |
"description": "Required. The parent resource name where the stats are queried. Format: domains/{domain}", |
| 234 |
"location": "path", |
| 235 |
"pattern": "^domains/[^/]+$", |
| 236 |
"required": true, |
| 237 |
"type": "string" |
| 238 |
} |
| 239 |
}, |
| 240 |
"path": "v2/{+parent}/domainStats:query", |
| 241 |
"request": { |
| 242 |
"$ref": "QueryDomainStatsRequest" |
| 243 |
}, |
| 244 |
"response": { |
| 245 |
"$ref": "QueryDomainStatsResponse" |
| 246 |
}, |
| 247 |
"scopes": [ |
| 248 |
"https://www.googleapis.com/auth/postmaster", |
| 249 |
"https://www.googleapis.com/auth/postmaster.traffic.readonly" |
| 250 |
] |
| 251 |
} |
| 252 |
} |
| 253 |
} |
| 254 |
} |
| 255 |
} |
| 256 |
}, |
| 257 |
"revision": "20260512", |
| 258 |
"rootUrl": "https://gmailpostmastertools.googleapis.com/", |
| 259 |
"schemas": { |
| 260 |
"BaseMetric": { |
| 261 |
"description": "Specifies the base metric to query, which can be a predefined standard metric or a user-defined custom metric (if supported in the future).", |
| 262 |
"id": "BaseMetric", |
| 263 |
"properties": { |
| 264 |
"standardMetric": { |
| 265 |
"description": "A predefined standard metric.", |
| 266 |
"enum": [ |
| 267 |
"STANDARD_METRIC_UNSPECIFIED", |
| 268 |
"FEEDBACK_LOOP_ID", |
| 269 |
"FEEDBACK_LOOP_SPAM_RATE", |
| 270 |
"SPAM_RATE", |
| 271 |
"AUTH_SUCCESS_RATE", |
| 272 |
"TLS_ENCRYPTION_MESSAGE_COUNT", |
| 273 |
"TLS_ENCRYPTION_RATE", |
| 274 |
"DELIVERY_ERROR_COUNT", |
| 275 |
"DELIVERY_ERROR_RATE" |
| 276 |
], |
| 277 |
"enumDescriptions": [ |
| 278 |
"Unspecified standard metric. This value should not be used directly.", |
| 279 |
"Predefined metric for Feedback Loop (FBL) id. The `filter` field supports selecting the aggregation key type. Supported format: `aggregation_key_type` = \"\". Supported values: * `FROM_HEADER`: (Default) The metric includes messages with From: header domain matching the requested domain. * `ALL_DKIM`: The metric includes messages with one of the signed DKIM domains matching the requested domain.", |
| 280 |
"Predefined metric for Feedback Loop (FBL) spam rate. The `filter` field requires a `feedback_loop_id` and optionally accepts an `aggregation_key_type`. Supported formats are: * `feedback_loop_id` = \"\" * `feedback_loop_id` = \"\" AND `aggregation_key_type` = \"\" If `aggregation_key_type` is omitted, it defaults to `FROM_HEADER`. Supported values: * `FROM_HEADER`: (Default) The metric includes messages with From: header domain matching the requested domain. * `ALL_DKIM`: The metric includes messages with one of the signed DKIM domains matching the requested domain.", |
| 281 |
"Predefined metric for spam rate.", |
| 282 |
"The success rate of authentication mechanisms (DKIM, SPF, DMARC). Filter must be of type auth_type = \"\" where is one of: [spf, dkim, dmarc]", |
| 283 |
"The rate of messages that were TLS encrypted in transit Filter must be of type traffic_direction = \"\" where is one of: [inbound, outbound]", |
| 284 |
"The rate of messages that were TLS encrypted in transit Filter must be of type traffic_direction = \"\" where is one of: [inbound, outbound]", |
| 285 |
"The total count of delivery errors encountered (temporary or permanent rejects). The `filter` field supports a limited syntax. Supported formats are: * Empty: No filter is applied. * `error_type` = \"\" * `error_type` = \"\" AND `error_reason` = \"\" If an empty filter is provided, the metric will be aggregated across all error types and reasons. If only `error_type` is specified, the metric will be aggregated across all reasons for that type. Supported values: * reject * temp_fail Supported values depend on the : * For 'reject': [bad_attachment, bad_or_missing_ptr_record, ip_in_rbls, low_domain_reputation, low_ip_reputation, spammy_content, stamp_policy_error, other] * For 'temp_fail': [anomalous_traffic_pattern, other]", |
| 286 |
"Delivery error rate for the specified delivery error type. The `filter` field supports a limited syntax. Supported formats are: * Empty: No filter is applied. * `error_type` = \"\" * `error_type` = \"\" AND `error_reason` = \"\" If an empty filter is provided, the metric will be aggregated across all error types and reasons. If only `error_type` is specified, the metric will be aggregated across all reasons for that type. Supported values: * reject * temp_fail Supported values depend on the : * For 'reject': [bad_attachment, bad_or_missing_ptr_record, ip_in_rbls, low_domain_reputation, low_ip_reputation, spammy_content, stamp_policy_error, other] * For 'temp_fail': [anomalous_traffic_pattern, other]" |
| 287 |
], |
| 288 |
"type": "string" |
| 289 |
} |
| 290 |
}, |
| 291 |
"type": "object" |
| 292 |
}, |
| 293 |
"BatchQueryDomainStatsRequest": { |
| 294 |
"description": "Request message for BatchQueryDomainStats.", |
| 295 |
"id": "BatchQueryDomainStatsRequest", |
| 296 |
"properties": { |
| 297 |
"requests": { |
| 298 |
"description": "Required. A list of individual query requests. Each request can be for a different domain. A maximum of 100 requests can be included in a single batch.", |
| 299 |
"items": { |
| 300 |
"$ref": "QueryDomainStatsRequest" |
| 301 |
}, |
| 302 |
"type": "array" |
| 303 |
} |
| 304 |
}, |
| 305 |
"type": "object" |
| 306 |
}, |
| 307 |
"BatchQueryDomainStatsResponse": { |
| 308 |
"description": "Response message for BatchQueryDomainStats.", |
| 309 |
"id": "BatchQueryDomainStatsResponse", |
| 310 |
"properties": { |
| 311 |
"results": { |
| 312 |
"description": "A list of responses, one for each query in the BatchQueryDomainStatsRequest. The order of responses will correspond to the order of requests.", |
| 313 |
"items": { |
| 314 |
"$ref": "BatchQueryDomainStatsResult" |
| 315 |
}, |
| 316 |
"type": "array" |
| 317 |
} |
| 318 |
}, |
| 319 |
"type": "object" |
| 320 |
}, |
| 321 |
"BatchQueryDomainStatsResult": { |
| 322 |
"description": "Represents the result of a single QueryDomainStatsRequest within a batch.", |
| 323 |
"id": "BatchQueryDomainStatsResult", |
| 324 |
"properties": { |
| 325 |
"error": { |
| 326 |
"$ref": "Status", |
| 327 |
"description": "The error status if the individual query failed." |
| 328 |
}, |
| 329 |
"response": { |
| 330 |
"$ref": "QueryDomainStatsResponse", |
| 331 |
"description": "The successful response for the individual query." |
| 332 |
} |
| 333 |
}, |
| 334 |
"type": "object" |
| 335 |
}, |
| 336 |
"ComplianceRowData": { |
| 337 |
"description": "Data for a single row of the compliance status table.", |
| 338 |
"id": "ComplianceRowData", |
| 339 |
"properties": { |
| 340 |
"requirement": { |
| 341 |
"description": "The compliance requirement.", |
| 342 |
"enum": [ |
| 343 |
"COMPLIANCE_REQUIREMENT_UNSPECIFIED", |
| 344 |
"SPF", |
| 345 |
"DKIM", |
| 346 |
"SPF_AND_DKIM", |
| 347 |
"DMARC_POLICY", |
| 348 |
"DMARC_ALIGNMENT", |
| 349 |
"MESSAGE_FORMATTING", |
| 350 |
"DNS_RECORDS", |
| 351 |
"ENCRYPTION", |
| 352 |
"USER_REPORTED_SPAM_RATE", |
| 353 |
"ONE_CLICK_UNSUBSCRIBE", |
| 354 |
"HONOR_UNSUBSCRIBE" |
| 355 |
], |
| 356 |
"enumDescriptions": [ |
| 357 |
"Unspecified.", |
| 358 |
"Whether the sender has properly configured SPF.", |
| 359 |
"Whether the sender has properly configured DKIM.", |
| 360 |
"Whether the sender has properly configured both SPF and DKIM.", |
| 361 |
"Whether the sender has configured DMARC policy.", |
| 362 |
"Whether the From: header is aligned with DKIM or SPF", |
| 363 |
"Whether messages are correctly formatted according to RFC 5322.", |
| 364 |
"Whether the domain has forward and reverse DNS records.", |
| 365 |
"Whether messages has TLS encryption.", |
| 366 |
"Whether the sender is below a threshold for user-reported spam rate.", |
| 367 |
"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.", |
| 368 |
"Whether the sender honors user-initiated unsubscribe requests." |
| 369 |
], |
| 370 |
"type": "string" |
| 371 |
}, |
| 372 |
"status": { |
| 373 |
"$ref": "ComplianceStatus", |
| 374 |
"description": "The compliance status for the requirement." |
| 375 |
} |
| 376 |
}, |
| 377 |
"type": "object" |
| 378 |
}, |
| 379 |
"ComplianceStatus": { |
| 380 |
"description": "The status of a sender compliance requirement.", |
| 381 |
"id": "ComplianceStatus", |
| 382 |
"properties": { |
| 383 |
"status": { |
| 384 |
"description": "Output only. The compliance status.", |
| 385 |
"enum": [ |
| 386 |
"STATE_UNSPECIFIED", |
| 387 |
"COMPLIANT", |
| 388 |
"NEEDS_WORK" |
| 389 |
], |
| 390 |
"enumDescriptions": [ |
| 391 |
"Unspecified.", |
| 392 |
"The compliance requirement is met, and the sender is deemed compliant.", |
| 393 |
"The compliance requirement is unmet, and the sender needs to do work to achieve compliance." |
| 394 |
], |
| 395 |
"readOnly": true, |
| 396 |
"type": "string" |
| 397 |
} |
| 398 |
}, |
| 399 |
"type": "object" |
| 400 |
}, |
| 401 |
"Date": { |
| 402 |
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", |
| 403 |
"id": "Date", |
| 404 |
"properties": { |
| 405 |
"day": { |
| 406 |
"description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", |
| 407 |
"format": "int32", |
| 408 |
"type": "integer" |
| 409 |
}, |
| 410 |
"month": { |
| 411 |
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", |
| 412 |
"format": "int32", |
| 413 |
"type": "integer" |
| 414 |
}, |
| 415 |
"year": { |
| 416 |
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", |
| 417 |
"format": "int32", |
| 418 |
"type": "integer" |
| 419 |
} |
| 420 |
}, |
| 421 |
"type": "object" |
| 422 |
}, |
| 423 |
"DateList": { |
| 424 |
"description": "A set of specific dates.", |
| 425 |
"id": "DateList", |
| 426 |
"properties": { |
| 427 |
"dates": { |
| 428 |
"description": "Required. The list of specific dates for which to retrieve data.", |
| 429 |
"items": { |
| 430 |
"$ref": "Date" |
| 431 |
}, |
| 432 |
"type": "array" |
| 433 |
} |
| 434 |
}, |
| 435 |
"type": "object" |
| 436 |
}, |
| 437 |
"DateRange": { |
| 438 |
"description": "A single date range defined by a start and end date.", |
| 439 |
"id": "DateRange", |
| 440 |
"properties": { |
| 441 |
"end": { |
| 442 |
"$ref": "Date", |
| 443 |
"description": "Required. The inclusive end date of the date range." |
| 444 |
}, |
| 445 |
"start": { |
| 446 |
"$ref": "Date", |
| 447 |
"description": "Required. The inclusive start date of the date range." |
| 448 |
} |
| 449 |
}, |
| 450 |
"type": "object" |
| 451 |
}, |
| 452 |
"DateRanges": { |
| 453 |
"description": "A set of date ranges.", |
| 454 |
"id": "DateRanges", |
| 455 |
"properties": { |
| 456 |
"dateRanges": { |
| 457 |
"description": "Required. The list of date ranges for which to retrieve data.", |
| 458 |
"items": { |
| 459 |
"$ref": "DateRange" |
| 460 |
}, |
| 461 |
"type": "array" |
| 462 |
} |
| 463 |
}, |
| 464 |
"type": "object" |
| 465 |
}, |
| 466 |
"Domain": { |
| 467 |
"description": "Information about a domain registered by the user.", |
| 468 |
"id": "Domain", |
| 469 |
"properties": { |
| 470 |
"createTime": { |
| 471 |
"description": "Output only. Immutable. The timestamp at which the domain was added to the user's account.", |
| 472 |
"format": "google-datetime", |
| 473 |
"readOnly": true, |
| 474 |
"type": "string" |
| 475 |
}, |
| 476 |
"lastVerifyTime": { |
| 477 |
"description": "The timestamp at which the domain was last verified by the user.", |
| 478 |
"format": "google-datetime", |
| 479 |
"type": "string" |
| 480 |
}, |
| 481 |
"name": { |
| 482 |
"description": "Identifier. The resource name of the domain. Format: `domains/{domain_name}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com).", |
| 483 |
"type": "string" |
| 484 |
}, |
| 485 |
"permission": { |
| 486 |
"description": "Output only. User's permission of this domain.", |
| 487 |
"enum": [ |
| 488 |
"PERMISSION_UNSPECIFIED", |
| 489 |
"READER", |
| 490 |
"OWNER", |
| 491 |
"NONE" |
| 492 |
], |
| 493 |
"enumDescriptions": [ |
| 494 |
"Unspecified permission.", |
| 495 |
"User has read access to the domain.", |
| 496 |
"User has owner access to the domain.", |
| 497 |
"User has no access to the domain." |
| 498 |
], |
| 499 |
"readOnly": true, |
| 500 |
"type": "string" |
| 501 |
}, |
| 502 |
"verificationState": { |
| 503 |
"description": "Output only. Information about a user's verification history and properties for the domain.", |
| 504 |
"enum": [ |
| 505 |
"VERIFICATION_STATE_UNSPECIFIED", |
| 506 |
"UNVERIFIED", |
| 507 |
"VERIFIED" |
| 508 |
], |
| 509 |
"enumDescriptions": [ |
| 510 |
"Unspecified.", |
| 511 |
"The domain is unverified.", |
| 512 |
"The domain is verified." |
| 513 |
], |
| 514 |
"readOnly": true, |
| 515 |
"type": "string" |
| 516 |
} |
| 517 |
}, |
| 518 |
"type": "object" |
| 519 |
}, |
| 520 |
"DomainComplianceData": { |
| 521 |
"description": "Compliance data for a given domain.", |
| 522 |
"id": "DomainComplianceData", |
| 523 |
"properties": { |
| 524 |
"domainId": { |
| 525 |
"description": "Domain that this data is for.", |
| 526 |
"type": "string" |
| 527 |
}, |
| 528 |
"honorUnsubscribeVerdict": { |
| 529 |
"$ref": "HonorUnsubscribeVerdict", |
| 530 |
"description": "Unsubscribe honoring compliance verdict." |
| 531 |
}, |
| 532 |
"oneClickUnsubscribeVerdict": { |
| 533 |
"$ref": "OneClickUnsubscribeVerdict", |
| 534 |
"description": "One-click unsubscribe compliance verdict." |
| 535 |
}, |
| 536 |
"rowData": { |
| 537 |
"description": "Data for each of the rows of the table. Each message contains all the data that backs a single row.", |
| 538 |
"items": { |
| 539 |
"$ref": "ComplianceRowData" |
| 540 |
}, |
| 541 |
"type": "array" |
| 542 |
} |
| 543 |
}, |
| 544 |
"type": "object" |
| 545 |
}, |
| 546 |
"DomainComplianceStatus": { |
| 547 |
"description": "Compliance status for a domain.", |
| 548 |
"id": "DomainComplianceStatus", |
| 549 |
"properties": { |
| 550 |
"complianceData": { |
| 551 |
"$ref": "DomainComplianceData", |
| 552 |
"description": "Compliance data for the registrable domain part of the domain in `name`. For example, if `name` is `domains/example.com/complianceStatus`, this field contains compliance data for `example.com`." |
| 553 |
}, |
| 554 |
"name": { |
| 555 |
"description": "Identifier. The resource name of the domain's compliance status. Format: `domains/{domain_id}/complianceStatus`.", |
| 556 |
"type": "string" |
| 557 |
}, |
| 558 |
"subdomainComplianceData": { |
| 559 |
"$ref": "DomainComplianceData", |
| 560 |
"description": "Compliance data calculated specifically for the subdomain in `name`. This field is only populated if the domain in `name` is a subdomain that differs from its registrable domain (e.g., `sub.example.com`), and if compliance data is available for that specific subdomain." |
| 561 |
} |
| 562 |
}, |
| 563 |
"type": "object" |
| 564 |
}, |
| 565 |
"DomainStat": { |
| 566 |
"description": "Email statistics for a domain for a specified time period or date.", |
| 567 |
"id": "DomainStat", |
| 568 |
"properties": { |
| 569 |
"date": { |
| 570 |
"$ref": "Date", |
| 571 |
"description": "Optional. The specific date for these stats, if granularity is DAILY. This field is populated if the QueryDomainStatsRequest specified a DAILY aggregation granularity." |
| 572 |
}, |
| 573 |
"metric": { |
| 574 |
"description": "The user-defined name from MetricDefinition.name in the request, used to correlate this result with the requested metric.", |
| 575 |
"type": "string" |
| 576 |
}, |
| 577 |
"name": { |
| 578 |
"description": "Output only. The resource name of the DomainStat resource. Format: domains/{domain}/domainStats/{domain_stat} The `{domain_stat}` segment is an opaque, server-generated ID. We recommend using the `metric` field to identify queried metrics instead of parsing the name.", |
| 579 |
"readOnly": true, |
| 580 |
"type": "string" |
| 581 |
}, |
| 582 |
"value": { |
| 583 |
"$ref": "StatisticValue", |
| 584 |
"description": "The value of the corresponding metric." |
| 585 |
} |
| 586 |
}, |
| 587 |
"type": "object" |
| 588 |
}, |
| 589 |
"HonorUnsubscribeVerdict": { |
| 590 |
"description": "Compliance verdict for whether a sender meets the unsubscribe honoring compliance requirement.", |
| 591 |
"id": "HonorUnsubscribeVerdict", |
| 592 |
"properties": { |
| 593 |
"reason": { |
| 594 |
"description": "The specific reason for the compliance verdict. Must be empty if the status is compliant.", |
| 595 |
"enum": [ |
| 596 |
"REASON_UNSPECIFIED", |
| 597 |
"NOT_HONORING", |
| 598 |
"NOT_HONORING_TOO_FEW_CAMPAIGNS", |
| 599 |
"NOT_HONORING_TOO_MANY_CAMPAIGNS" |
| 600 |
], |
| 601 |
"enumDescriptions": [ |
| 602 |
"Unspecified.", |
| 603 |
"The sender does not honor unsubscribe requests.", |
| 604 |
"The sender does not honor unsubscribe requests and consider to increase the number of relevant campaigns.", |
| 605 |
"The sender does not honor unsubscribe requests and consider to reduce the number of relevant campaigns." |
| 606 |
], |
| 607 |
"type": "string" |
| 608 |
}, |
| 609 |
"status": { |
| 610 |
"$ref": "ComplianceStatus", |
| 611 |
"description": "The compliance status." |
| 612 |
} |
| 613 |
}, |
| 614 |
"type": "object" |
| 615 |
}, |
| 616 |
"ListDomainsResponse": { |
| 617 |
"description": "Response message for ListDomains.", |
| 618 |
"id": "ListDomainsResponse", |
| 619 |
"properties": { |
| 620 |
"domains": { |
| 621 |
"description": "The domains that have been registered by the user.", |
| 622 |
"items": { |
| 623 |
"$ref": "Domain" |
| 624 |
}, |
| 625 |
"type": "array" |
| 626 |
}, |
| 627 |
"nextPageToken": { |
| 628 |
"description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", |
| 629 |
"type": "string" |
| 630 |
} |
| 631 |
}, |
| 632 |
"type": "object" |
| 633 |
}, |
| 634 |
"MetricDefinition": { |
| 635 |
"description": "Defines a specific metric to query, including a user-defined name, the base metric type, and optional filters.", |
| 636 |
"id": "MetricDefinition", |
| 637 |
"properties": { |
| 638 |
"baseMetric": { |
| 639 |
"$ref": "BaseMetric", |
| 640 |
"description": "Required. The underlying metric to query." |
| 641 |
}, |
| 642 |
"filter": { |
| 643 |
"description": "Optional. Optional filters to apply to the metric.", |
| 644 |
"type": "string" |
| 645 |
}, |
| 646 |
"name": { |
| 647 |
"description": "Required. The user-defined name for this metric. This name will be used as the key for this metric's value in the response.", |
| 648 |
"type": "string" |
| 649 |
} |
| 650 |
}, |
| 651 |
"type": "object" |
| 652 |
}, |
| 653 |
"OneClickUnsubscribeVerdict": { |
| 654 |
"description": "Compliance verdict for whether a sender meets the one-click unsubscribe compliance requirement.", |
| 655 |
"id": "OneClickUnsubscribeVerdict", |
| 656 |
"properties": { |
| 657 |
"reason": { |
| 658 |
"description": "The specific reason for the compliance verdict. Must be empty if the status is compliant.", |
| 659 |
"enum": [ |
| 660 |
"REASON_UNSPECIFIED", |
| 661 |
"NO_UNSUB_GENERAL", |
| 662 |
"NO_UNSUB_SPAM_REPORTS", |
| 663 |
"NO_UNSUB_PROMO_SPAM_REPORTS" |
| 664 |
], |
| 665 |
"enumDescriptions": [ |
| 666 |
"Unspecified.", |
| 667 |
"Sender does not support one-click unsubscribe for the majority of their messages.", |
| 668 |
"Sender does not support one-click unsubscribe for most messages that are manually reported as spam.", |
| 669 |
"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`." |
| 670 |
], |
| 671 |
"type": "string" |
| 672 |
}, |
| 673 |
"status": { |
| 674 |
"$ref": "ComplianceStatus", |
| 675 |
"description": "The compliance status." |
| 676 |
} |
| 677 |
}, |
| 678 |
"type": "object" |
| 679 |
}, |
| 680 |
"QueryDomainStatsRequest": { |
| 681 |
"description": "Request message for QueryDomainStats.", |
| 682 |
"id": "QueryDomainStatsRequest", |
| 683 |
"properties": { |
| 684 |
"aggregationGranularity": { |
| 685 |
"description": "Optional. The granularity at which to aggregate the statistics. If unspecified, defaults to DAILY.", |
| 686 |
"enum": [ |
| 687 |
"AGGREGATION_GRANULARITY_UNSPECIFIED", |
| 688 |
"DAILY", |
| 689 |
"OVERALL" |
| 690 |
], |
| 691 |
"enumDescriptions": [ |
| 692 |
"Unspecified granularity. Defaults to DAILY.", |
| 693 |
"Statistics are aggregated on a daily basis. Each DomainStats entry in the response will correspond to a single day.", |
| 694 |
"Statistics are aggregated over the entire requested time period. Each DomainStats entry in the response will represent the total for the period." |
| 695 |
], |
| 696 |
"type": "string" |
| 697 |
}, |
| 698 |
"metricDefinitions": { |
| 699 |
"description": "Required. The specific metrics to query. You can define a custom name for each metric, which will be used in the response.", |
| 700 |
"items": { |
| 701 |
"$ref": "MetricDefinition" |
| 702 |
}, |
| 703 |
"type": "array" |
| 704 |
}, |
| 705 |
"pageSize": { |
| 706 |
"description": "Optional. The maximum number of DomainStats resources to return in the response. The server may return fewer than this value. If unspecified, a default value of 10 will be used. The maximum value is 200.", |
| 707 |
"format": "int32", |
| 708 |
"type": "integer" |
| 709 |
}, |
| 710 |
"pageToken": { |
| 711 |
"description": "Optional. The next_page_token value returned from a previous List request, if any. If the aggregation granularity is DAILY, the page token will be the encoded date + \"/\" + metric name. If the aggregation granularity is OVERALL, the page token will be the encoded metric name.", |
| 712 |
"type": "string" |
| 713 |
}, |
| 714 |
"parent": { |
| 715 |
"description": "Required. The parent resource name where the stats are queried. Format: domains/{domain}", |
| 716 |
"type": "string" |
| 717 |
}, |
| 718 |
"timeQuery": { |
| 719 |
"$ref": "TimeQuery", |
| 720 |
"description": "Required. The time range or specific dates for which to retrieve the metrics." |
| 721 |
} |
| 722 |
}, |
| 723 |
"type": "object" |
| 724 |
}, |
| 725 |
"QueryDomainStatsResponse": { |
| 726 |
"description": "Response message for QueryDomainStats.", |
| 727 |
"id": "QueryDomainStatsResponse", |
| 728 |
"properties": { |
| 729 |
"domainStats": { |
| 730 |
"description": "The list of domain statistics. Each DomainStat object contains the value for a metric requested in the QueryDomainStatsRequest.", |
| 731 |
"items": { |
| 732 |
"$ref": "DomainStat" |
| 733 |
}, |
| 734 |
"type": "array" |
| 735 |
}, |
| 736 |
"nextPageToken": { |
| 737 |
"description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", |
| 738 |
"type": "string" |
| 739 |
} |
| 740 |
}, |
| 741 |
"type": "object" |
| 742 |
}, |
| 743 |
"StatisticValue": { |
| 744 |
"description": "The actual value of a statistic.", |
| 745 |
"id": "StatisticValue", |
| 746 |
"properties": { |
| 747 |
"doubleValue": { |
| 748 |
"description": "Double value.", |
| 749 |
"format": "double", |
| 750 |
"type": "number" |
| 751 |
}, |
| 752 |
"floatValue": { |
| 753 |
"description": "Float value.", |
| 754 |
"format": "float", |
| 755 |
"type": "number" |
| 756 |
}, |
| 757 |
"intValue": { |
| 758 |
"description": "Integer value.", |
| 759 |
"format": "int64", |
| 760 |
"type": "string" |
| 761 |
}, |
| 762 |
"stringList": { |
| 763 |
"$ref": "StringList", |
| 764 |
"description": "List of string values." |
| 765 |
}, |
| 766 |
"stringValue": { |
| 767 |
"description": "String value.", |
| 768 |
"type": "string" |
| 769 |
} |
| 770 |
}, |
| 771 |
"type": "object" |
| 772 |
}, |
| 773 |
"Status": { |
| 774 |
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", |
| 775 |
"id": "Status", |
| 776 |
"properties": { |
| 777 |
"code": { |
| 778 |
"description": "The status code, which should be an enum value of google.rpc.Code.", |
| 779 |
"format": "int32", |
| 780 |
"type": "integer" |
| 781 |
}, |
| 782 |
"details": { |
| 783 |
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", |
| 784 |
"items": { |
| 785 |
"additionalProperties": { |
| 786 |
"description": "Properties of the object. Contains field @type with type URL.", |
| 787 |
"type": "any" |
| 788 |
}, |
| 789 |
"type": "object" |
| 790 |
}, |
| 791 |
"type": "array" |
| 792 |
}, |
| 793 |
"message": { |
| 794 |
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", |
| 795 |
"type": "string" |
| 796 |
} |
| 797 |
}, |
| 798 |
"type": "object" |
| 799 |
}, |
| 800 |
"StringList": { |
| 801 |
"description": "Represents a list of strings.", |
| 802 |
"id": "StringList", |
| 803 |
"properties": { |
| 804 |
"values": { |
| 805 |
"description": "The string values.", |
| 806 |
"items": { |
| 807 |
"type": "string" |
| 808 |
}, |
| 809 |
"type": "array" |
| 810 |
} |
| 811 |
}, |
| 812 |
"type": "object" |
| 813 |
}, |
| 814 |
"TimeQuery": { |
| 815 |
"description": "The date ranges or specific dates for which you want to retrieve data.", |
| 816 |
"id": "TimeQuery", |
| 817 |
"properties": { |
| 818 |
"dateList": { |
| 819 |
"$ref": "DateList", |
| 820 |
"description": "A list of specific dates." |
| 821 |
}, |
| 822 |
"dateRanges": { |
| 823 |
"$ref": "DateRanges", |
| 824 |
"description": "A list of date ranges." |
| 825 |
} |
| 826 |
}, |
| 827 |
"type": "object" |
| 828 |
} |
| 829 |
}, |
| 830 |
"servicePath": "", |
| 831 |
"title": "Gmail Postmaster Tools API", |
| 832 |
"version": "v2", |
| 833 |
"version_module": true |
| 834 |
} |