Lodol Docs

PostHog

API actions for the PostHog integration.

PostHog

Track events and manage analytics with PostHog.


Alias a user

Merge an anonymous ID with an identified user in PostHog.

Parameters

ParameterTypeRequiredDescription
previous_idstringYesThe previous distinct ID to merge from.
distinct_idstringYesThe current distinct 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.
propertiesobjectNoOptional properties to include with the event.
timestampstringNoOptional ISO8601 timestamp for the event.

Response

{
  "status": "mock_value"
}

Identify a group

Set properties on a PostHog group identified by type and key.

Parameters

ParameterTypeRequiredDescription
group_typestringYesThe group type, such as 'company' or 'team'.
group_keystringYesThe unique key identifying the group.
propertiesobjectNoOptional properties to set on the group.

Response

{
  "status": "mock_value"
}

Identify a user

Set or update person properties for a distinct ID in PostHog.

Parameters

ParameterTypeRequiredDescription
distinct_idstringYesThe distinct ID to identify.
propertiesobjectNoProperties to set on the user profile.

Response

{
  "status": "mock_value"
}

List feature flags

Fetch feature flags available in the 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