Get mailbox disk usage
GET/api/accounts/:accountId/quota
Returns how much disk the mailbox directory uses (usage, in bytes) and the configured storage quota (limit, in bytes). limit is 0 when the mailbox has no quota.
usage is the directory size, the same figure the Cloudron mailbox list shows. It includes indexes and other mailbox files, not only message bytes.
The request is made with the session's platform access token, so a session without one gets 401. Platform failures return 424.
Request
Responses
- 200
- 401
- 404
- 424
Disk usage and configured storage quota.
The session has no mailbox access token (code is mail_token_missing) or no platform access token.
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.