Skip to content
Maua.Culturewire

Turso

Cloud SQLite databases: organizations, databases and tokens

Developer toolsCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Platform API tokenSecretRequired

    Where to find them

    1. Create a platform API token: in the Turso dashboard (button below) open your avatar menu → “Settings” and create a token, or with the CLI: turso auth api-tokens mint culturewire --org <your-organization> (restricts the token to one organization).
    2. Copy the token: it is shown only once. This API manages organizations, groups and databases; to run SQL you use each database's URL with a database token, which is created from here.

    Get credentials (opens in a new tab)

Tools (1)

  • Turso API requestTURSO_SEND_REQUEST

    Authenticated call to the Turso API (https://api.turso.tech/v1). Any endpoint of the API is allowed. Almost all paths include the organization slug (GET /organizations gives it; if the token belongs to a single organization and cannot list them, ask the user for it). Examples: GET /organizations/{org}/databases, GET /organizations/{org}/databases/{database}, POST /organizations/{org}/databases {"name": "my-database", "group": "default"}, POST /organizations/{org}/databases/{database}/auth/tokens?expiration=7d&authorization=read-only (database token; it comes in jwt), GET /organizations/{org}/groups, GET /locations (available regions).

    Required scopes

    No scopes required

    Input

    Turso API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.