Turso
Cloud SQLite databases: organizations, databases and tokens
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
- 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).
- 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.
Tools (1)
Turso API request
TURSO_SEND_REQUESTAuthenticated 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 Name Type Description 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.

