POST
/
v1
/
organizations
/
{organizationName}
/
databases
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationName}/databases' \
  -H 'Authorization: Bearer TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
      "name": "new-database",
      "group": "default"
  }'
{
  "database": {
    "DbId": "0eb771dd-6906-11ee-8553-eaa7715aeaf2",
    "Hostname": "[databaseName]-[organizationName].turso.io",
    "Name": "my-db"
  }
}

Path Parameters

organizationName
string
required

The name of the organization or user.

Body

application/json
group
string
required

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

name
string
required

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

seed
object
size_limit
string

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

Response

200 - application/json
database
object