Skip to main content
DELETE
/
v1
/
organizations
/
{organizationSlug}
/
api-tokens
/
{tokenId}
curl -L -X DELETE 'https://api.turso.tech/v1/organizations/{organizationSlug}/api-tokens/{tokenId}' \
  -H 'Authorization: Bearer TOKEN'
{
  "token": "clGFZ4STEe6fljpFzIum8A"
}

Documentation Index

Fetch the complete documentation index at: https://docs.turso.tech/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint takes a token ID (not a name) because token names are not unique across users in an organization. Admins and owners may revoke any token scoped to the organization; members and viewers may only revoke tokens they minted themselves. Use DELETE /v1/auth/api-tokens/{tokenName} to revoke unrestricted tokens.
curl -L -X DELETE 'https://api.turso.tech/v1/organizations/{organizationSlug}/api-tokens/{tokenId}' \
  -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.

tokenId
string
required

The ID of the token to revoke (from the list endpoint).

Response

200 - application/json

Successful response

token
string

The ID of the revoked token.

Example:

"clGFZ4STEe6fljpFzIum8A"