List drafts
GET/api/accounts/:accountId/drafts
Returns the headers of the newest 100 drafts in the account's Drafts folder, newest first, in the same shape as a folder message list. The Drafts folder is found by its special-use attribute or its name, so the caller does not need to know its path.
There is no paging. When the account has no Drafts folder, the result is { "messages": [], "total": 0 }.
Request
Responses
- 200
- 401
- 404
- 424
Up to 100 drafts.
The session has no mailbox access token. code is mail_token_missing; sign in again.
The account does not exist or belongs to another user.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.