
env0
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 env0 to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your env0 API key credentials to pull your env0 data into the PostHog Data warehouse.
You can create an organization API key in your env0 Organization Settings > API Keys, or a personal API key from your user settings. The key needs read access to the organizations you want to sync.
Environment cost data is only available for environments with cost monitoring configured.
Configuration
| Option | Type | Required |
|---|---|---|
API key ID | text | Yes |
API key secret | password | Yes |
Linking env0 to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select env0
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
organizations | An env0 organization the API key can access, including its policies and plan settings. | Full refresh | — | — |
projects | A project groups environments, templates, and team access under an organization. | Full refresh | — | — |
teams | A team of users used to assign roles and project access within an organization. | Full refresh | — | — |
templates | A template (blueprint) defines a deployable environment type: its IaC repository, revision, and tooling. | Full refresh | — | — |
environments | An environment is a deployment managed by env0 — the live instance of a template within a project. | Full refresh | — | — |
deployments | A deployment log records one deploy, destroy, plan, or drift-detection run of an environment. | Incremental, Full refresh | startedAt | — |
environment_costs | Daily cloud cost records for an environment over the last year. Requires cost monitoring to be configured for the environment. | Full refresh | — | — |