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
| Parameter | Type | Required | Description |
|---|---|---|---|
previous_id | string | Yes | The previous distinct ID to merge from. |
distinct_id | string | Yes | The 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
| Parameter | Type | Required | Description |
|---|---|---|---|
distinct_id | string | Yes | The distinct ID representing the user or device. |
event | string | Yes | The event name to capture. |
properties | object | No | Optional properties to include with the event. |
timestamp | string | No | Optional ISO8601 timestamp for the event. |
Response
{
"status": "mock_value"
}Identify a group
Set properties on a PostHog group identified by type and key.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
group_type | string | Yes | The group type, such as 'company' or 'team'. |
group_key | string | Yes | The unique key identifying the group. |
properties | object | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
distinct_id | string | Yes | The distinct ID to identify. |
properties | object | No | Properties to set on the user profile. |
Response
{
"status": "mock_value"
}List feature flags
Fetch feature flags available in the PostHog project.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | PostHog project ID. |
limit | number | No | Maximum number of feature flags to return (1-200). |
Response
{
"feature_flags": [
{
"active": true,
"key": "beta-feature",
"name": "Beta Feature"
}
]
}