Hasura

Hasura

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 Hasura to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Connect your Hasura GraphQL Engine (Hasura Cloud or self-hosted v2) to pull the tables and views it exposes into the PostHog Data warehouse.

Enter your GraphQL endpoint, for example https://my-project.hasura.app/v1/graphql, and the project's admin secret (the HASURA_GRAPHQL_ADMIN_SECRET value). On Hasura Cloud, you can find both on the project's General settings page.

PostHog reads with the admin role, so it can see every tracked table. Tables with a primary key can sync incrementally on a timestamp, date or integer column. Pick a column that has an index, because each page is ordered by it. Views and tables without a primary key sync with a full refresh.

PostHog reads sources that use the hasura-default naming convention and no root field namespace. It does not list the tables of other sources.

Configuration

OptionTypeRequired
GraphQL endpointtextYes
Admin secretpasswordYes

Linking Hasura to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Hasura
  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.