Skip to content

Databases

On this page
  1. Endpoints

Managed PostgreSQL, MySQL and Redis-compatible (Valkey) databases. Pick a plan and engine version, read the connection details and credentials, browse data with read-only queries, take snapshots, resize to another plan and follow metrics.

Creating, resizing, deleting, rotating the password and every snapshot action are asynchronous. They queue an operation and return its operation_id. Poll Get an operation to follow it.

Databases are owned by the workspace owner's account. Every database endpoint only sees databases created in the workspace named by X-Workspace-Slug.

Endpoints

EndpointDescription
GET /v1/databases/plansList database plans
GET /v1/databases/versionsList database versions
GET /v1/databasesList databases
POST /v1/databasesCreate a database
GET /v1/databases/free-quotaGet the free database quota
GET /v1/databases/{uid}Get a database
DELETE /v1/databases/{uid}Delete a database
GET /v1/databases/{uid}/credentialsGet database credentials
GET /v1/databases/{uid}/data/tablesList database tables
GET /v1/databases/{uid}/data/rowsBrowse table rows
POST /v1/databases/{uid}/data/queryRun a read-only query
GET /v1/databases/{uid}/data/keysList keys
GET /v1/databases/{uid}/data/keyGet a key
POST /v1/databases/{uid}/rotate-passwordRotate the database password
POST /v1/databases/{uid}/resizeResize a database
GET /v1/databases/{uid}/metrics/currentGet current database metrics
GET /v1/databases/{uid}/metrics/historyGet database metric history
GET /v1/databases/{uid}/firewall-policiesList a database's firewall policies
GET /v1/databases/{uid}/snapshotsList snapshots of a database
POST /v1/databases/{uid}/snapshotsCreate a database snapshot
POST /v1/databases/{uid}/snapshots/{snapshot_uid}/restoreRestore a database snapshot
DELETE /v1/databases/{uid}/snapshots/{snapshot_uid}Delete a snapshot of a database
GET /v1/database-snapshotsList database snapshots
GET /v1/database-snapshots/{snapshot_uid}Get a database snapshot
DELETE /v1/database-snapshots/{snapshot_uid}Delete a database snapshot