cPanel Postgresql API

The Postgresql module for UAPI.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 14

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 /Postgresql/create_database Create a PostgreSQL database · Create PostgreSQL database #
Ask an LLM
“How do I create a new PostgreSQL database for my account?”
“Can I create a database with a name that includes the database prefix?”
Tell an agent
Create a PostgreSQL database named {name}.
Add a new Postgres database called {name}.
GET /Postgresql/create_user Create a PostgreSQL user · Create PostgreSQL user #
Ask an LLM
“How do I create a database user for my PostgreSQL database?”
“What password do I need to set when creating a Postgres user?”
Tell an agent
Create a PostgreSQL user {name} with password {password}.
Add a Postgres database user {name} using {password} as the password.
GET /Postgresql/delete_database Delete a PostgreSQL database · Delete PostgreSQL database #
Ask an LLM
“How do I drop a PostgreSQL database I no longer need?”
“Can I remove a Postgres database by name?”
Tell an agent destructive · confirm first
Delete the PostgreSQL database {name}.
Drop the Postgres database {name}.
GET /Postgresql/delete_user Delete a PostgreSQL user · Delete PostgreSQL user #
Ask an LLM
“How do I remove a database user from my account?”
“Can I delete a PostgreSQL user by name?”
Tell an agent destructive · confirm first
Delete the PostgreSQL user {name}.
Remove the Postgres database user {name}.
GET /Postgresql/get_restrictions Get PostgreSQL name length limits · Return PostgreSQL name length restrictions #
Ask an LLM
“What are the maximum lengths for PostgreSQL database and user names?”
“Are there length restrictions on Postgres database names?”
Tell an agent
Show the PostgreSQL name length restrictions.
Get the maximum allowed length for Postgres database and user names.
GET /Postgresql/grant_all_privileges Grant all privileges on a database to a user · Enable all user privileges on PostgreSQL database #
Ask an LLM
“How do I give a user full access to a PostgreSQL database?”
“Can I grant all privileges on a database to a database user?”
Tell an agent
Grant all privileges on database {database} to user {user}.
Give {user} full access to PostgreSQL database {database}.
GET /Postgresql/list_databases List PostgreSQL databases · Return PostgreSQL databases #
Ask an LLM
“Which PostgreSQL databases exist on my account?”
“Can I see all Postgres databases in one list?”
Tell an agent
List my PostgreSQL databases.
Show every Postgres database on this account.
GET /Postgresql/list_users List PostgreSQL users · Return PostgreSQL users #
Ask an LLM
“Who are the database users on my account?”
“Can I list all PostgreSQL users?”
Tell an agent
List my PostgreSQL users.
Show every database user on this account.
GET /Postgresql/rename_database Rename a PostgreSQL database · Update PostgreSQL database name #
Ask an LLM
“How do I rename an existing PostgreSQL database?”
“Can I change a Postgres database's name?”
Tell an agent
Rename PostgreSQL database {oldname} to {newname}.
Change the name of Postgres database {oldname} to {newname}.
GET /Postgresql/rename_user Rename a PostgreSQL user and set a new password · Update PostgreSQL username #
Ask an LLM
“How do I rename a database user and give it a new password at the same time?”
“Can I change a PostgreSQL user's name and password in one call?”
Tell an agent
Rename PostgreSQL user {oldname} to {newname} with password {password}.
Change Postgres user {oldname} to {newname} and set the new password to {password}.
GET /Postgresql/rename_user_no_password Rename a PostgreSQL user without changing its password · Update PostgreSQL username without password #
Ask an LLM
“How do I rename a database user without touching its password?”
“Can I change a PostgreSQL user's name without resetting the password?”
Tell an agent
Rename PostgreSQL user {oldname} to {newname} without changing the password.
Change the name of Postgres user {oldname} to {newname}, keeping the existing password.
GET /Postgresql/revoke_all_privileges Revoke all privileges on a database from a user · Remove PostgreSQL user privileges #
Ask an LLM
“How do I remove a user's access to a PostgreSQL database?”
“Can I revoke every privilege a database user holds on a database?”
Tell an agent destructive · confirm first
Revoke all privileges on database {database} from user {user}.
Take away {user}'s access to Postgres database {database}.
GET /Postgresql/set_password Change a PostgreSQL user's password · Update PostgreSQL user password #
Ask an LLM
“How do I reset a database user's password?”
“Can I change the password of an existing PostgreSQL user?”
Tell an agent
Set the password of PostgreSQL user {user} to {password}.
Change the Postgres user {user}'s password to {password}.
GET /Postgresql/update_privileges Synchronize PostgreSQL user privileges · Update PostgreSQL® privileges #
Ask an LLM
“How do I sync PostgreSQL user privileges after creating new tables?”
“Can I refresh Postgres user grants across the account?”
Tell an agent
Synchronize PostgreSQL user privileges on this account.
Refresh Postgres database grants for all users.

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-postgresql-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-postgresql-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: cs@cpanel.net
    name: WebPros International, LLC
    url: https://cpanel.net/support/
  description: UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
  license:
    name: cPanel License
    url: https://cpanel.net/legal-notices/
  termsOfService: https://cpanel.net/legal-notices/
  title: cPanel U Postgresql 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 cPanel.
  url: https://{host}:{port}/execute
  variables:
    host:
      default: cpanel-server.tld
      description: The hostname of a server running cPanel.
    port:
      default: '2083'
      description: The cPanel port.
security:
- BasicAuth: []
tags:


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