v1

latestOpenAPI 3.0.1MIT2026-07-134925112.4 KB

Create Database

Creates a new database in a group for the organization or user.

post/v1/organizations/{organizationSlug}/databases

Path parameters

organizationSlugstring required

The slug of the organization or user account.

Request body

namestring required

The name of the new database. Must contain only lowercase letters, numbers, dashes. No longer than 64 characters.

groupstring required

The name of the group where the database should be created. The group must already exist.

size_limitstring

The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb, 1gb.

Example request

{
  "seed": {
    "type": "database",
    "name": "my-db",
    "timestamp": "2023-12-20T09:46:08Z"
  },
  "remote_encryption": {
    "encryption_key": "base64-encoded-key",
    "encryption_cipher": "aes256gcm"
  }
}

Response

Successful response