Cloudflare D1

Cloudflare D1

Beta
Beta release

This source is currently in beta. It works end to end, but you may still hit rough edges. Let us know if you do.

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

Connect Cloudflare D1 to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Sync the tables of a Cloudflare D1 database into the PostHog Data warehouse.

Create an API token in the Cloudflare dashboard with the D1 Read permission for the account. The account ID and database ID are on the database's page under Storage & Databases > D1.

Configuration

OptionTypeRequired
API tokenpasswordYes
Account IDtextYes
Database IDtextYes

Linking Cloudflare D1 to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Cloudflare D1
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

The tables available from this source are discovered from your account when you connect it, so the exact list depends on your data. Once connected, you can pick which tables to sync from the sources tab.