Logo
Zoom Public API Documentation

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

 

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>" }



Curl
curl -X GET 'https://api.zoom.us/v2/emails/mailboxes/:email/drafts?includeSpamTrash=<boolean>&maxResults=<integer>&pageToken=<string>&q=<string>?includeSpamTrash=<boolean>&maxResults=<integer>&pageToken=<string>&q=<string>' -H 'Accept: application/json'

ENDPOINTS