/gmail/v1/users/{userId}/drafts
GET
/gmail/v1/users/{userId}/draftsLists the drafts in the user's mailbox.
Request
Path Params
userId
string
required
The user's email address. The special value me
can be used to indicate the authenticated user.
Query Params
includeSpamTrash
string
optional
Include drafts from SPAM
and TRASH
in the results.
maxResults
integer
optional
Maximum number of drafts to return. This field defaults to 100. The maximum allowed value for this field is 500.
pageToken
string
optional
Page token to retrieve a specific page of results in the list.
q
string
optional
Only return draft messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid: is:unread"
.
Request samples
Responses
Successful response(200)
Successful response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: a year ago