> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Linking DX as a source Canonical URL: https://posthog.com/docs/data-pipelines/sources/getdx > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.posthog.com` instead of `https://us.posthog.com` or `https://app.posthog.com` (app host for links). ## On this page - [Prerequisites](#prerequisites) - [Adding a data source](#adding-a-data-source) - [Getting your organization token](#getting-your-organization-token) - [Token scopes](#token-scopes) - [Configuration](#configuration) - [Supported tables](#supported-tables) - [Sync modes](#sync-modes) - [Troubleshooting](#troubleshooting) **Beta release** This source is currently in **beta**. It works end to end, but you may still hit rough edges. [Let us know](https://us.posthog.com/#panel=support%3Asupport%3Adata_warehouse%3A%3Atrue) if you do. ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_9608fcca70) ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_dark_a92b0e022d) 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. `npx @posthog/wizard warehouse` ![PostHog Wizard hedgehog](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png) ![](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png)Let AI connect your sources for you The DX ([getdx.com](https://getdx.com)) connector syncs developer experience data into PostHog: survey snapshots, teams, users, audit events, and DX Fabric scorecards. DX is a developer experience platform that measures engineering team health through surveys and analytics. ## Prerequisites You need a [DX](https://getdx.com) account with API access and an organization token. Create the token under **Admin** > **Organization tokens** in DX. The scopes you enable on the token determine which tables you can sync. ## Adding a data source 1. In PostHog, go to the [Sources tab](https://app.posthog.com/data-management/sources) of the data pipeline section. 2. Click **\+ New source** and click **Link** next to this source. 3. Enter your credentials (see [Configuration](#configuration) below) and click **Next**. 4. 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 DX, you'll need: - **Organization token:** your DX organization API token. See [getting your organization token](#getting-your-organization-token) below. ## Getting your organization token 1. Sign in to your DX account at [app.getdx.com](https://app.getdx.com). 2. Go to **Admin** > **Organization tokens**. 3. Create a new token with the scopes for the tables you want to sync. 4. Copy the token into PostHog. Token validation calls the `auth.whoami` endpoint and does not require any specific table scopes. ## Token scopes Different tables require different token scopes: | Tables | Required scope | | --- | --- | | `snapshots`, `teams`, `team_audit_events` | `snapshots:read` | | `users` | `users:read` | | `scorecards` | `scorecards:read` | The `scorecards` table requires a DX Fabric subscription. It syncs both published and draft scorecards. ## Configuration | Option | Type | Required | | --- | --- | --- | | `Organization token` | password | Yes | ## Supported tables | Table | Description | Sync method | Incremental field | Primary key | | --- | --- | --- | --- | --- | | `snapshots` | DX survey snapshots with schedules and response counts. | Full refresh | — | — | | `teams` | DX teams with their hierarchy and manager. | Full refresh | — | — | | `users` | DX users with roles, custom properties, or membership in teams, groups, or catalog ownership. | Full refresh | — | — | | `team_audit_events` | Audit events for changes to DX teams. | Full refresh | — | — | | `scorecards` | Published and draft DX Fabric scorecards with their checks and scoring rules. | Full refresh | — | — | - **snapshots:** survey snapshots with schedules and response counts. - **teams:** DX teams with hierarchy and manager information. - **users:** users with roles, custom properties, team/group membership, or entity ownership. - **team\_audit\_events:** audit events for changes to DX teams. - **scorecards:** published and draft DX Fabric scorecards with checks and scoring rules. ## 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_at` timestamp). 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](https://posthog.com/docs/data-pipelines/sources.md#sync-methods) for a full explanation of how each mode works and how to choose between them. All tables use full refresh only. The DX API does not support server-side date filters. | Table | Sync modes | | --- | --- | | `snapshots` | Full refresh | | `teams` | Full refresh | | `users` | Full refresh | | `team_audit_events` | Full refresh | | `scorecards` | Full refresh | ## Troubleshooting - **Invalid organization token:** the token was deleted or is invalid. Create a new token in DX under **Admin** > **Organization tokens** and update the source credentials. - **Authentication failed (not\_authed or invalid\_auth):** check that your organization token is correct and hasn't expired. - **Access denied (not\_authorized):** your token doesn't have the required scopes for the tables you're syncing. Check the [token scopes](#token-scopes) section above. - **Scorecards table empty or failing:** scorecards require a DX Fabric subscription. Verify your DX account has DX Fabric enabled. - **Empty tables:** check that data exists in DX first. For example, verify you have snapshots or teams configured in your DX account. If your sync is failing or data looks wrong, see the [Data warehouse troubleshooting guide](https://posthog.com/docs/data-warehouse/troubleshooting.md). If that doesn't help, [contact support](https://us.posthog.com/#panel=support%3Asupport%3Adata_warehouse%3A%3Atrue) – we're happy to help.