Skip to content
For LLMsView as Markdown·

PostHog ​

undefined

DetailValue
CategoryAnalytics
Base URLhttps://app.posthog.com/api
AuthenticationBearer Token
Endpoints6
Connector keyposthog

Using PostHog in a workflow ​

  1. Go to Connections and click New Connection.
  2. Pick PostHog from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown. The full list is below.

Available endpoints ​

EndpointSummary
GET Events
GET Persons
GET Feature Flags
GET Insights
GET Dashboards
GET Cohorts

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET ​

Events

DetailValue
Operation IDevents_0
MethodGET
Path``

Parameters ​

No parameters.

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PostHog connection from the Connection dropdown.
  3. In the Operation dropdown, select events_0.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PostHog API reference.

GET ​

Persons

DetailValue
Operation IDpersons_1
MethodGET
Path``

Parameters ​

No parameters.

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PostHog connection from the Connection dropdown.
  3. In the Operation dropdown, select persons_1.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PostHog API reference.

GET ​

Feature Flags

DetailValue
Operation IDfeature_flags_2
MethodGET
Path``

Parameters ​

No parameters.

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PostHog connection from the Connection dropdown.
  3. In the Operation dropdown, select feature_flags_2.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PostHog API reference.

GET ​

Insights

DetailValue
Operation IDinsights_3
MethodGET
Path``

Parameters ​

No parameters.

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PostHog connection from the Connection dropdown.
  3. In the Operation dropdown, select insights_3.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PostHog API reference.

GET ​

Dashboards

DetailValue
Operation IDdashboards_4
MethodGET
Path``

Parameters ​

No parameters.

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PostHog connection from the Connection dropdown.
  3. In the Operation dropdown, select dashboards_4.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PostHog API reference.

GET ​

Cohorts

DetailValue
Operation IDcohorts_5
MethodGET
Path``

Parameters ​

No parameters.

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PostHog connection from the Connection dropdown.
  3. In the Operation dropdown, select cohorts_5.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PostHog API reference.