> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Linking Polar as a source Canonical URL: https://posthog.com/docs/data-pipelines/sources/polar > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.posthog.com` instead of `https://app.posthog.com` (app host for links). ## On this page - [Adding a data source](#adding-a-data-source) - [Available tables](#available-tables) - [Configuration](#configuration) - [Supported tables](#supported-tables) ![](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 Connect your Polar.sh account to sync customers, products, orders, subscriptions, and more into the PostHog data warehouse. ## Adding a data source 1. Go to the [sources tab](https://app.posthog.com/data-management/sources) of the data pipeline section in PostHog. 2. Click **\+ New source** and then click **Link** next to Polar. 3. Next, you need an [Organization Access Token](https://docs.polar.sh/integrate/oat) from Polar. Create one in your Polar account and grant it the following read scopes: `benefits:read`, `checkouts:read`, `customers:read`, `orders:read`, `organizations:read`, `products:read`, `refunds:read`, and `subscriptions:read`. Copy the token value (it starts with `polar_oat_`). 4. Back in PostHog, enter the token in the `Organization Access Token` field and click **Next**. 5. Select the tables you want to sync, set the sync method and frequency, then click **Import**. Once the syncs are complete, you can start using Polar data in PostHog. ## Available tables | Table | Description | Sync method | | --- | --- | --- | | `customers` | Customers in your Polar organization | Full refresh | | `products` | Products you sell on Polar | Full refresh | | `orders` | Orders placed through Polar | Full refresh | | `subscriptions` | Active and past subscriptions | Full refresh | | `refunds` | Refunds issued | Full refresh | | `checkouts` | Checkout sessions | Full refresh | | `benefits` | Benefits attached to your products | Full refresh | | `organizations` | Your Polar organizations | Full refresh | **Incremental** tables sync only new or updated records on each run. **Full refresh** tables reload all data on each sync. ## Configuration | Option | Type | Required | | --- | --- | --- | | `Organization Access Token` | password | Yes | ## Supported tables | Table | Description | Sync method | Incremental field | Primary key | | --- | --- | --- | --- | --- | | `customers` | A customer of an organization who can purchase products and hold subscriptions. | Full refresh | — | — | | `products` | A product that can be purchased or subscribed to in Polar. | Full refresh | — | — | | `orders` | A completed purchase of a product, including one-time and subscription orders. | Full refresh | — | — | | `subscriptions` | A recurring subscription of a customer to a product. | Full refresh | — | — | | `refunds` | A refund issued against an order in Polar. | Full refresh | — | — | | `checkouts` | A checkout session for purchasing a product in Polar. | Full refresh | — | — | | `benefits` | A benefit that can be granted to customers through products in Polar. | Full refresh | — | — | | `organizations` | An organization on Polar that sells products and owns customers. | Full refresh | — | — |