Return primary email account's disk usage in bytes

This function returns the disk space that the cPanel account uses.

Important:

When you disable the Receive Mail role, the system disables this function.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Email/get_main_account_disk_usage_bytes
Request samples
uapi --output=jsonpretty \
  --user=username \
  Email \
  get_main_account_disk_usage_bytes
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "get_main_account_disk_usage_bytes",
  • "module": "Email",
  • "result": {
    • "data": 3076,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}