Step 1 — Create a personal API key
1
Open Personal API keys
In PostHog, go to Settings → Personal API keys and click Create key.
2
Choose its access
Grant read access to the projects you want, including the Query and Insight scopes. Read access is enough for reporting; add write access to the scopes the agent should change (for example insights or feature flags). Copy the key — it starts with
phx_.Step 2 — Connect in Ryze
On the Integrations page, click Connect on the PostHog card and fill in:- Personal API key — the
phx_key - Host —
https://us.posthog.comfor US Cloud,https://eu.posthog.comfor EU Cloud, or your self-hosted URL
What the agent can do
- Read — events, insights, funnels, dashboards, feature flags, cohorts and persons, plus HogQL queries
- Change — create or edit insights, dashboards, feature flags and cohorts when you ask
- Delete — remove those objects when you explicitly ask
To keep the agent read-only, give the personal API key read scopes only — PostHog then rejects any change.
Troubleshooting
- Key rejected — check the host matches where your account lives (US vs EU), and that the key has the Query and Insight scopes.
- Project missing — the key has no read access to that project. Edit the key’s project access in PostHog and reconnect.

