POST
https://api.turso.tech
/
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

The body is of type object.

Response

200
application/json

Successful response

The response is of type object.