Gmail email message list profile

org.intentschema.communication.email.message.list.v1@com.google.gmail.v1

JSON: bare · @sha256:bf6dbc5baadc…
Hash: sha256:bf6dbc5baadc8674ad890a7c57077f9a827af4ff9207f32cc525705439a81851

Gmail profile for listing messages. Supports Gmail q-syntax for filtering.

Implements: List email messages (org.intentschema.communication.email.message.list.v1)

Payload

FieldTypeDescription
target *Target(system = "gmail", required: system)
objectobject
gmail @com.google.gmailobject
object
FieldTypeDescription
querystringProvider-specific search string (Gmail syntax, JMAP filter string, Outlook KQL). Applied alongside `filter` if both are provided.
filterobjectStructured filter, JMAP-inspired.
limitinteger (minimum 1; maximum 500; default 50)
cursorstringOpaque pagination cursor returned by a prior search.
filter
FieldTypeDescription
fromstring
tostring
subjectstring
bodystring
has_attachmentboolean
is_unreadboolean
afterstring (date-time)
beforestring (date-time)
labels_anystring[]
labels_allstring[]
gmail @com.google.gmail
FieldTypeDescription
qstringGmail search query syntax.
includeSpamTrashboolean

Result

FieldTypeDescription
messages *object[]
next_cursorstringPresent when more results are available.
estimated_totalintegerOptional provider estimate of total matches.

API mapping

FieldValue
base_urlhttps://gmail.googleapis.com
methodGET
path/gmail/v1/users/me/messages
scopeshttps://www.googleapis.com/auth/gmail.readonly
docshttps://developers.google.com/gmail/api/reference/rest/v1/users.messages/list

Field mapping

Intent fieldAPI parameter
object.queryq (Gmail search syntax)
object.filter.fromq parameter: from:<value>
object.filter.toq parameter: to:<value>
object.filter.subjectq parameter: subject:<value>
object.filter.has_attachmentq parameter: has:attachment
object.filter.is_unreadq parameter: is:unread
object.filter.afterq parameter: after:<epoch>
object.filter.beforeq parameter: before:<epoch>
object.filter.labels_anyq parameter: label:<value>
object.limitmaxResults
object.cursorpageToken
gmail.qq (raw Gmail search syntax, overrides filter)
gmail.includeSpamTrashincludeSpamTrash (boolean query param)