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
| Parameter | Type | Required | Description |
|---|---|---|---|
previous_id | string | Yes | The old or anonymous ID to merge from. |
distinct_id | string | Yes | The current 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 | Extra details to include with the event, as fields and values. |
timestamp | string | No | When 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
| 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 | Details 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
| Parameter | Type | Required | Description |
|---|---|---|---|
distinct_id | string | Yes | The unique ID of the user to update. |
properties | object | No | Details 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
| 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"
}
]
}