Skip to main content
POST
/
v1
/
organizations
/
{organizationSlug}
/
databases
/
{databaseName}
/
auth
/
rotate
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/{databaseName}/auth/rotate' \
-H 'Authorization: Bearer TOKEN'
{
  "error": "could not find database with name [databaseName]: record not found"
}
A short downtime is required to complete the changes.
curl -L -X POST 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/{databaseName}/auth/rotate' \
-H 'Authorization: Bearer TOKEN'

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.

databaseName
string
required

The name of the database.

Response

Successful response (No Content)