Get status for every folder
GET/api/accounts/:accountId/folders/status
Returns just the message and unread counts (path, messages, unseen) for every folder, a lighter response than the folder list for refreshing badges.
It covers the same folders as GET /api/accounts/{accountId}/folders and runs IMAP STATUS on each without selecting it, so no flags change. A folder whose STATUS fails is reported with zero counts, not as an error.
Request
Responses
- 200
- 401
- 404
- 424
One status entry per folder.
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.