Lodol Docs

PostHog

API actions for the PostHog integration.

PostHog

Track events and manage analytics with PostHog.


Merge user IDs

Merge an anonymous ID with an identified user in PostHog.

Parameters

ParameterTypeRequiredDescription
previous_idstringYesThe old or anonymous ID to merge from.
distinct_idstringYesThe current ID to merge into.

Response

{
  "status": "mock_value"
}

Capture an event

Send a custom event to PostHog with optional properties and timestamp.

Parameters

ParameterTypeRequiredDescription
distinct_idstringYesThe distinct ID representing the user or device.
eventstringYesThe event name to capture.
propertiesobjectNoExtra details to include with the event, as fields and values.
timestampstringNoWhen the event happened, for example, 2026-07-15T09:00:00Z.

Response

{
  "status": "mock_value"
}

Identify a group

Save or update details for a group in PostHog, such as a company or team.

Parameters

ParameterTypeRequiredDescription
group_typestringYesThe group type, such as 'company' or 'team'.
group_keystringYesThe unique key identifying the group.
propertiesobjectNoDetails to save on the group, as fields and values.

Response

{
  "status": "mock_value"
}

Identify a user

Save or update profile details for a user in PostHog.

Parameters

ParameterTypeRequiredDescription
distinct_idstringYesThe unique ID of the user to update.
propertiesobjectNoDetails to save on the user's profile, as fields and values.

Response

{
  "status": "mock_value"
}

List feature flags

List the feature flags in your PostHog project.

Parameters

ParameterTypeRequiredDescription
project_idstringYesPostHog project ID.
limitnumberNoMaximum number of feature flags to return (1-200).

Response

{
  "feature_flags": [
    {
      "active": true,
      "key": "beta-feature",
      "name": "Beta Feature"
    }
  ]
}

On this page