Skip to main content

🚀 Quickstart

Connect to PostHog’s Capture API with Nango and send your first event in 2 minutes. This uses a Project Token (phc_...), not a personal API key — the capture API is a public, write-only endpoint with no identity validation, so no user login is required.
1

Create an integration

In Nango (free signup), go to Integrations -> Configure New Integration -> PostHog (Capture API).
2

Authorize PostHog

Go to Connections -> Add Test Connection -> Authorize, then enter your Hostname (e.g. us.i.posthog.com) and Project Token. Later, you’ll let your users do the same directly from your app.
3

Send your first event

Let’s send a test event via the capture API. Replace the placeholders below with your Environment API key, integration ID, and connection ID:
Nango automatically adds your stored Project Token as the api_key field in the request body — you only need to supply event and distinct_id (plus any properties you want).✅ You’re connected! Check the Logs tab in Nango to inspect requests.
4

Implement Nango in your app

Follow our Auth implementation guide to integrate Nango in your app.

📚 PostHog (Capture API) Integration Guides

Need PostHog’s general analytics/query API instead (reading data, not sending events)? Use the PostHog integration, which authenticates with a personal API key.
Official docs: PostHog Capture API reference

🧩 Pre-built syncs & actions for PostHog (Capture API)

Enable them in your dashboard. Extend and customize to fit your needs. No pre-built syncs or actions available yet.
Not seeing the integration you need? Build your own independently.