API-Tokens der Organisation auflisten
Gibt die API-Tokens zurück, die auf diese Organisation beschränkt sind (sowohl organisations- als auch gruppenbezogen). Uneingeschränkte Tokens werden hier nicht zurückgegeben – diese verwalten Sie über [`GET /v1/auth/api-tokens`](/api-reference/tokens/list).
https://api.turso.tech/v1/organizations/{organizationSlug}/api-tokens Die Autorisierung verhält sich symmetrisch zum Revoke-Endpoint:
- Admins und Owner sehen jedes Token, das auf die Organisation beschränkt ist, wobei der erstellende Benutzer im Feld
ownerangegeben wird. - Mitglieder und Viewer sehen nur Tokens, die sie selbst erstellt haben.
Dies entspricht dem Personal-Access-Token-Modell in den GitHub-Organisationseinstellungen: Admins erhalten die vollständige Liste der Zuordnungen; alle anderen sehen nur ihren eigenen Zugriff.
Verwenden Sie diesen Endpoint, um die Tokens aufzulisten, die auf eine einzelne Organisation wirken (sowohl organisations- als auch gruppenbezogen). Admins und Owner sehen jedes Token in der Organisation mit dem erstellenden Benutzer; Mitglieder und Viewer sehen nur ihre eigenen. Um Tokens über alle Organisationen hinweg aufzulisten, denen der Aufrufer angehört, verwenden Sie stattdessen GET /v1/auth/api-tokens.
curl -L 'https://api.turso.tech/v1/organizations/{organizationSlug}/api-tokens' \
-H 'Authorization: Bearer TOKEN'
OpenAPI
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:
get:
summary: List Organization API Tokens
description: >-
Returns the API tokens scoped to this organization (both
organization-scoped and group-scoped). Unrestricted tokens are not
returned here — manage those via [`GET
/v1/auth/api-tokens`](/api-reference/tokens/list).
Authorization is symmetric with the revoke endpoint:
- **Admins and owners** see every token scoped to the organization, with
the minting user attached in the `owner` field.
- **Members and viewers** see only tokens they minted themselves.
This mirrors the personal-access-token model used in GitHub organization
settings: admins get the full attribution list; everyone else sees their
own access.
operationId: listOrganizationAPITokens
parameters:
- $ref: '#/components/parameters/organizationSlug'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
tokens:
type: array
items:
type: object
properties:
name:
type: string
description: The token name.
example: ci-bot
id:
type: string
description: The token ID. Pass this to the revoke endpoint.
example: clGFZ4STEe6fljpFzIum8A
organization:
type: string
description: >-
The organization slug. Always equal to the path
parameter for tokens returned here.
example: my-org
group:
type: string
description: >-
The group name. Present only for group-scoped
tokens.
example: default
scopes:
type: array
items:
type: string
description: >-
The expanded scope list. Present only for tokens
with scopes.
example:
- db:create
- db:configure
- db:mint-token
owner:
type: object
properties:
username:
type: string
example: alice
email:
type: string
example: alice@example.com
description: >-
The user who minted the token. Returned to admins
and owners so they can see who provisioned each
token.
created_at:
type: string
description: The date the token was created.
example: '2026-05-21'
components:
parameters:
organizationSlug:
in: path
name: organizationSlug
required: true
schema:
type: string
description: The slug of the organization or user account.