🚀 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
- cURL
- Node
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
- How do I link my PostHog account?
Connect your PostHog account using the Connect UI (hostname and Project Token)
Need PostHog’s general analytics/query API instead (reading data, not sending events)? Use the PostHog integration, which authenticates with a personal API key.