This function returns the disk space that the cPanel account uses.
Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ get_main_account_disk_usage_bytes
{- "apiversion": 3,
- "func": "get_main_account_disk_usage_bytes",
- "module": "Email",
- "result": {
- "data": 3076,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}