Databases
Create a database
Creates a new PostgreSQL database on the instance.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredDatabase name
namestringPath Parameters
idRequiredstringInstance UUID
Created
Delete a database
Drops the active database after name confirmation. Returns 409 if no recent backup exists.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredConfirmation name
confirmNamestringPath Parameters
idRequiredstringInstance UUID
OK
Get database configuration
Returns the current database config with recommended values, override status, and parameter groups.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Update database configuration
Saves tuning parameter changes without applying them to PostgreSQL. Use the apply endpoint to apply.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredTuning parameters to update
autovacuumAnalyzeScaleFactornumberautovacuumMaxWorkersintegerautovacuumVacuumScaleFactornumbereffectiveCacheSizeMbintegermaintenanceDayintegermaintenanceWindowstringmaintenanceWorkMemMbintegermaxConnectionsintegersharedBuffersMbintegerslowQueryRegressionFactornumberslowQueryThresholdMsintegerworkMemMbintegerPath Parameters
idRequiredstringInstance UUID
OK
Accept tuning recommendations
Copies auto-tuned recommended values into the active config fields (skipping user overrides).
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Apply database configuration
Applies the saved tuning configuration to the live PostgreSQL instance.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Reset database configuration
Clears all user overrides and re-runs auto-tune to generate fresh recommendations.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Get external database status
Returns the external database connection status, provider, and masked connection string.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Connect an external database
Validates and stores an external database connection string. Tests connectivity before saving.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredExternal DB connection details
connectionStringstringproviderstring"aws_rds", "gcloud_sql", "azure", "custom"
Path Parameters
idRequiredstringInstance UUID
OK
Disconnect external database
Removes the external database connection, reverting to the local managed database.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Get maintenance configuration
Returns the maintenance window and day settings for the instance.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Update maintenance configuration
Updates the maintenance window time and preferred day for the instance.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredMaintenance settings
maintenanceDayintegermaintenanceWindowstringPath Parameters
idRequiredstringInstance UUID
OK
Get maintenance history
Returns the maintenance operation history for the instance.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
Query Parameters
limitintegerNumber of records (default 20, max 100)
OK
Trigger VACUUM ANALYZE
Enqueues an asynchronous VACUUM ANALYZE job for the instance's database.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
Accepted
Get database metrics history
Returns database metric history and growth rate for the specified time range.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
Query Parameters
daysintegerNumber of days of history (default 7, max 90)
OK
Get latest database metric
Returns the most recent database metric snapshot for the instance.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Get live PostgreSQL settings
Returns the current PostgreSQL configuration settings read directly from the server.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Get pgBouncer configuration
Returns the current pgBouncer connection pooling configuration.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Update pgBouncer configuration
Updates the pgBouncer connection pooling settings (enabled, pool size, max connections, pool mode).
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredpgBouncer settings
enabledbooleanmaxClientConnintegerpoolModestringpoolSizeintegerPath Parameters
idRequiredstringInstance UUID
OK
List read replicas
Returns all read replicas configured for the instance.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Create a read replica
Creates a read replica on the specified server and enqueues asynchronous setup.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Request Body
application/jsonRequiredReplica configuration
serverIdstringPath Parameters
idRequiredstringInstance UUID
Accepted
Delete a read replica
Stops replication and removes the read replica.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
replicaIdRequiredstringReplica UUID
OK
List slow queries
Returns a paginated, sortable list of slow queries from the latest collection.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
Query Parameters
pageintegerPage number
per_pageintegerResults per page
sort_bystringSort field
sort_dirstringSort direction (asc/desc)
OK
Get query regressions
Returns queries from the latest collection that have been flagged as performance regressions.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
OK
Get top slow queries
Returns the top N slowest queries from the latest collection period.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
Query Parameters
limitintegerNumber of queries (default 10, max 50)
OK
Get slow query history
Returns the performance history of a specific query over the given number of days.
Authorization
Authorization<token>JWT Bearer token (format: Bearer {token})
In: header
Path Parameters
idRequiredstringInstance UUID
queryIdRequiredstringQuery identifier
Query Parameters
daysintegerNumber of days of history (default 7, max 90)
OK