Return cPanel account's email account total

This function returns the number of email accounts for a cPanel account.

Important:

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

Authorizations:

Responses

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

Request samples

uapi --user=username Email count_pops

Response samples

Content type
application/json
{
  • "apiversion": 3,
  • "func": "count_pops",
  • "module": "Email",
  • "result": {
    • "data": 1,
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}