aboutsummaryrefslogtreecommitdiff
path: root/googleapiclient/discovery_cache/documents/gmailpostmastertools.v1beta1.json
blob: 254e9544e8b1eec355d4cadbc6c969a15937a85b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/postmaster.readonly": {
"description": "See email traffic metrics for the domains you have registered in Gmail Postmaster Tools"
}
}
}
},
"basePath": "",
"baseUrl": "https://gmailpostmastertools.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Postmaster Tools",
"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.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/gmail/postmaster",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "gmailpostmastertools:v1beta1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://gmailpostmastertools.mtls.googleapis.com/",
"name": "gmailpostmastertools",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"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.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"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.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"domains": {
"methods": {
"get": {
"description": "Gets a specific domain registered by the client. Returns NOT_FOUND if the domain does not exist.",
"flatPath": "v1beta1/domains/{domainsId}",
"httpMethod": "GET",
"id": "gmailpostmastertools.domains.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The resource name of the domain. It should have the form `domains/{domain_name}`, where domain_name is the fully qualified domain name.",
"location": "path",
"pattern": "^domains/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta1/{+name}",
"response": {
"$ref": "Domain"
},
"scopes": [
"https://www.googleapis.com/auth/postmaster.readonly"
]
},
"list": {
"description": "Lists the domains that have been registered by the client. The order of domains in the response is unspecified and non-deterministic. Newly created domains will not necessarily be added to the end of this list.",
"flatPath": "v1beta1/domains",
"httpMethod": "GET",
"id": "gmailpostmastertools.domains.list",
"parameterOrder": [],
"parameters": {
"pageSize": {
"description": "Requested page size. Server may return fewer domains than requested. If unspecified, server will pick an appropriate default.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The next_page_token value returned from a previous List request, if any. This is the value of ListDomainsResponse.next_page_token returned from the previous call to `ListDomains` method.",
"location": "query",
"type": "string"
}
},
"path": "v1beta1/domains",
"response": {
"$ref": "ListDomainsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/postmaster.readonly"
]
}
},
"resources": {
"trafficStats": {
"methods": {
"get": {
"description": "Get traffic statistics for a domain on a specific date. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.",
"flatPath": "v1beta1/domains/{domainsId}/trafficStats/{trafficStatsId}",
"httpMethod": "GET",
"id": "gmailpostmastertools.domains.trafficStats.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The resource name of the traffic statistics to get. E.g., domains/mymail.mydomain.com/trafficStats/20160807.",
"location": "path",
"pattern": "^domains/[^/]+/trafficStats/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta1/{+name}",
"response": {
"$ref": "TrafficStats"
},
"scopes": [
"https://www.googleapis.com/auth/postmaster.readonly"
]
},
"list": {
"description": "List traffic statistics for all available days. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.",
"flatPath": "v1beta1/domains/{domainsId}/trafficStats",
"httpMethod": "GET",
"id": "gmailpostmastertools.domains.trafficStats.list",
"parameterOrder": [
"parent"
],
"parameters": {
"endDate.day": {
"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.",
"format": "int32",
"location": "query",
"type": "integer"
},
"endDate.month": {
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
"format": "int32",
"location": "query",
"type": "integer"
},
"endDate.year": {
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageSize": {
"description": "Requested page size. Server may return fewer TrafficStats than requested. If unspecified, server will pick an appropriate default.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The next_page_token value returned from a previous List request, if any. This is the value of ListTrafficStatsResponse.next_page_token returned from the previous call to `ListTrafficStats` method.",
"location": "query",
"type": "string"
},
"parent": {
"description": "The resource name of the domain whose traffic statistics we'd like to list. It should have the form `domains/{domain_name}`, where domain_name is the fully qualified domain name.",
"location": "path",
"pattern": "^domains/[^/]+$",
"required": true,
"type": "string"
},
"startDate.day": {
"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.",
"format": "int32",
"location": "query",
"type": "integer"
},
"startDate.month": {
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
"format": "int32",
"location": "query",
"type": "integer"
},
"startDate.year": {
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
"format": "int32",
"location": "query",
"type": "integer"
}
},
"path": "v1beta1/{+parent}/trafficStats",
"response": {
"$ref": "ListTrafficStatsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/postmaster.readonly"
]
}
}
}
}
}
},
"revision": "20240508",
"rootUrl": "https://gmailpostmastertools.googleapis.com/",
"schemas": {
"DeliveryError": {
"description": "Metric on a particular delivery error type.",
"id": "DeliveryError",
"properties": {
"errorClass": {
"description": "The class of delivery error.",
"enum": [
"DELIVERY_ERROR_CLASS_UNSPECIFIED",
"PERMANENT_ERROR",
"TEMPORARY_ERROR"
],
"enumDescriptions": [
"The default value which should never be used explicitly.",
"Delivery of message has been rejected.",
"Temporary failure of message delivery to the recipient."
],
"type": "string"
},
"errorRatio": {
"description": "The ratio of messages where the error occurred vs all authenticated traffic.",
"format": "double",
"type": "number"
},
"errorType": {
"description": "The type of delivery error.",
"enum": [
"DELIVERY_ERROR_TYPE_UNSPECIFIED",
"RATE_LIMIT_EXCEEDED",
"SUSPECTED_SPAM",
"CONTENT_SPAMMY",
"BAD_ATTACHMENT",
"BAD_DMARC_POLICY",
"LOW_IP_REPUTATION",
"LOW_DOMAIN_REPUTATION",
"IP_IN_RBL",
"DOMAIN_IN_RBL",
"BAD_PTR_RECORD"
],
"enumDescriptions": [
"The default value which should never be used explicitly.",
"The Domain or IP is sending traffic at a suspiciously high rate, due to which temporary rate limits have been imposed. The limit will be lifted when Gmail is confident enough of the nature of the traffic.",
"The traffic is suspected to be spam, by Gmail, for various reasons.",
"The traffic is suspected to be spammy, specific to the content.",
"Traffic contains attachments not supported by Gmail.",
"The sender domain has set up a DMARC rejection policy.",
"The IP reputation of the sending IP is very low.",
"The Domain reputation of the sending domain is very low.",
"The IP is listed in one or more public [Real-time Blackhole Lists](http://en.wikipedia.org/wiki/DNSBL). Work with the RBL to get your IP delisted.",
"The Domain is listed in one or more public [Real-time Blackhole Lists](http://en.wikipedia.org/wiki/DNSBL). Work with the RBL to get your domain delisted.",
"The sending IP is missing a [PTR record](https://support.google.com/domains/answer/3251147#ptr)."
],
"type": "string"
}
},
"type": "object"
},
"Domain": {
"description": "A registered domain resource in the Postmaster API.",
"id": "Domain",
"properties": {
"createTime": {
"description": "Timestamp when the user registered this domain. Assigned by the server.",
"format": "google-datetime",
"type": "string"
},
"name": {
"description": "The resource name of the Domain. Domain names have the form `domains/{domain_name}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com).",
"type": "string"
},
"permission": {
"description": "User\u2019s permission for this domain. Assigned by the server.",
"enum": [
"PERMISSION_UNSPECIFIED",
"OWNER",
"READER",
"NONE"
],
"enumDescriptions": [
"The default value and should never be used explicitly.",
"User has read access to the domain and can share access with others.",
"User has read access to the domain.",
"User doesn't have permission to access information about the domain. User did not verify ownership of domain nor was access granted by other domain owners."
],
"type": "string"
}
},
"type": "object"
},
"FeedbackLoop": {
"description": "[Feedback loop](https://support.google.com/mail/answer/6254652) identifier information.",
"id": "FeedbackLoop",
"properties": {
"id": {
"description": "Feedback loop identifier that uniquely identifies individual campaigns.",
"type": "string"
},
"spamRatio": {
"description": "The ratio of user marked spam messages with the identifier vs the total number of inboxed messages with that identifier.",
"format": "double",
"type": "number"
}
},
"type": "object"
},
"IpReputation": {
"description": "IP Reputation information for a set of IPs in a specific reputation category.",
"id": "IpReputation",
"properties": {
"ipCount": {
"description": "Total number of unique IPs in this reputation category. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).",
"format": "int64",
"type": "string"
},
"numIps": {
"deprecated": true,
"description": "Total number of unique IPs in this reputation category. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/). Deprecated to be complied with ApiLinter for Quantities. Use ip_count instead.",
"format": "int64",
"type": "string"
},
"reputation": {
"description": "The reputation category this IP reputation represents.",
"enum": [
"REPUTATION_CATEGORY_UNSPECIFIED",
"HIGH",
"MEDIUM",
"LOW",
"BAD"
],
"enumDescriptions": [
"The default value which should never be used explicitly. This represents the state where no reputation information is available.",
"Has a good track record of a very low spam rate, and complies with Gmail's sender guidelines. Mail will rarely be marked by the spam filter.",
"Known to send good mail, but is prone to sending a low volume of spam intermittently. Most of the email from this entity will have a fair deliverability rate, except when there is a notable increase in spam levels.",
"Known to send a considerable volume of spam regularly, and mail from this sender will likely be marked as spam.",
"History of sending an enormously high volume of spam. Mail coming from this entity will almost always be rejected at SMTP level or marked as spam."
],
"type": "string"
},
"sampleIps": {
"description": "A sample of IPs in this reputation category.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ListDomainsResponse": {
"description": "Response message for ListDomains.",
"id": "ListDomainsResponse",
"properties": {
"domains": {
"description": "The list of domains.",
"items": {
"$ref": "Domain"
},
"type": "array"
},
"nextPageToken": {
"description": "Token to retrieve the next page of results, or empty if there are no more results in the list.",
"type": "string"
}
},
"type": "object"
},
"ListTrafficStatsResponse": {
"description": "Response message for ListTrafficStats.",
"id": "ListTrafficStatsResponse",
"properties": {
"nextPageToken": {
"description": "Token to retrieve the next page of results, or empty if there are no more results in the list.",
"type": "string"
},
"trafficStats": {
"description": "The list of TrafficStats.",
"items": {
"$ref": "TrafficStats"
},
"type": "array"
}
},
"type": "object"
},
"TrafficStats": {
"description": "Email traffic statistics pertaining to a specific date.",
"id": "TrafficStats",
"properties": {
"deliveryErrors": {
"description": "Delivery errors for the domain. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).",
"items": {
"$ref": "DeliveryError"
},
"type": "array"
},
"dkimSuccessRatio": {
"description": "The ratio of mail that successfully authenticated with DKIM vs. all mail that attempted to authenticate with [DKIM](http://www.dkim.org/). Spoofed mail is excluded.",
"format": "double",
"type": "number"
},
"dmarcSuccessRatio": {
"description": "The ratio of mail that passed [DMARC](https://dmarc.org/) alignment checks vs all mail received from the domain that successfully authenticated with either of [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).",
"format": "double",
"type": "number"
},
"domainReputation": {
"description": "Reputation of the domain.",
"enum": [
"REPUTATION_CATEGORY_UNSPECIFIED",
"HIGH",
"MEDIUM",
"LOW",
"BAD"
],
"enumDescriptions": [
"The default value which should never be used explicitly. This represents the state where no reputation information is available.",
"Has a good track record of a very low spam rate, and complies with Gmail's sender guidelines. Mail will rarely be marked by the spam filter.",
"Known to send good mail, but is prone to sending a low volume of spam intermittently. Most of the email from this entity will have a fair deliverability rate, except when there is a notable increase in spam levels.",
"Known to send a considerable volume of spam regularly, and mail from this sender will likely be marked as spam.",
"History of sending an enormously high volume of spam. Mail coming from this entity will almost always be rejected at SMTP level or marked as spam."
],
"type": "string"
},
"inboundEncryptionRatio": {
"description": "The ratio of incoming mail (to Gmail), that passed secure transport (TLS) vs all mail received from that domain. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).",
"format": "double",
"type": "number"
},
"ipReputations": {
"description": "Reputation information pertaining to the IP addresses of the email servers for the domain. There is exactly one entry for each reputation category except REPUTATION_CATEGORY_UNSPECIFIED.",
"items": {
"$ref": "IpReputation"
},
"type": "array"
},
"name": {
"description": "The resource name of the traffic statistics. Traffic statistic names have the form `domains/{domain}/trafficStats/{date}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com) of the domain this traffic statistics pertains to and date is the date in yyyymmdd format that these statistics corresponds to. For example: domains/mymail.mydomain.com/trafficStats/20160807",
"type": "string"
},
"outboundEncryptionRatio": {
"description": "The ratio of outgoing mail (from Gmail) that was accepted over secure transport (TLS).",
"format": "double",
"type": "number"
},
"spammyFeedbackLoops": {
"description": "Spammy [Feedback loop identifiers] (https://support.google.com/mail/answer/6254652) with their individual spam rates. This metric only pertains to traffic that is authenticated by [DKIM](http://www.dkim.org/).",
"items": {
"$ref": "FeedbackLoop"
},
"type": "array"
},
"spfSuccessRatio": {
"description": "The ratio of mail that successfully authenticated with SPF vs. all mail that attempted to authenticate with [SPF](http://www.openspf.org/). Spoofed mail is excluded.",
"format": "double",
"type": "number"
},
"userReportedSpamRatio": {
"description": "The ratio of user-report spam vs. email that was sent to the inbox. This is potentially inexact -- users may want to refer to the description of the interval fields userReportedSpamRatioLowerBound and userReportedSpamRatioUpperBound for more explicit accuracy guarantees. This metric only pertains to emails authenticated by [DKIM](http://www.dkim.org/).",
"format": "double",
"type": "number"
},
"userReportedSpamRatioLowerBound": {
"description": "The lower bound of the confidence interval for the user reported spam ratio. If this field is set, then the value of userReportedSpamRatio is set to the midpoint of this interval and is thus inexact. However, the true ratio is guaranteed to be in between this lower bound and the corresponding upper bound 95% of the time. This metric only pertains to emails authenticated by [DKIM](http://www.dkim.org/).",
"format": "double",
"type": "number"
},
"userReportedSpamRatioUpperBound": {
"description": "The upper bound of the confidence interval for the user reported spam ratio. If this field is set, then the value of userReportedSpamRatio is set to the midpoint of this interval and is thus inexact. However, the true ratio is guaranteed to be in between this upper bound and the corresponding lower bound 95% of the time. This metric only pertains to emails authenticated by [DKIM](http://www.dkim.org/).",
"format": "double",
"type": "number"
}
},
"type": "object"
}
},
"servicePath": "",
"title": "Gmail Postmaster Tools API",
"version": "v1beta1",
"version_module": true
}