POST
/
v1
/
organizations
/
{organizationSlug}
/
databases
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/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]-[organizationSlug].turso.io",
    "Name": "my-db"
  }
}
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases' \
  -H 'Authorization: Bearer TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
      "name": "new-database",
      "group": "default"
  }'

Path Parameters

organizationSlug
string
required

The slug of the organization or user account.

Body

application/json
Database data to create a new database
name
string
required

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

group
string
required

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

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
Successful response
database
object

The newly created database