
Connectors / Data and analytics · HTTP Connector
Automate PostHog with Tray.ai
Create a feature flag, update a person and create an insight in PostHog. Connect PostHog to the rest of your data and analytics stack with Tray.ai.
Thanks — someone from our team will be in touch soon.
What can you do with PostHog on Tray.ai?
PostHog is a product analytics platform that records how people use an app, with feature flags, experiments, session replays, and dashboards in one place. Tray.ai connects to PostHog through the HTTP Connector, so your workflows can call the PostHog API alongside the rest of your stack.
- Connects through
- HTTP Connector
- Authentication
- A bearer token or OAuth 2.0
- Base URL
- https://us.posthog.com
What the PostHog API covers
6 resources and 24 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow.
Feature flags
- List feature flags
- Create a feature flag
- Get a feature flag
- Update a feature flag
- Delete a feature flag
Persons
- List persons
- Get a person
- Update a person
Insights
- List insights
- Create an insight
- Get an insight
- Update an insight
- Delete an insight
Cohorts
- List cohorts
- Create a cohort
- Get a cohort
- Update a cohort
- Delete a cohort
Annotations
- List annotations
- Create an annotation
- Update an annotation
- Delete an annotation
Events
- Capture an event
- Capture a batch of events
Checked against PostHog's own documentation on 2026-10-22
How Tray.ai makes this work
PostHog plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 700+ connectors with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in PostHog — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose PostHog actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →More data and analytics apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every data and analytics connector →
Frequently asked questions
What can a Tray.ai workflow do in PostHog?
+
The PostHog API documents 24 actions across 6 resources (Feature flags, Persons, Insights, Cohorts, Annotations, Events). For example: List feature flags; List persons; List insights. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with PostHog?
+
The PostHog API uses a bearer token and OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
See PostHog working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.