Cloudflare D1
BetaThis 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.

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
| Option | Type | Required |
|---|---|---|
API token | password | Yes |
Account ID | text | Yes |
Database ID | text | Yes |
Linking Cloudflare D1 to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Cloudflare D1
- Fill in the required configuration fields
- 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.











