Overview
The PostgreSQL API allows you to create, manage, deploy, and monitor PostgreSQL database instances. PostgreSQL databases run as Docker containers and support automatic backups, external port configuration, and environment variable management.Create PostgreSQL Database
Request Body
Display name for the PostgreSQL database
Unique application name used for Docker container naming
Name of the PostgreSQL database to create
Username for database authentication
Password for database authentication. Must match pattern:
^[a-zA-Z0-9@#%^&*()_+\-=[\]{}|;:,.<>?~]*$`ID of the environment where the database will be deployed
Docker image to use for PostgreSQL (e.g., postgres:18, postgres:16)
Optional description for the database instance
ID of the server where the database should be deployed (required in cloud environments)
Get PostgreSQL Database
Retrieve details about a specific PostgreSQL database instance.Query Parameters
Unique identifier of the PostgreSQL database
Deploy PostgreSQL Database
Deploy or redeploy a PostgreSQL database container.Request Body
ID of the PostgreSQL database to deploy
Start PostgreSQL Database
Start a stopped PostgreSQL database container.Stop PostgreSQL Database
Stop a running PostgreSQL database container.Reload PostgreSQL Database
Reload (restart) a PostgreSQL database container.Request Body
ID of the PostgreSQL database to reload
Application name of the PostgreSQL database
Update PostgreSQL Database
Update PostgreSQL database configuration, including credentials, resources, and Docker image.Request Body
ID of the PostgreSQL database to update
Updated display name
Updated application name
Updated database name
Updated database username
Updated database password
Updated Docker image version
Memory reservation (e.g., “512m”, “1g”)
Memory limit (e.g., “1g”, “2g”)
CPU reservation (e.g., “0.5”, “1.0”)
CPU limit (e.g., “1.0”, “2.0”)
Custom command to run in the container
Command line arguments for the PostgreSQL server
External port to expose PostgreSQL
Save Environment Variables
Update environment variables for the PostgreSQL database container.Request Body
ID of the PostgreSQL database
Environment variables in KEY=VALUE format, separated by newlines
Save External Port
Configure external port mapping for the PostgreSQL database.Request Body
ID of the PostgreSQL database
Port number to expose PostgreSQL externally. Set to null to remove external port mapping.
Change Status
Manually update the application status of a PostgreSQL database.Request Body
ID of the PostgreSQL database
New status. Options:
idle, running, done, errorMove PostgreSQL Database
Move a PostgreSQL database to a different environment.Request Body
ID of the PostgreSQL database to move
ID of the destination environment
Rebuild PostgreSQL Database
Rebuild the PostgreSQL database container from scratch.Request Body
ID of the PostgreSQL database to rebuild
Remove PostgreSQL Database
Delete a PostgreSQL database and all associated resources, including backups and scheduled jobs.Request Body
ID of the PostgreSQL database to remove
Backup Operations
For backup and restore operations, see the Backup API documentation.- Create automated backups:
backup.create - Manual backup:
backup.manualBackupPostgres - Restore from backup:
backup.restoreBackupWithLogs