---
title: "Create a managed database"
method: POST
path: "/managed_databases"
tags: ["Managed Databases"]
---

# Create a managed database

`POST /managed_databases`

## Request body

- ManagedDatabasePayload
  - `data` object
    - `type` 'managed_databases'
    - `attributes` object
      - `name` string — Display name (optional)
      - `project_id` string, required — Project slug
      - `region` string, required — Target region
      - `plan` string, required — Plan slug (e.g. db.psql.small)
      - `engine` string, required — Database engine
      - `billing` 'monthly' | 'yearly' — Billing cycle (postgres/clickhouse). Defaults to monthly when omitted.
      - `parameters` object — Custom PostgreSQL parameters at create (postgres only)
      - `pooler` object — PgBouncer pooler configuration at create (postgres only)
      - `backup` object — Scheduled backup configuration at create (postgres only)
      - `recovery` object — Restore from a source database backup at create (postgres only)
        - `sourceDatabaseName` string
        - `backupId` string
      - `replica_regions` string[] — Optional. Reserved for cross-region read replicas (postgres only): accepted and validated, but replica provisioning is not yet active.

## Response `201`

Created

## Changes

- **2026-09-21** `3a64859195ed` — 2 info
  - added the new optional request property `data/attributes/replica_regions` (media type: application/json)
  - added the new optional request property `data/attributes/replica_regions` (media type: application/vnd.api+json)
- **2026-09-12** `7565540b16e0` — 13 breaking
  - removed the enum value `clickhouse` of the request property `data/attributes/engine` (media type: application/json)
  - removed the enum value `clickhouse` of the request property `data/attributes/engine` (media type: application/vnd.api+json)
  - removed the enum value `postgres` of the request property `data/attributes/engine` (media type: application/json)
  - removed the enum value `postgres` of the request property `data/attributes/engine` (media type: application/vnd.api+json)
  - …9 more
- **2026-09-11** `edb6e0d487d9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/latitude/apis/latitude-sh-api/changes/managed_databases/post.md)

---

[API](https://skmtc.dev/latitude/apis/latitude-sh-api.md) · [All operations](https://skmtc.dev/latitude/apis/latitude-sh-api/llms.txt) · [OpenAPI document](https://skmtc.dev/latitude/apis/latitude-sh-api/revisions/3a64859195ed?raw)
