Create a new database on a specified cluster. The database is provisioned asynchronously - the initial status will be creating and will transition to ready once provisioning completes.
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Human-readable name for the new database. Must be between 2 and 64 characters.
2 - 64"My Database"
Database engine type. postgresql - PostgreSQL. mariadb - MariaDB. mysql - MySQL. mongodb - MongoDB. redis - Redis. valkey - Valkey.
postgresql, mariadb, mysql, mongodb, redis, valkey "postgresql"
Database engine version to use
"16"
Identifier of the cluster (data center location) where the database will be created. Use the List Clusters endpoint to retrieve available options.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Identifier of the database resource type (machine size). Use the List Database Resource Types endpoint to retrieve available options.
"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Name of the database to create within the server. Must contain only alphanumeric characters, underscores, hyphens, or plus signs.
2 - 100^[a-zA-Z0-9_\-+]+$"my_database"
Password for the database user. Must be between 4 and 100 characters and contain only alphanumeric characters and special characters (_?<>#@-=+).
4 - 100^[a-zA-Z0-9_?<>#@\-=+]+$"securePassword123"
Username for database authentication. Cannot be "root" or "postgres". If omitted, the database engine default user is used.
2 - 100^[a-zA-Z0-9_\-+]+$"db_user"
Identifier of the project to group this database under. When omitted, the database is not assigned to any project.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
PostgreSQL extensions to enable. Only applicable when type is postgresql.
Default Response
Unique identifier for the database
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Identifier of the company that owns this database
"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Identifier of the project this database is grouped under
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Unique system name used in internal references. Auto-generated from the display name and cannot be changed after creation.
"my-database"
Human-readable name shown in the dashboard and API responses
"My Database"
Database engine type. postgresql - PostgreSQL. mariadb - MariaDB. mysql - MySQL. mongodb - MongoDB. redis - Redis. valkey - Valkey.
postgresql, mariadb, mysql, mongodb, redis, valkey "postgresql"
Database engine version
"16"
Current status of the database reflecting the most recent lifecycle operation
creating, ready, updating, passwordChange, passwordChangeFailed, deleting, error, dbDeletionFailed, restoring, restoringFailed, updatingExternalConnection "ready"
Whether the database is currently suspended
false
Name of the resource type (machine size) assigned to this database
"db1"
Timestamp when the database was created, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:00:00.000Z"
Timestamp when the database was last modified, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:00:00.000Z"