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" } }
Creates a new database in a group for the organization or user.
The slug of the organization or user account.
Database data to create a new database
The body is of type object.
object
Successful response
The response is of type object.
Was this page helpful?