Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Turso Platform User API
description: API description here
license:
name: MIT
version: 0.1.0
servers:
- url: https://api.turso.tech
description: Turso's Platform API
tags:
- name: User
paths:
/v1/user:
get:
summary: Get Current User
description: Returns information about the currently authenticated user.
operationId: getCurrentUser
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
user:
type: object
properties:
username:
type: string
description: The username of the user.
example: iku
name:
type: string
description: The display name of the user.
example: Iku Turso
email:
type: string
description: The primary email address of the user.
example: iku@turso.tech
avatarUrl:
type: string
description: URL to the user's avatar image.
example: https://avatars.githubusercontent.com/u/12345
plan:
type: string
description: The user's current plan.
example: scaler
mfa:
type: boolean
description: Whether the user has multi-factor authentication enabled.
example: false
has_pending_invites:
type: boolean
description: Whether the user has pending organization invites waiting to be accepted or declined.
example: false
tags:
- User
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT