Return cPanel accounts total number

This function returns the number of cPanel accounts on the server.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  get_current_users_count

Response samples

Content type
application/json
{
  • "data": {
    • "users": 100
    },
  • "metadata": {
    • "command": "get_current_users_count",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}