Turso Platform API

Product · API / developer platform by Turso

Programmatic management for serverless SQLite databases and multi-tenant architectures.

A RESTful API for programmatically managing Turso databases, teams, and users. It is designed for developers building multi-tenant platforms who need to provision and manage serverless SQLite databases at scale.

Languages
TypeScript

Category: API Management

APIs and SDKs
RESTful API, TypeScript SDK (@tursodatabase/api)
Platforms
Web, API
Deployment
Cloud (Global locations)
Integrations
Turso Web UI, Turso CLI, Vercel, MCP (AI agents)
API Type
RESTful
Primary SDK
TypeScript (@tursodatabase/api)
  • RESTful API for database and team management
  • Official TypeScript SDK (@tursodatabase/api)
  • Supports multi-tenant database-per-user architectures
  • Programmatic database branching and point-in-time recovery
  • Global location management via Groups API

Overview

The Turso Platform API is a RESTful interface designed for developers and businesses to programmatically manage databases, teams, and users. It serves as the underlying infrastructure for the Turso Web UI and CLI, ensuring consistency across management tools. The API is specifically built for platforms implementing multi-tenant architectures, such as database-per-user models, or resellers provisioning databases on behalf of end users. It supports advanced database operations including branching, point-in-time recovery, and global location management through a dedicated Groups API. Developers can integrate these capabilities directly into their workflows using standard REST calls or the official @tursodatabase/api TypeScript SDK.

Platform Management

  • RESTful Management: The Turso Platform API is a RESTful interface that allows developers to programmatically manage databases and users.
  • TypeScript SDK Support: The @tursodatabase/api client provides a TypeScript wrapper for the entire Platform API for seamless integration.
  • Multi-tenant Provisioning: The API is built for platforms building database-per-user architectures or resellers provisioning databases for end users.
  • Point-in-Time Recovery: Developers can programmatically recover databases from a specific point in time using API calls.
  • Database Branching: The API enables the creation and management of database branches to support development workflows.

API Resources

  • Groups API: The Groups API allows users to create and manage groups to define where databases are geographically located.
  • Database API: The Database API provides endpoints to create and manage databases and generate authentication tokens.
  • Locations API: The Locations API allows developers to fetch all available global locations where database groups can be hosted.
  • Organizations API: The Organizations API provides tools to manage organization members, invites, and team settings.
  • API Token Management: The API Tokens API allows for the creation, validation, and revocation of API keys used for platform access.
  • Audit Logs API: The Audit Logs API provides endpoints to monitor activity and logs within an organization.

Use cases

  • SaaS platforms provision a unique serverless SQLite database for every new user sign-up programmatically.
  • Development teams automate the creation of database branches within their CI/CD pipelines using API calls.
  • Platform administrators monitor organization activity and security through the Audit Logs API endpoints.
  • Resellers manage global database distribution by programmatically assigning databases to specific geographic groups.

Specifications

APIs and SDKs
RESTful API, TypeScript SDK (@tursodatabase/api)
Platforms
Web, API
Deployment
Cloud (Global locations)
Integrations
Turso Web UI, Turso CLI, Vercel, MCP (AI agents)
API Type
RESTful
Primary SDK
TypeScript (@tursodatabase/api)
Core Resources
Groups, Databases, Locations, Organizations, API Tokens, Audit Logs
Use Case
Multi-tenant architectures, Database-per-user provisioning

How it works

  1. Authentication: Developers obtain an API key through the Turso dashboard or CLI to authenticate requests.
  2. Integration: Users can use the RESTful endpoints directly or install the @tursodatabase/api TypeScript client.
  3. Provisioning Resources: Developers use the Groups and Locations APIs to define where their serverless SQLite databases will be hosted globally.
  4. Management Operations: The API is used to programmatically create databases, manage branches, and handle user invites for multi-tenant applications.

FAQ

What is the Turso Platform API?

The Turso Platform API is a RESTful interface used to manage databases, teams, and users programmatically.

Is there a TypeScript SDK available?

Yes, the @tursodatabase/api client is an official TypeScript SDK that wraps the entire Platform API.

How does it relate to the Turso CLI and Web UI?

It is the same underlying API that powers the Turso Platform Web UI and the Turso CLI.

Who should use the Platform API?

It is designed for platforms building multi-tenant (database-per-user) architectures or resellers provisioning databases for end users.

Added by AntSpace from public sources (docs.turso.tech).

Related

More products by Turso