# cPanel Postgresql API

**Canonical:** https://apis.io/apis/cpanel/cpanel-postgresql-api/  
**Provider:** cPanel — https://apis.io/providers/cpanel/  
**Base URL:** https://{host}:2083/execute  
**Documentation:** https://api.docs.cpanel.net/cpanel/introduction/

cPanel Postgresql API is one of 144 APIs that [cPanel](https://apis.io/providers/cpanel/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include PostgreSQL. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and authentication docs.

The Postgresql module for UAPI.

## Operations (14)

| Method | Path | Summary |
|---|---|---|
| GET | `/Postgresql/create_database` | Create PostgreSQL database |
| GET | `/Postgresql/create_user` | Create PostgreSQL user |
| GET | `/Postgresql/delete_database` | Delete PostgreSQL database |
| GET | `/Postgresql/delete_user` | Delete PostgreSQL user |
| GET | `/Postgresql/get_restrictions` | Return PostgreSQL name length restrictions |
| GET | `/Postgresql/grant_all_privileges` | Enable all user privileges on PostgreSQL database |
| GET | `/Postgresql/list_databases` | Return PostgreSQL databases |
| GET | `/Postgresql/list_users` | Return PostgreSQL users |
| GET | `/Postgresql/rename_database` | Update PostgreSQL database name |
| GET | `/Postgresql/rename_user` | Update PostgreSQL username |
| GET | `/Postgresql/rename_user_no_password` | Update PostgreSQL username without password |
| GET | `/Postgresql/revoke_all_privileges` | Remove PostgreSQL user privileges |
| GET | `/Postgresql/set_password` | Update PostgreSQL user password |
| GET | `/Postgresql/update_privileges` | Update PostgreSQL® privileges |

## Machine-readable artifacts (7)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/cpanel/refs/heads/main/openapi/cpanel-postgresql-api-openapi.yml
- **Documentation** — https://api.docs.cpanel.net/cpanel/introduction/
- **APIReference** — https://api.docs.cpanel.net/specifications/cpanel.openapi
- **Authentication** — https://api.docs.cpanel.net/cpanel/tokens/
- **Documentation** — https://api.docs.cpanel.net/whm/introduction/
- **APIReference** — https://api.docs.cpanel.net/specifications/whm.openapi
- **Authentication** — https://api.docs.cpanel.net/whm/tokens/

## Other cPanel APIs (12)

- [cPanel API 2 (Legacy)](https://apis.io/apis/cpanel/cpanel-api-2/)
- [Manage2 API](https://apis.io/apis/cpanel/manage2/)
- [cPanel 360 Monitoring API](https://apis.io/apis/cpanel/cpanel-360-monitoring-api/)
- [cPanel Account Creation API](https://apis.io/apis/cpanel/cpanel-account-creation-api/)
- [cPanel Account Enhancements API](https://apis.io/apis/cpanel/cpanel-account-enhancements-api/)
- [cPanel Account Management API](https://apis.io/apis/cpanel/cpanel-account-management-api/)
- [cPanel Account Restoration API](https://apis.io/apis/cpanel/cpanel-account-restoration-api/)
- [cPanel Accounts API](https://apis.io/apis/cpanel/cpanel-accounts-api/)
- [cPanel Addon Domain API](https://apis.io/apis/cpanel/cpanel-addondomain-api/)
- [cPanel API Execution API](https://apis.io/apis/cpanel/cpanel-api-execution-api/)
- [cPanel Applications API](https://apis.io/apis/cpanel/cpanel-applications-api/)
- [cPanel Authentication API](https://apis.io/apis/cpanel/cpanel-authentication-api/)

## Tags

PostgreSQL

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/cpanel/cpanel-postgresql-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/cpanel/.
