cPanel Databases API

The Databases module for WHM API 1.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 27

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 /background_mysql_upgrade_checker_run Check MySQL before upgrading to 8.0 · Validate MySQL status before upgrade #
Ask an LLM
“Can I check my MySQL configuration for compatibility before upgrading to 8.0?”
“What does the MySQL upgrade checker look for in my setup?”
Tell an agent
Run the MySQL upgrade checker.
Validate my MySQL setup for an 8.0 upgrade.
GET /background_mysql_upgrade_status Check a MySQL upgrade's status · Return MySQL or MariaDB upgrade status #
Ask an LLM
“Has my background MySQL upgrade finished?”
“Can I check the progress of a MySQL upgrade by its ID?”
Tell an agent
Check the status of MySQL upgrade {upgrade_id}.
Show progress of MySQL upgrade {upgrade_id}.
GET /current_mysql_version Get the MySQL version · Return MySQL version #
Ask an LLM
“Which version of MySQL or MariaDB is installed on my server?”
“What MySQL version does WHM report right now?”
Tell an agent
Show the current MySQL version.
Get the installed MySQL or MariaDB version.
GET /get_database_optimizations List MySQL database optimizations · Return MySQL database optimizations #
Ask an LLM
“What database optimizations are available for my MySQL server?”
“Can I see the optimization suggestions WHM offers for my databases?”
Tell an agent
List the available MySQL database optimizations.
Show database optimization suggestions.
GET /installable_mysql_versions List available MySQL versions · Return available MySQL versions #
Ask an LLM
“Which MySQL and MariaDB versions can I install?”
“What MySQL versions are available on my server?”
Tell an agent
List all installable MySQL and MariaDB versions.
Show the MySQL versions I can install.
GET /latest_available_mysql_version Get the latest MySQL version · Return latest MySQL version #
Ask an LLM
“What is the newest MySQL or MariaDB version available?”
“Which MySQL version does WHM say is the latest?”
Tell an agent
Get the latest available MySQL version.
Show the newest MySQL or MariaDB version.
GET /list_database_users List MySQL database users · Return MySQL users #
Ask an LLM
“Who are the MySQL users on my server?”
“Can I see all database users and their hosts?”
Tell an agent
List all MySQL database users.
Show every database user on the server.
GET /list_databases List MySQL and PostgreSQL databases · Return MySQL databases #
Ask an LLM
“Which MySQL and PostgreSQL databases exist on my server?”
“How do I see every database before choosing one?”
Tell an agent
List all databases on my server.
Show every database we have.
GET /list_mysql_databases_and_users List MySQL databases and users for an account · Return MySQL databases and users for account #
Ask an LLM
“Which databases and users belong to a particular account?”
“Can I see one user's MySQL databases and grants?”
Tell an agent
List the MySQL databases and users for {user}.
Show account {user}'s databases and database users.
GET /remote_mysql_create_profile Create a remote MySQL profile · Create remote MySQL profile #
Ask an LLM
“How do I add a profile to connect to a remote MySQL server?”
“Can I create a remote MySQL profile with a username, password and port?”
Tell an agent
Create remote MySQL profile {name} for {mysql_host}:{mysql_port} as {mysql_user}.
Add a remote MySQL profile {name} with password {mysql_pass}.
GET /remote_mysql_create_profile_via_ssh Create a remote MySQL profile over SSH · Create remote MySQL profile via SSH #
Ask an LLM
“Can I create a remote MySQL profile using SSH instead of a password?”
“How do I set up a remote MySQL profile through an SSH key?”
Tell an agent
Create remote MySQL profile {name} on {host}:{port} via SSH as {user}.
Set up remote MySQL profile {name} using SSH key {sshkey_name}.
GET /remote_mysql_delete_profile Delete a remote MySQL profile · Delete remote MySQL profile #
Ask an LLM
“How do I remove a remote MySQL profile?”
“Can I delete a remote MySQL connection profile by name?”
Tell an agent destructive · confirm first
Delete remote MySQL profile {name}.
Remove the remote MySQL profile {name}.
GET /remote_mysql_initiate_profile_activation Start activating a remote MySQL profile · Start remote MySQL profile activation #
Ask an LLM
“How do I kick off the activation of a remote MySQL profile?”
“Can I start the activation process for a remote MySQL profile?”
Tell an agent
Start activating remote MySQL profile {name}.
Kick off activation of remote MySQL profile {name}.
GET /remote_mysql_monitor_profile_activation Monitor remote MySQL profile activation · Return remote MySQL profile activation #
Ask an LLM
“Has my remote MySQL profile activation finished?”
“Can I check the progress of a remote MySQL profile activation?”
Tell an agent
Show the current status of remote MySQL profile activation.
Check whether remote MySQL profile activation has completed.
GET /remote_mysql_read_profile Read one remote MySQL profile · Return remote MySQL profile #
Ask an LLM
“What are the connection details of a specific remote MySQL profile?”
“Can I view one remote MySQL profile by name?”
Tell an agent
Show remote MySQL profile {name}.
Get the connection details of remote MySQL profile {name}.
GET /remote_mysql_read_profiles List all remote MySQL profiles · Return remote MySQL profiles #
Ask an LLM
“Which remote MySQL profiles are configured on WHM?”
“Can I see every remote MySQL profile and its setup?”
Tell an agent
List all remote MySQL profiles.
Show every configured remote MySQL profile.
GET /remote_mysql_update_profile Update a remote MySQL profile · Update remote MySQL profile #
Ask an LLM
“Can I change the host or password on an existing remote MySQL profile?”
“How do I edit a remote MySQL profile's settings?”
Tell an agent
Update remote MySQL profile {name} to point at {mysql_host}.
Change the password on remote MySQL profile {name} to {mysql_pass}.
GET /remote_mysql_validate_profile Test a remote MySQL profile's connection · Validate remote MySQL profile connection #
Ask an LLM
“Can I test whether a remote MySQL profile can actually connect?”
“How do I validate a remote MySQL profile's credentials?”
Tell an agent
Validate remote MySQL profile {name}.
Test the connection of remote MySQL profile {name}.
GET /rename_mysql_database Rename a MySQL database · Update MySQL database name #
Ask an LLM
“How do I rename a MySQL database?”
“Does renaming a database move its data and recreate its grants?”
Tell an agent
Rename MySQL database {oldname} to {newname}.
Change the name of database {oldname} to {newname}.
GET /rename_mysql_user Rename a MySQL user · Update MySQL username #
Ask an LLM
“How do I rename a MySQL user without touching the password?”
“Can I change the prefix in a MySQL username?”
Tell an agent
Rename MySQL user {oldname} to {newname}.
Change MySQL username {oldname} to {newname} for account {cpuser}.
GET /rename_postgresql_database Rename a PostgreSQL database · Update PostgreSQL database name #
Ask an LLM
“How do I rename a PostgreSQL database?”
“Can I change a PostgreSQL database's name?”
Tell an agent
Rename PostgreSQL database {oldname} to {newname}.
Change the name of PostgreSQL database {oldname} to {newname} for {cpuser}.
GET /rename_postgresql_user Rename a PostgreSQL user · Update PostgreSQL username #
Ask an LLM
“How do I rename a PostgreSQL user and give it a new password at the same time?”
“Can I change a Postgres username from the command line?”
Tell an agent
Rename PostgreSQL user {oldname} to {newname} with password {password}.
Change Postgres username {oldname} to {newname}, password {password}, for user {cpuser}.
GET /set_local_mysql_root_password Reset the MySQL root password · Update MySQL root password #
Ask an LLM
“How do I reset the root password on the local MySQL server?”
“Can I change the MySQL root password?”
Tell an agent
Set the MySQL root password to {password}.
Reset the local MySQL root password to {password} and update config to {update_config}.
GET /set_mysql_password Change a MySQL user's password · Update MySQL user password #
Ask an LLM
“How do I change a MySQL database user's password?”
“Can I reset a MySQL user's password?”
Tell an agent
Set MySQL user {user}'s password to {password}.
Change the password of MySQL user {user} for {cpuser} to {password}.
GET /set_postgresql_password Change a PostgreSQL user's password · Update PostgreSQL user password #
Ask an LLM
“How do I change a PostgreSQL database user's password?”
“Can I reset a PostgreSQL user's password?”
Tell an agent
Set PostgreSQL user {user}'s password to {password}.
Change the password of PostgreSQL user {user} for {cpuser}.
GET /start_background_mysql_upgrade Upgrade MySQL or MariaDB in the background · Start background MySQL upgrade #
Ask an LLM
“How do I upgrade MySQL or MariaDB in the background?”
“Can I upgrade to a specific MySQL version without downtime?”
Tell an agent
Upgrade MySQL to version {version}.
Start a background upgrade of MySQL or MariaDB to {version}.
POST /update_sql_config Update MySQL or MariaDB configuration · Update the servers SQL configuration #
Ask an LLM
“How do I change the MySQL configuration file?”
“Can I edit the SQL configuration settings?”
Tell an agent
Update the SQL configuration with {data}.
Apply the SQL configuration changes {data}.

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-databases-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-databases-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 Databases 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 (110 KB total) ---
# Full source: https://artifacts.apis.io/cpanel/openapi/cpanel-databases-api-openapi.yml