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

KeyDatatypeRequiredDescription
includeSpamTrashstringInclude messages from SPAM and TRASH in the results. Value should be either "true" or "false".
maxResultsstringMaximum number of drafts to return. This field defaults to 50. The maximum allowed value for this field is 500.
pageTokenstringPage token to retrieve a specific page of results in the list.
qstringSpecify a server side elastic search query.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;drafts&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;threadId&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;threadId&quot;:&quot;\u003cstring\u003e&quot;}}],&quot;nextPageToken&quot;:&quot;\u003cstring\u003e&quot;,&quot;resultSizeEstimate&quot;:&quot;\u003cinteger\u003e&quot;}