Turso Cloud API-Referenz Ressourcen Benutzer
Aktuellen Benutzer abrufen
Gibt Informationen über den aktuell authentifizierten Benutzer zurück.
GET
https://api.turso.tech/v1/user curl -L https://api.turso.tech/v1/user \
-H 'Authorization: Bearer TOKEN'
import { createClient } from "@tursodatabase/api";
const turso = createClient({
org: "...",
token: "",
});
const user = await turso.users.getCurrent();
OpenAPI
openapi: 3.0.1
info:
title: Turso Platform API
description: API-Beschreibung hier
license:
name: MIT
version: 0.1.0
servers:
- url: https://api.turso.tech
description: Tursos Plattform-API
security: []
paths:
/v1/user:
get:
summary: Aktuellen Benutzer abrufen
description: Gibt Informationen über den aktuell authentifizierten Benutzer zurück.
operationId: getCurrentUser
responses:
'200':
description: Erfolgreiche Antwort
content:
application/json:
schema:
type: object
properties:
user:
type: object
properties:
username:
type: string
description: Der Benutzername des Benutzers.
example: iku
name:
type: string
description: Der Anzeigename des Benutzers.
example: Iku Turso
email:
type: string
description: Die primäre E-Mail-Adresse des Benutzers.
example: iku@turso.tech
avatarUrl:
type: string
description: URL zum Avatar-Bild des Benutzers.
example: https://avatars.githubusercontent.com/u/12345
plan:
type: string
description: Der aktuelle Plan des Benutzers.
example: scaler
mfa:
type: boolean
description: >-
Ob die Multi-Faktor-Authentifizierung für den
Benutzer aktiviert ist.
example: false
has_pending_invites:
type: boolean
description: >-
Ob für den Benutzer ausstehende
Organisations-Einladungen vorliegen, die noch
angenommen oder abgelehnt werden müssen.
example: false
Synchronisiert aus der offiziellen Turso-Dokumentation (
tursodatabase/turso-docs
· MIT-Lizenz)
Offizielle Doku ↗