Managed Databases

Create managed database

post/managed-databases/

Deploy a new fully managed database (MySQL 8.4, PostgreSQL 17 or Valkey 8.1) with its own dedicated server, encrypted connections, daily automatic backups and a public connection endpoint. CubePath manages all the underlying infrastructure for you.

Authorization

Authorization
Authorization*string

Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.

Request body

application/jsonRequired
project_id*integer
name*string
Range2 ≤ length ≤ 60Rangepattern ^[a-z0-9][a-z0-9-]*[a-z0-9]$
engine*string
Value in"mysql""valkey""postgresql"
version*string
Range1 ≤ length ≤ 20
plan_uuid*string
Range1 ≤ length ≤ 36
replicas?integer
Range1 ≤ valueDefault1
topology?string | null
Rangelength ≤ 50
backup?BackupConfig | null

Backup policy of the database. Backups are always on: you choose the hour (UTC) of the daily full backup and how many days they are kept (1 to 30, default 7).

Properties (2)
hour_utc?integer | null

Hour of the day (UTC, 0 to 23) the daily full backup starts. If omitted, an hour is chosen for you.

Range0 ≤ value ≤ 23
retention_days?integer

Days the backups are kept (1 to 30).

Range1 ≤ value ≤ 30Default7

Responses

Successful Response

application/json

detail*string
uuid*string
name*string
engine*string
version*string
status*string