
Discourse
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 Discourse to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Connect your Discourse community forum to sync categories, topics, posts, tags, groups, and user stats into the PostHog Data warehouse.
Generate an Admin API key under Admin > API > Keys on your Discourse instance (a key scoped to "Global" access, or scoped to read the tables below, both work). The instance URL is your forum's address, e.g. https://yourforum.discourse.group.
Configuration
| Option | Type | Required |
|---|---|---|
Instance URL | text | Yes |
Admin API key | password | Yes |
API username | text | Yes |
Linking Discourse to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Discourse
- 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 |
|---|---|---|---|---|
categories | A category groups related topics together, e.g. Support, Feature Requests, or Announcements. | Full refresh | — | — |
topics | A discussion thread. Returned from the site's latest-activity topic list, so it covers every topic that has had activity. | Full refresh | — | — |
posts | A single post (the original post or a reply) within a topic, from the site-wide post stream. | Incremental, Full refresh | id | — |
tags | A tag that can be applied to topics to aid discovery and filtering. | Full refresh | — | — |
groups | A user group, used for permissions, mentions, and messaging. | Full refresh | — | — |
users | A forum member and their aggregate activity stats, from the public user directory leaderboard. | Full refresh | — | — |