cPanel Accounts API

The Accounts module for WHM API 1.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /accountsummary Get a summary of a cPanel account · Return cPanel account summary #
Ask an LLM
“How much disk and bandwidth is a cPanel account using?”
“Can I get a quick summary of one account by its domain?”
Tell an agent
Show the account summary for {user}.
Get the disk and bandwidth usage for account {domain}.
GET /get_upgrade_opportunities List accounts nearing their resource limits · Get upgrade opportunities #
Ask an LLM
“Which accounts are close to running out of disk space?”
“Can I find accounts that would benefit from a package upgrade?”
Tell an agent
List accounts nearing their disk usage limit.
Show accounts that are near {nearness_fraction} of their disk threshold.
GET /has_digest_auth Check whether Digest Authentication is enabled · Validate cPanel account Digest Authentication #
Ask an LLM
“Is Digest Authentication turned on for a cPanel account?”
“Can I check Digest Auth for a user before enabling Web Disk access?”
Tell an agent
Check whether Digest Authentication is enabled for {user}.
Tell me if {user} has Digest Auth set.
GET /has_mycnf_for_cpuser Check whether a .my.cnf file exists · Validate MySQL Configuration file #
Ask an LLM
“Does a cPanel user have a MySQL configuration file in their home directory?”
“Can I verify a .my.cnf file exists for a MySQL user?”
Tell an agent
Check whether {user} has a valid .my.cnf file.
Tell me if MySQL config file {user} exists.
GET /listaccts List cPanel accounts on the server · Return cPanel accounts #
Ask an LLM
“What cPanel accounts exist on my server?”
“Can I list accounts whose username matches a pattern?”
Tell an agent
List all cPanel accounts on the server.
Find accounts whose username matches {search}.
GET /massmodifyacct Modify several cPanel accounts at once · Update multiple cPanel accounts #
Ask an LLM
“Can I change the disk quota on many accounts in one request?”
“Is there a bulk way to disable shell access for several accounts?”
Tell an agent
Set the disk block limit to {DISK_BLOCK_LIMIT} for accounts {user}.
Disable shell access for accounts {user}.
GET /modifyacct Update a single cPanel account · Update cPanel account #
Ask an LLM
“How do I change the contact email on one cPanel account?”
“Can I rename a single cPanel account's username?”
Tell an agent
Change the contact email of {user} to {contactemail}.
Rename account {user} to {newuser}.
GET /myprivs Show my cPanel account's system privileges · Return cPanel account system privileges #
Ask an LLM
“What system privileges does my cPanel account have?”
“Which ACL privileges are granted to the current user?”
Tell an agent
Show my current system privileges.
List the ACL privileges for the logged-in account.
GET /set_digest_auth Enable or disable Digest Authentication · Enable or disable Digest Authentication #
Ask an LLM
“How do I turn on Digest Authentication for a cPanel account?”
“Can I disable Digest Auth for a user on an unencrypted connection?”
Tell an agent
Set Digest Authentication for {user} to {enabledigest} with password {password}.
Enable Digest Auth for {user} using {digestauth}.
GET /untrack_acct_id Remove a UID or GID from the tracked list · Remove UID or GID from tracked list #
Ask an LLM
“How do I stop tracking a user ID that was deleted?”
“Can I remove a group ID from the tracked list?”
Tell an agent destructive · confirm first
Untrack user ID {uid}.
Remove group ID {gid} from the tracked list.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cpanel:cpanel-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cpanel-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: cs@cpanel.net
    name: WebPros International, LLC
    url: https://cpanel.net/support/
  description: WHM API.
  license:
    name: cPanel License
    url: https://cpanel.net/legal-notices/
  termsOfService: https://cpanel.net/legal-notices/
  title: WHM Accounts API
  version: 11.137.9999.106
  x-api-evangelist-provenance: 'Harvested verbatim from cPanel''s developer portal on 2026-09-05 via the MCP tool get-full-api-description at https://api.docs.cpanel.net/mcp. ONE mechanical change was made before storage: example values containing PEM private-key or certificate blocks, and AWS-access-key-shaped example strings, were replaced with REDACTED_* placeholders so the file can be stored in a public git repository without tripping secret scanning. No path, operation, parameter, schema or description was altered, added or removed.'
servers:
- description: A server running WHM.
  url: https://{host}:{port}/json-api
  variables:
    host:
      default: whm-server.tld
      description: The hostname of a server running WHM.
    port:
      default: '2087'
      description: The WHM port.
security:
- BasicAuth: []
tags:


# --- truncated at 32 KB (178 KB total) ---
# Full source: https://artifacts.apis.io/cpanel/openapi/cpanel-accounts-api-openapi.yml