EveryAppEveryApp
Providers

PostHog

Product analytics: insights, feature flags, persons, cohorts, experiments and HogQL queries.

Product analytics: insights, feature flags, persons, cohorts, experiments and HogQL queries.

API key

  1. Sign in to PostHog in the region your project lives in (US or EU).
  2. Open Settings → Personal API keys and select Create personal API key.
  3. Pick the organization or project it can reach, and only the scopes the app needs (for example Insight: Read).
  4. Copy the key (phx_…). It's shown once. It's not the project token that starts with phc_.

Add it to your Gateway. It asks for the key:

everyapp provider add posthog

Use it in an app

In the app's everyapp.config.ts:

capabilities: {
  posthog: { access: "read", why: "What the app does with it." },
},

The app calls PostHog's API with integrationFetch(), and the Gateway adds the key. Use "write" if the app changes things. More in API providers.

Check it worked: everyapp provider show posthog shows the key as set.

Rate limits: 480 a minute. Create, read, update and delete endpoints 480 a minute and 4,800 an hour; analytics endpoints 240 a minute; the query endpoint 2,400 an hour.

Something wrong or missing? Open an issue.

On this page