Quickstart with the TypeScript SDK
The fastest way to use the Platform API from JavaScript or TypeScript is the official@tursodatabase/api client:
Common use cases
Database per user / database per agent (multi-tenant)
Provision a dedicated database per user or per AI agent. Each entity gets its own isolated SQLite database that you create, token-scope, and tear down via the API.- Over the wire — query the database remotely using
@tursodatabase/serverless - Local-first with sync — sync the database to and from a local file using
@tursodatabase/sync
Platform / reseller
Create and manage databases on behalf of your end users. Use the Platform API to build your own database-as-a-service on top of Turso.API Quickstart
Step-by-step guide to create your first database with the API.
API Resources
Start integrating the Turso API with your platform in a few simple steps.Groups API
Create and manage where your database is located.
Database API
Create, manage and generate auth tokens for databases.
Locations API
Fetch all available locations where your database group can be located.
Organizations API
Manage your organization, it's members and invites.
API Tokens API
Create, validate and revoke API keys that can be used to access the API.
Audit Logs API
Monitor logs of what's happening in your organization.