Skip to main content
POST
Create a database

Authorizations

x-brimble-key
string
header
required

API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.

Body

application/json
name
string
required

Name of the database project.

Required string length: 3 - 63
dbImage
string
required

ID of the database engine and version to deploy. See GET /v1/projects/available-databases.

Pattern: ^[a-fA-F0-9]{24}$
environments
object[]
required

Extra environment variables passed to the database container.

configurations
object
required

Compute resources and region for the database.

teamId
string

Team to act in. Omit for your personal workspace.

Pattern: ^[a-fA-F0-9]{24}$
environmentId
string

Environment to create the database in. Omit to use the default environment.

Pattern: ^[a-fA-F0-9]{24}$
ha
boolean

Run as a high-availability cluster: one primary and two replicas in secondaryRegions. Defaults to false.

secondaryRegions
string[]

IDs of the two regions that host the replicas. Required when ha is true.

Required array length: 2 elements
Pattern: ^[a-fA-F0-9]{24}$
tlsEnabled
boolean

Require TLS for connections. Required for public access on some engines.

pgbouncerEnabled
boolean

PostgreSQL only: put PgBouncer connection pooling in front of the database.

pgbouncerConfig
object | null

PgBouncer settings. Omit a field to keep its default.

whitelistedIps
string[]

IP addresses or CIDR ranges allowed to connect. Omit or leave empty to allow any address.

deploy
boolean

Start the database right away. Defaults to true.

volumeId
string

ID of an existing volume to store the data on. Must be in the same region.

Pattern: ^[a-fA-F0-9]{24}$
linkedProjectIds
string[]

IDs of projects that should receive this database's connection variables.

Pattern: ^[a-fA-F0-9]{24}$
public
boolean | null

Accept connections from the internet. When false, only services on Brimble's private network can connect. Defaults to true.

Response

Operation performed successfully

message
string
required

Human-readable result of the request.

Example:

"Operation performed successfully"

data
object
required

The result of the request.

Last modified on October 31, 2026