# Organisations-API-Token widerrufen

> Widerruft ein Token, das auf diese Organisation beschränkt ist.
> Canonical HTML: https://tursodb.cn/de/docs/api-reference/tokens/revoke-organization/
> Upstream Source (MIT): https://docs.turso.tech/api-reference/tokens/revoke-organization
> Language: de

---
Der Pfad verwendet eine Token-**ID**, keinen Namen, da Namen pro Benutzer eindeutig sind, nicht aber benutzerübergreifend — ein Administrator, der das Token eines Mitglieds widerruft, kann allein anhand des Namens keine eindeutige Zuordnung vornehmen.

Die Autorisierung ist symmetrisch zum List-Endpoint:

- **Admins und Owner** können jedes Token widerrufen, das auf die Organisation beschränkt ist (org-scoped oder group-scoped, unabhängig davon, wer es erstellt hat).
- **Members und Viewer** können nur Tokens widerrufen, die sie selbst erstellt haben.

Ein Token, das auf eine andere Organisation beschränkt ist, liefert `404`, nicht `403`, sodass der Endpoint die Existenz organisationsübergreifender Token-IDs nicht preisgibt. Uneingeschränkte Tokens sind hier ebenfalls nicht erreichbar und müssen über [`DELETE /v1/auth/api-tokens/{tokenName}`](/de/docs/api-reference/tokens/revoke/) widerrufen werden.

<div class="doc-callout doc-callout-info"><div class="doc-callout-title">HINWEIS</div><div class="doc-callout-body">

Dieser Endpoint verwendet eine Token-**ID** (keinen Namen), da Token-Namen innerhalb einer Organisation nicht benutzerübergreifend eindeutig sind. Admins und Owner können jedes Token widerrufen, das auf die Organisation beschränkt ist; Members und Viewer können nur Tokens widerrufen, die sie selbst erstellt haben. Verwenden Sie [`DELETE /v1/auth/api-tokens/{tokenName}`](/de/docs/api-reference/tokens/revoke/), um uneingeschränkte Tokens zu widerrufen.

</div></div>


```bash cURL
curl -L -X DELETE 'https://api.turso.tech/v1/organizations/{organizationSlug}/api-tokens/{tokenId}' \
  -H 'Authorization: Bearer TOKEN'
```


## OpenAPI

````yaml DELETE /v1/organizations/{organizationSlug}/api-tokens/{tokenId}
openapi: 3.0.1
info:
  title: Turso Platform API
  description: API description here
  license:
    name: MIT
  version: 0.1.0
servers:
  - url: https://api.turso.tech
    description: Turso's Platform API
security: []
paths:
  /v1/organizations/{organizationSlug}/api-tokens/{tokenId}:
    delete:
      summary: Revoke Organization API Token
      description: >-
        Revokes a token scoped to this organization.


        The path takes a token **ID**, not a name, because names are unique per
        user but not across users — an admin revoking a member's token can't
        disambiguate by name alone.


        Authorization is symmetric with the list endpoint:


        - **Admins and owners** can revoke any token scoped to the organization
        (org-scoped or group-scoped, regardless of who minted it).

        - **Members and viewers** can revoke only tokens they minted themselves.


        A token scoped to a different organization returns `404`, not `403`, so
        the endpoint does not leak the existence of cross-org token IDs.
        Unrestricted tokens are also unreachable here and must be revoked via
        [`DELETE
        /v1/auth/api-tokens/{tokenName}`](/api-reference/tokens/revoke).
      operationId: revokeOrganizationAPIToken
      parameters:
        - $ref: '#/components/parameters/organizationSlug'
        - name: tokenId
          in: path
          required: true
          schema:
            type: string
          description: The ID of the token to revoke (from the list endpoint).
          example: clGFZ4STEe6fljpFzIum8A
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  token:
                    type: string
                    description: The ID of the revoked token.
                    example: clGFZ4STEe6fljpFzIum8A
components:
  parameters:
    organizationSlug:
      in: path
      name: organizationSlug
      required: true
      schema:
        type: string
      description: The slug of the organization or user account.

````
