Skip to main content
POST
/
v1
/
organizations
/
{organizationSlug}
/
groups
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/groups' \
-H 'Authorization: Bearer TOKEN' \
-H 'Content-Type: application/json' \
-d '{
    "name": "new-group",
    "location": "lhr"
}'
{
  "group": {
    "name": "default",
    "version": "v0.23.7",
    "uuid": "0a28102d-6906-11ee-8553-eaa7715aeaf2",
    "locations": [
      "lhr",
      "ams",
      "bos"
    ],
    "primary": "us-east-1",
    "delete_protection": false
  }
}
Creating more than one group is limited to Scaler, Pro and Enterprise plans.
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/groups' \
-H 'Authorization: Bearer TOKEN' \
-H 'Content-Type: application/json' \
-d '{
    "name": "new-group",
    "location": "lhr"
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationSlug
string
required

The slug of the organization or user account.

Body

application/json

Group data to create a new group

name
string
required

The name of the new group.

location
string
required

The location key for the new group.

extensions

The extensions to enable for new databases created in this group. Users looking to enable vector extensions should instead use the native libSQL vector datatype.

Available options:
all

Response

Successful response

group
object

The newly created group