Create filter
documentedCreates a new mail filter.
POST /gmail/v1/users/{userId}/settings/filtersUsersno implementation yet0 runsInput
user_id*
User's email address or 'me'
user@example.com or me
from
From criteria
sender@example.com
to
To criteria
recipient@example.com
subject
Subject criteria
Invoice
query
Query criteria
from:example@example.com
negatedQuery
Negated query
is:unread
hasAttachment
Has attachment
excludeChats
Exclude Chats
size
Size in bytes
sizeComparison
Size comparison
unspecified|smaller|larger
addLabelId
Label to add
LabelName
removeLabelId
Label to remove
LabelName
forward
Forward address
forward@example.com
Calls Gmail as you (your API key is your account); keychains.dev holds the credentials.