This guide shows you how to register your own app with PostHog to obtain OAuth credentials. These are required to let your users authorize your app to access their PostHog account. PostHog supports two approaches to OAuth client registration:Documentation Index
Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
- CIMD (Client ID Metadata Document) — no pre-registration with PostHog needed. Your
client_idis a URL on a domain you control that hosts a JSON metadata document. PostHog fetches this document during the OAuth flow. - Standard registration — contact PostHog’s growth team at team-growth@posthog.com to register an official OAuth integration.
Host a metadata document
On a domain you control, publish a JSON document at a stable URL (e.g. The
https://yourapp.example.com/posthog-oauth-client):client_id must exactly match the URL where you host this document. The redirect_uris must include https://api.nango.dev/oauth/callback.Configure the integration in Nango
In Nango, go to Integrations -> PostHog (OAuth) and enter:
- Client ID — the full URL of your metadata document (e.g.
https://yourapp.example.com/posthog-oauth-client) - Client Secret — enter any placeholder value (e.g.
placeholder); PostHog uses PKCE and does not issue a client secret
Nango requires a value in the Client Secret field to save the integration, but it is never sent to PostHog. Any non-empty string works.
Next
Follow the Quickstart to connect your first account.