Linking GrowthBook 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.

The GrowthBook connector syncs your feature flag, experimentation, and A/B testing data into the PostHog data warehouse. GrowthBook is an open-source feature flagging and experimentation platform.
Prerequisites
You need a GrowthBook account with API access and a secret API key.
Creating an API key
- Sign in to your GrowthBook account.
- Go to Settings > API Keys.
- Create a new API key with read access to the resources you want to sync.
- Copy the secret key.
Adding a data source
- In PostHog, go to the Sources tab of the data pipeline section.
- Click + New source and click Link next to this source.
- Enter your credentials (see Configuration below) and click Next.
- Select the tables you want to sync, choose a sync method and frequency, then click Import.
Once the syncs are complete, you can start querying this data in PostHog.
When linking GrowthBook, you'll need:
- API key – the secret key created under Settings > API Keys in your GrowthBook dashboard.
Available tables
| Table | Description | Sync method |
|---|---|---|
features | Feature flags with default values, targeting rules, environments, and revision metadata | Full refresh |
experiments | Experiments with hypotheses, variations, phases, analysis settings, and status | Full refresh |
metrics | Legacy metric definitions with data sources, query settings, and measurement behavior | Full refresh |
fact_tables | Fact table definitions with SQL, identifier columns, and data source references | Full refresh |
fact_metrics | Metrics built from fact tables, including numerator, denominator, and analysis settings | Full refresh |
segments | Reusable experiment populations defined by queries or fact table filters | Full refresh |
dimensions | Query-based dimensions for grouping experiment results | Full refresh |
projects | Projects that organize feature flags, experiments, and access settings | Full refresh |
environments | Feature flag environments and their default states, project scopes, and parent environments | Full refresh |
saved_groups | Reusable targeting groups defined by attribute values or conditions | Full refresh |
data_sources | Data source definitions with identifier types and experiment assignment queries | Full refresh |
members | Organization members with global roles, project roles, and environment access | Full refresh |
teams | Teams with their members, global roles, project roles, and environment access | Full refresh |
namespaces | Namespaces that split traffic so experiments in the same namespace stay mutually exclusive | Full refresh |
holdouts | Holdouts that keep a persistent control group out of features and experiments | Full refresh |
experiment_results | The latest completed results snapshot for each experiment, with per-variation metric results | Full refresh |
feature_revisions | Feature flag revisions across all features, with their status, author, rules, and publish state | Full refresh |
saved_group_revisions | Saved group revisions with their proposed changes, reviews, and publish state | Full refresh |
reports | Saved experiment reports with their analysis settings, sharing level, and latest results | Full refresh |
contextual_bandits | Contextual bandits with their variations, contextual attributes, decision metric, and allocation settings | Full refresh |
contextual_bandit_results | The latest stats engine output for each contextual bandit, with overall variation weights and per-leaf results | Full refresh |
Sync modes
Each table can be synced in one of several modes, depending on what the source supports:
- Webhook (when available) – the source pushes changes to PostHog in real time. Fastest freshness, lowest ongoing cost, and the only mode that reliably captures updates and deletes.
- Incremental – only new or updated rows are synced on each run, using a cursor field (such as an
updated_attimestamp). Cheaper than a full refresh, but deletes aren't captured. - Append only – new rows are appended using a cursor field; existing rows are never updated. Ideal for immutable, append-only tables like event logs.
- Full refresh – the whole table is reloaded on every sync. Use it when a table has no reliable cursor or when you need deletions reflected.
See sync methods for a full explanation of how each mode works and how to choose between them.
All GrowthBook tables are full refresh only. The GrowthBook API doesn't expose server-side timestamp filters, so each sync reloads the full dataset.
Configuration
| Option | Description |
|---|---|
API keyType: password Required: True | |
API base URLType: text Required: False | For self-hosted GrowthBook, enter your public HTTPS API URL including /api. |
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
features | Feature flags with default values, targeting rules, environments, and revision metadata. | Full refresh | — | — |
experiments | Experiments with hypotheses, variations, phases, analysis settings, and status. | Full refresh | — | — |
metrics | Legacy metric definitions with data sources, query settings, and measurement behavior. | Full refresh | — | — |
fact_tables | Fact table definitions with SQL, identifier columns, and data source references. | Full refresh | — | — |
fact_metrics | Metrics built from fact tables, including numerator, denominator, and analysis settings. | Full refresh | — | — |
segments | Reusable experiment populations defined by queries or fact table filters. | Full refresh | — | — |
dimensions | Query-based dimensions for grouping experiment results. | Full refresh | — | — |
projects | Projects that organize feature flags, experiments, and access settings. | Full refresh | — | — |
environments | Feature flag environments and their default states, project scopes, and parent environments. | Full refresh | — | — |
saved_groups | Reusable targeting groups defined by attribute values or conditions. | Full refresh | — | — |
data_sources | Data source definitions with identifier types and experiment assignment queries. | Full refresh | — | — |
members | Organization members with global roles, project roles, and environment access. | Full refresh | — | — |
teams | Teams with their members, global roles, project roles, and environment access. | Full refresh | — | — |
namespaces | Namespaces that split traffic so experiments in the same namespace stay mutually exclusive. | Full refresh | — | — |
holdouts | Holdouts that keep a persistent control group out of features and experiments, with their linked experiments, features, and lifecycle stage. | Full refresh | — | — |
experiment_results | The latest completed results snapshot for each experiment, with per-variation metric results and analysis settings. | Full refresh | — | — |
feature_revisions | Feature flag revisions across all features, with their status, author, rules, and publish state. | Full refresh | — | — |
saved_group_revisions | Saved group revisions with their proposed changes, reviews, and publish state. | Full refresh | — | — |
reports | Saved experiment reports with their analysis settings, sharing level, and latest results. | Full refresh | — | — |
contextual_bandits | Contextual bandits with their variations, contextual attributes, decision metric, and allocation settings. | Full refresh | — | — |
contextual_bandit_results | The latest stats engine output for each contextual bandit, with overall variation weights and per-leaf results. | Full refresh | — | — |
Troubleshooting
- 401 error – your GrowthBook API key is invalid or has been revoked. Create a new key in your GrowthBook dashboard and reconnect.
- 403 error – your API key lacks read permissions for the requested resource. Check that the key has the appropriate access in GrowthBook.
If your sync is failing or data looks wrong, see the Data warehouse troubleshooting guide. If that doesn't help, contact support – we're happy to help.





