Linking Turso as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

The Turso connector syncs your database metadata, usage, members, billing, and operational data from Turso into the PostHog data warehouse. Turso is an edge database platform built on libSQL, an open-source fork of SQLite.

Adding a data source

  1. Go to the sources tab of the data pipeline section in PostHog.
  2. Click + New source and then click Link next to Turso.
  3. You need an API token from Turso. Go to your Turso dashboard, navigate to Settings > Tokens, and create a new token.
  4. Back in PostHog, enter the token in the API token field, enter your Turso organization name, and click Next.
  5. Select the tables you want to sync, set the sync frequency, then click Import.

Once the syncs are complete, you can start using Turso data in PostHog.

Available tables

TableDescriptionSync method
databasesDatabase metadata, placement, and access settingsFull refresh
groupsDatabase groups and their primary locationsFull refresh
membersOrganization members and their rolesFull refresh
invitesPending invitations to join the organizationFull refresh
invoicesIssued organization invoices and their payment statusFull refresh
audit_logsActions performed within the organization (off by default)Full refresh
database_usageCurrent calendar month usage totals and instance metrics for each databaseFull refresh
database_instancesPrimary and replica instances of each database, with their regions and hostnamesFull refresh
database_statsTop queries of each database, with the rows they read and wroteFull refresh
organization_usageCurrent billing cycle usage totals for the organization and each databaseFull refresh
locationsLocation codes where databases can be created or replicated, with their namesFull refresh

Note: The audit_logs table requires the Turso Scaler plan or higher. It's disabled by default – enable it in the table selection to start syncing.

Full refresh tables reload all data on each sync.

Sync limitations

All tables use full refresh only. The Turso API doesn't support pagination or server-side timestamp filters, so incremental syncing isn't available.

Configuration

OptionTypeRequired
Organization slugtextYes
Platform API tokenpasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
databases

Database metadata, placement, and access settings.

Full refresh—DbId
groups

Database groups and their primary locations.

Full refresh—uuid
members

Organization members and their roles.

Full refresh—username
invites

Pending organization invitations.

Full refresh—id
invoices

Issued invoices and their payment status.

Full refresh—invoice_number
audit_logs

Organization activity. Requires the Scaler plan or higher; enable this table to sync it.

Full refresh——
database_usage

Current calendar month usage totals and instance metrics for each database.

Full refresh—database_id
database_instances

Primary and replica instances of each database, with their regions and hostnames.

Full refresh—database_id, uuid
database_stats

Top queries of each database, with the rows they read and wrote.

Full refresh—database_id, query
organization_usage

Current billing cycle usage totals for the organization and each database.

Full refresh—uuid
locations

Location codes where databases can be created or replicated, with their names.

Full refresh—code

Still have questions?

Was this page useful?