Get folder status
GET/api/accounts/:accountId/folders/:folder/status
Returns the total and unread message counts of one folder (path, messages, unseen). It uses IMAP STATUS, so the folder is not selected and no flags change.
Unlike the all-folders status call, a failing STATUS is an error here: a folder that does not exist returns 424.
Request
Responses
- 200
- 401
- 404
- 424
Counts.
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.