cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Mail → Return cPanel account mailboxes status by name

AI-generated

Summary

Retrieve the status information of mailboxes for a specified cPanel account by its name or email account identifier.

Inputs

  • Account (required) — The email account or cPanel account username to query mailbox statuses for. Using '_mainaccount' targets the cPanel user's primary mailbox (e.g., '_mainaccount@example.com' for the example mailbox).

Output shape

a JSON object containing mailbox status information for the specified cPanel account.

The output includes the result of the WHM API call that returns the mailbox statuses. There are no additional optional parameters for this operation. Errors from the WHM API are validated and returned as node errors.

Examples

Example 1: Retrieve mailbox status of a cPanel account

Set the 'Account' parameter to the target account name or email mailbox identifier (e.g., 'user1' or '_mainaccount') to fetch the mailbox statuses for that account.

Links

Discussion