create_database_token
Create Database Token
Generate an authentication token for a specific database. The token can be used by SDKs to connect to the database. Supports read-only access and custom expiration.
create_database_token
Generate an authentication token for a specific database. The token can be used by SDKs to connect to the database. Supports read-only access and custom expiration.
list_groups
List all database groups in the organization. Groups are logical containers for databases with regional replication.
invalidate_database_tokens
Rotate tokens for a database, invalidating all existing database auth tokens. Any clients using old tokens will need to obtain new ones.
create_group_token
Generate an authentication token for all databases in a group. Group tokens grant access to every database within the group. Supports read-only access and custom expiration.
delete_database
Permanently delete a database from the organization. This action cannot be undone.
get_group
Retrieve detailed information about a specific database group, including its locations, primary region, and archive status.
get_organization
Retrieve information about the current organization, including usage statistics, subscription details, and billing information.
create_group
Create a new database group in a specific location. Groups serve as containers for databases and handle regional replication.
invalidate_group_tokens
Rotate tokens for a group, invalidating all existing group auth tokens. Any clients using old tokens will need to obtain new ones.
manage_group_locations
Add or remove replica locations for a database group. Adding a location creates a new replica machine. Removing a location destroys the replica at that location.
manage_members
List, add, or remove members from the organization. Can also invite users by email.
list_locations
List all available deployment locations for database groups. Also identifies the closest location to the requester.
create_database
Create a new database within a group. Supports seeding from an existing database or a dump URL. Can also create schema databases for multi-DB schema management.
get_database
Retrieve detailed information about a specific database, including its configuration, instances, usage statistics, and top queries.
list_audit_logs
Retrieve audit logs for the organization. Audit logs track actions taken by members, useful for monitoring activity and security.
delete_group
Permanently delete a database group and all its databases. This action cannot be undone.
transfer_group
Transfer a database group to another organization. Moves the group and all its databases to the target organization.
unarchive_group
Unarchive a previously archived database group, restoring access to all its databases.
update_database_configuration
Update a database's configuration. Allows toggling read/write blocking, ATTACH permission, and setting size limits.
list_databases
List all databases in the organization. Returns database names, hostnames, regions, group assignments, and status information.
manage_api_tokens
List, create, revoke, or validate API tokens. API tokens are used for authenticating with the Turso Platform API.
Manage distributed SQLite-compatible databases on the Turso platform. Create, list, retrieve, delete, and configure databases and database groups across global locations. Seed databases from existing databases, dumps, or file uploads. Manage database schema inheritance via schema databases for multi-tenant architectures. Control group locations and replicas, generate database and group auth tokens with configurable expiration and read-only access, and rotate tokens. Manage organizations, members, invitations, and roles. Retrieve usage statistics (rows read, rows written, storage), top queries, invoices, and subscription details. Access audit logs and discover available deployment locations.
Common questions about connecting Turso to AI agents with Metorial.