/gmail/v1/users/{userId}/settings/filters
GET
/gmail/v1/users/{userId}/settings/filtersLists the message filters of a Gmail user.
Request
Path Params
userId
stringÂ
required
User's email address. The special value "me" can be used to indicate the authenticated user.
Request samples
Responses
Successful response(200)
Successful response
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
Response for the ListFilters method.
filter
array[object (Filter) {3}]Â
optional
List of a user's filters.
action
object (FilterAction)Â
optional
Action that the filter performs.
criteria
object (FilterCriteria)Â
optional
Matching criteria for the filter.
id
stringÂ
optional
The server assigned ID of the filter.
Example
{
"filter": [
{
"action": {
"addLabelIds": [
"string"
],
"forward": "string",
"removeLabelIds": [
"string"
]
},
"criteria": {
"excludeChats": true,
"from": "string",
"hasAttachment": true,
"negatedQuery": "string",
"query": "string",
"size": 0,
"sizeComparison": "unspecified",
"subject": "string",
"to": "string"
},
"id": "string"
}
]
}
Last modified: 2 years ago