Skip to content
PostHog logo

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.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.

See all connectors

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

posthog.com/docs/api

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.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.