GET {{baseUrl}}/emails/mailboxes/:email/drafts?includeSpamTrash=<boolean>&maxResults=<integer>&pageToken=<string>&q=<string>
Lists the draft messages in the mailbox. Scopes: Rate Limit Label: Not supported in Gov cluster mail:read
MEDIUM
Body
PARAM
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": "<string>",
"message": {
"id": "<string>",
"threadId": "<string>"
}
},
{
"id": "<string>",
"message": {
"id": "<string>",
"threadId": "<string>"
}
}
],
"nextPageToken": "<string>",
"resultSizeEstimate": "<integer>"
} |
ENDPOINTS