List emails from draft folder
GET {{baseUrl}}/emails/mailboxes/:email/drafts?includeSpamTrash=<boolean>&maxResults=<integer>&pageToken=<string>&q=<string>
Lists the draft messages in the mailbox.
Scopes: mail:read
Rate Limit Label: MEDIUM
Not supported in Gov cluster
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
includeSpamTrash | string | Include messages from SPAM and TRASH in the results. Value should be either "true" or "false". | |
maxResults | string | Maximum number of drafts to return. This field defaults to 50. The maximum allowed value for this field is 500. | |
pageToken | string | Page token to retrieve a specific page of results in the list. | |
q | string | Specify a server side elastic search query. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"drafts":[{"id":"\u003cstring\u003e","message":{"id":"\u003cstring\u003e","threadId":"\u003cstring\u003e"}},{"id":"\u003cstring\u003e","message":{"id":"\u003cstring\u003e","threadId":"\u003cstring\u003e"}}],"nextPageToken":"\u003cstring\u003e","resultSizeEstimate":"\u003cinteger\u003e"}