Skip to main content
POST

Request body

For creates, the replication_slots array must exist and contain exactly one replication slot object.
string
required
A name for this database connection. You can use this name to identify the database across the API.
string
The full connection URL for the database, e.g. postgresql://postgres:secret-password@db.example.com:5432/postgres.Pass in either this parameter or database, hostname, port, username, password.To specify SSL, use the separate ssl field.
string
required
The database server hostname.
string
required
The name of the logical database in Postgres.
string
required
The database username.
string
required
The database password.
integer
The database server port. Defaults to 5432.
boolean
Whether to use SSL for the connection. Defaults to true.
boolean
Whether to use IPv6 for the connection. Defaults to false.
object
Connection details for the primary database, only needed when connecting to a replica.
array
required

Response

A database object is returned in the response.