How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

PostHog product_analytics API

The product_analytics API from PostHog — 32 operation(s) for product_analytics.

PostHog product_analytics API is one of 139 APIs that PostHog publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Product Analytics. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, authentication docs, and an AsyncAPI specification.

This API exposes 50 operations across 32 paths, and defines 357 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against a single base URL, https://app.posthog.com/api.

50 operations 32 paths 357 schemas 4 DELETE24 GET4 PATCH14 POST4 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Base URL
https://app.posthog.com/api
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

PostHog product_analytics API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (PersonalAPIKeyAuth).

Paths & Operations 50

Across 32 paths, the API surfaces 50 operations — 4 DELETE, 24 GET, 4 PATCH, 14 POST, 4 PUT. Each is listed below with its method, path, parameters, and response codes.

product_analytics 50
GET
/api/environments/{environment_id}/elements/deprecated
environments_elements_list 3 params → 200
POST
/api/environments/{environment_id}/elements/deprecated
environments_elements_create 1 param body → 201
GET
/api/environments/{environment_id}/elements/{id}/deprecated
environments_elements_retrieve 2 params → 200
PUT
/api/environments/{environment_id}/elements/{id}/deprecated
environments_elements_update 2 params body → 200
PATCH
/api/environments/{environment_id}/elements/{id}/deprecated
environments_elements_partial_update 2 params body → 200
DELETE
/api/environments/{environment_id}/elements/{id}/deprecated
environments_elements_destroy 2 params → 204
GET
/api/environments/{environment_id}/elements/stats/deprecated
The original version of this API always and only returned $autocapture elements If no include query parameter is sent this remains true. Now, you can pass a combination of include query parameters to…
environments_elements_stats_retrieve 1 param → 200
GET
/api/environments/{environment_id}/elements/values/deprecated
environments_elements_values_retrieve 1 param → 200
GET
/api/environments/{environment_id}/insights/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_list 21 params → 200
POST
/api/environments/{environment_id}/insights/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_create 2 params body → 201
GET
/api/environments/{environment_id}/insights/{id}/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_retrieve 5 params → 200
PUT
/api/environments/{environment_id}/insights/{id}/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_update 3 params body → 200
PATCH
/api/environments/{environment_id}/insights/{id}/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_partial_update 3 params body → 200
DELETE
/api/environments/{environment_id}/insights/{id}/deprecated
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
environments_insights_destroy 3 params → 405
GET
/api/environments/{environment_id}/insights/{id}/activity/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_activity_retrieve 3 params → 200
GET
/api/environments/{environment_id}/insights/{id}/analyze/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_analyze_retrieve 3 params → 200
GET
/api/environments/{environment_id}/insights/{id}/suggestions/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_suggestions_retrieve 3 params → 200
POST
/api/environments/{environment_id}/insights/{id}/suggestions/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_suggestions_create 3 params body → 200
GET
/api/environments/{environment_id}/insights/activity/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_all_activity_retrieve 2 params → 200
POST
/api/environments/{environment_id}/insights/bulk_update_tags/deprecated
Bulk update tags on multiple objects. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove…
environments_insights_bulk_update_tags_create 2 params body → 200
POST
/api/environments/{environment_id}/insights/cancel/deprecated
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
environments_insights_cancel_create 2 params body → 200
POST
/api/environments/{environment_id}/insights/generate_metadata/deprecated
Generate an AI-suggested name and description for an insight based on its query configuration.
environments_insights_generate_metadata_create 2 params body → 200
GET
/api/environments/{environment_id}/insights/my_last_viewed/deprecated
Returns basic details about the last 5 insights viewed by this user. Most recently viewed first.
environments_insights_my_last_viewed_retrieve 2 params → 200
GET
/api/environments/{environment_id}/insights/trending/deprecated
Returns trending insights based on view count in the last N days (default 7). Defaults to returning top 10 insights.
environments_insights_trending_retrieve 2 params → 200
POST
/api/environments/{environment_id}/insights/viewed/deprecated
Update insight view timestamps. Expects: {"insightids": [1, 2, 3, ...]}
environments_insights_viewed_create 2 params body → 200
GET
/api/projects/{project_id}/elements/
elements_list 3 params → 200
POST
/api/projects/{project_id}/elements/
elements_create 1 param body → 201
GET
/api/projects/{project_id}/elements/{id}/
elements_retrieve 2 params → 200
PUT
/api/projects/{project_id}/elements/{id}/
elements_update 2 params body → 200
PATCH
/api/projects/{project_id}/elements/{id}/
elements_partial_update 2 params body → 200
DELETE
/api/projects/{project_id}/elements/{id}/
elements_destroy 2 params → 204
GET
/api/projects/{project_id}/elements/stats/
The original version of this API always and only returned $autocapture elements If no include query parameter is sent this remains true. Now, you can pass a combination of include query parameters to…
elements_stats_retrieve 1 param → 200
GET
/api/projects/{project_id}/elements/values/
elements_values_retrieve 1 param → 200
GET
/api/projects/{project_id}/insights/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_list 21 params → 200
POST
/api/projects/{project_id}/insights/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_create 2 params body → 201
GET
/api/projects/{project_id}/insights/{id}/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_retrieve 5 params → 200
PUT
/api/projects/{project_id}/insights/{id}/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_update 3 params body → 200
PATCH
/api/projects/{project_id}/insights/{id}/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_partial_update 3 params body → 200
DELETE
/api/projects/{project_id}/insights/{id}/
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
insights_destroy 3 params → 405
GET
/api/projects/{project_id}/insights/{id}/activity/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_activity_retrieve 3 params → 200
GET
/api/projects/{project_id}/insights/{id}/analyze/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_analyze_retrieve 3 params → 200
GET
/api/projects/{project_id}/insights/{id}/suggestions/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_suggestions_retrieve 3 params → 200
POST
/api/projects/{project_id}/insights/{id}/suggestions/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_suggestions_create 3 params body → 200
GET
/api/projects/{project_id}/insights/activity/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_all_activity_retrieve 2 params → 200
POST
/api/projects/{project_id}/insights/bulk_update_tags/
Bulk update tags on multiple objects. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove…
insights_bulk_update_tags_create 2 params body → 200
POST
/api/projects/{project_id}/insights/cancel/
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["coalescedresponse"] for followers. This mixin r…
insights_cancel_create 2 params body → 200
POST
/api/projects/{project_id}/insights/generate_metadata/
Generate an AI-suggested name and description for an insight based on its query configuration.
insights_generate_metadata_create 2 params body → 200
GET
/api/projects/{project_id}/insights/my_last_viewed/
Returns basic details about the last 5 insights viewed by this user. Most recently viewed first.
insights_my_last_viewed_retrieve 2 params → 200
GET
/api/projects/{project_id}/insights/trending/
Returns trending insights based on view count in the last N days (default 7). Defaults to returning top 10 insights.
insights_trending_retrieve 2 params → 200
POST
/api/projects/{project_id}/insights/viewed/
Update insight view timestamps. Expects: {"insightids": [1, 2, 3, ...]}
insights_viewed_create 2 params body → 200

Schemas 357

The contract defines 357 schemas that model the data the API accepts and returns. The most detailed are DataTableNode (38 properties), Insight (36 properties), PatchedInsight (36 properties), TrendsFilter (30 properties). Each schema is shown below with its type and property counts.

FunnelCorrelationQuery
object
10 properties 2 required
MaterializationType
RETENTION
object
3 properties
DataTableNode
object
38 properties 1 required
PropertyGroupFilter
object
2 properties 2 required
RevenueAnalyticsTopCustomersQuery
object
8 properties 2 required
HogQLVariable
object
4 properties 2 required
TrendsFilter
object
30 properties
ChartAxis
object
2 properties 1 required
YAxisScaleType
string
HogQueryResponse
object
4 properties 1 required
SessionData
object
4 properties 4 required
PersonPropertyFilter
object
5 properties 2 required
ExperimentQueryResponse
object
16 properties
CompareFilter
object
2 properties
_InsightQuerySchema
The query definition for this insight. The kind field determines the query type: - InsightVizNode — product analytics (trends, funnels, retention, paths, stick…
PersonsArgMaxVersion
string
RetentionType
string
GroupsQuery
object
12 properties 1 required
UserBasic
object
9 properties 4 required
DisplayType
string
BounceRatePageViewMode
string
ExperimentRetentionMetric
object
19 properties 6 required
PatchedInsight
object
Simplified serializer to speed response times when loading large amounts of objects.
36 properties
YAxisPosition
string
IntegrationKind
string
Breakdown
object
5 properties 1 required
StickinessQuery
object
15 properties 1 required
NonIntegratedConversionsTableQuery
object
23 properties 1 required
QueryTiming
object
2 properties 2 required
LifecycleToggle
string
DurationType
string
ExperimentFunnelsQuery
object
10 properties 1 required
MultipleVariantHandling
string
BoxPlotDatum
object
10 properties 8 required
EventOddsRatioSerialized
object
5 properties 5 required
InlineCohortCalculation
string
MaterializedColumnsOptimizationMode
string
CohortPropertyFilter
object
6 properties 1 required
DataTableNodeViewPropsContextType
string
CustomChannelOperator
string
FunnelsQueryResponse
object
7 properties 1 required
LLMTracePerson
object
4 properties 4 required
WebStatsTableQueryResponse
object
14 properties 1 required
LifecycleQueryResponse
object
7 properties 1 required
TraceQuery
object
8 properties 1 required
HogQLMetadataResponse
object
8 properties 3 required
LogPropertyFilter
object
5 properties 3 required
WebStatsTableQuery
object
26 properties 2 required
WebVitalsQuery
object
20 properties 2 required
SessionAttributionGroupBy
string
FunnelPathsFilter
object
3 properties 1 required
SamplingRate
object
2 properties 1 required
CustomChannelRule
object
4 properties 4 required
PersonsJoinMode
string
ExperimentMeanMetric
object
17 properties 1 required
SpanPropertyFilterType
string
TracesQuery
object
16 properties
PrecomputationMode
string
ErrorTrackingIssueStatus
string
LLMTrace
object
20 properties 4 required
RevenueAnalyticsOverviewQueryResponse
object
7 properties 1 required
WebExternalClicksTableQueryResponse
object
13 properties 1 required
RevenueExampleDataWarehouseTablesQueryResponse
object
12 properties 1 required
FunnelPathType
string
Response13
object
8 properties 1 required
QueryStatus
object
16 properties 2 required
InsightActorsQuery
object
13 properties 1 required
Response4
object
11 properties 1 required
Response9
object
12 properties 1 required
ExperimentEventExposureConfig
object
5 properties 2 required
SpanPropertyFilter
object
5 properties 3 required
TraceQueryResponse
object
11 properties 1 required
PropertyMathType
string
SessionAttributionExplorerQueryResponse
object
12 properties 1 required
Response10
object
12 properties 4 required
PropertyGroupFilterValue
object
2 properties 2 required
FirstEvent
object
4 properties 4 required
Response20
object
13 properties 1 required
Response11
object
8 properties 1 required
StartHandling
string
RevenueExampleEventsQuery
object
7 properties
RevenueAnalyticsPropertyFilter
object
5 properties 2 required
PathCleaningFilter
object
3 properties
GroupPropertyFilter
object
7 properties 2 required
ConversionGoalFilter2
object
19 properties 4 required
WebOverviewItem
object
7 properties 2 required
ResultCustomizationByPosition
object
3 properties
FunnelsActorsQuery
object
11 properties 1 required
UrlMatching
AggregationType
string
EventPropertyFilter
object
5 properties 1 required
ErrorTrackingIssueAssignee
object
2 properties 2 required
RevenueAnalyticsGrossRevenueQuery
object
9 properties 3 required
LifecycleQuery
object
15 properties 1 required
ErrorTrackingIssueAssigneeType
string
StickinessActorsQuery
object
11 properties 1 required
TableSettings
object
4 properties
OrderDirection2
string
MarketingAnalyticsOrderByEnum
string
Key10
string
Element
object
9 properties
ExperimentVariantTrendsBaseStats
object
4 properties 4 required
RevenueAnalyticsOverviewItem
object
2 properties 2 required
PathsLink
object
4 properties 4 required
RevenueAnalyticsMetricsQueryResponse
object
8 properties 1 required
IntegrationFilter
object
1 property
CalendarHeatmapMathType
string
ErrorTrackingPendingFingerprintIssueStateUpdate
object
10 properties 6 required
ExperimentFunnelMetric
object
15 properties 1 required
Response8
object
7 properties 1 required
RevenueAnalyticsMRRQueryResponse
object
8 properties 1 required
ClickhouseQueryProgress
object
5 properties 5 required
PaginatedElementList
object
4 properties 2 required
TrendsFormulaNode
object
2 properties 1 required
MarketingAnalyticsItem
object
7 properties 2 required
CorrelationType
string
RevenueCurrencyPropertyConfig
object
2 properties
Scale
string
RetentionQueryResponse
object
7 properties 1 required
RetentionValue
object
3 properties 1 required
CurrencyCode
string
EventsQuery
object
21 properties 1 required
VizSpecificOptions
object
2 properties
ConversionGoalFilter1
object
21 properties 3 required
CustomChannelField
string
BlankEnum
RoleAtOrganizationEnum
string
engineering - Engineering data - Data product - Product Management founder - Founder leadership - Leadership marketing - Marketing sales - Sales / Success othe…
HeatmapSettings
object
12 properties
Response24
object
11 properties 7 required
WebOverviewQuery
object
19 properties 1 required
SessionPropertyFilter
object
5 properties 2 required
ExperimentSignificanceCode
string
Response3
object
16 properties 1 required
ExperimentTrendsQuery
object
11 properties 1 required
PersonsNode
object
12 properties
WebVitalsPathBreakdownQuery
object
22 properties 4 required
TextMatching
ActionsPie
object
2 properties
EndpointsUsageOrderByDirection
string
WebVitalsPathBreakdownResult
object
3 properties 3 required
StepOrderValue
string
EntityType
string
ErrorTrackingIssueAggregations
object
5 properties 4 required
DateRange
object
3 properties
Population
object
4 properties 4 required
ErrorTrackingExternalReference
object
3 properties 3 required
RevenueAnalyticsTopCustomersQueryResponse
object
8 properties 1 required
ExperimentVariantResultBayesian
object
17 properties 4 required
Response19
object
8 properties 1 required
SessionsV2JoinMode
string
IntervalType
string
Style
string
DataWarehousePropertyFilter
object
5 properties 2 required
PaginatedInsightList
object
4 properties 2 required
DashboardTileBasic
object
3 properties 2 required
ExperimentFunnelsQueryResponse
object
10 properties 7 required
FunnelsFilter
object
21 properties
ActorsQueryResponse
object
13 properties 5 required
MultipleBreakdownType
string
ActionConversionGoal
object
1 property 1 required
Response6
object
13 properties 1 required
BreakdownType
string
PropertyOperator
string
FunnelCorrelationResponse
object
12 properties 1 required
MarketingAnalyticsAggregatedQuery
object
22 properties 1 required
Response5
object
14 properties 1 required
ExperimentStatsValidationFailure
string
ResultCustomizationBy
string
RetentionDashboardDisplayType
string
PatchedElement
object
9 properties
CustomEventConversionGoal
object
1 property 1 required
SessionTableVersion
string
ExperimentQuery
object
9 properties 1 required
PersonsOnEventsMode
string
HogQLPropertyFilter
object
4 properties 1 required
ErrorTrackingCorrelatedIssue
object
13 properties 7 required
QueryLogTags
object
3 properties
FunnelLayout
string
SessionsQuery
object
19 properties 1 required
HeatmapGradientStop
object
2 properties 2 required
BreakdownAttributionType
string
ExperimentActorsQuery
object
12 properties 1 required
PathsFilter
object
16 properties
HogQuery
object
6 properties
YAxisSettings
object
4 properties
BreakdownFilter
object
9 properties
RevenueAnalyticsMRRQueryResultItem
object
5 properties 5 required
ResolvedDateRangeResponse
object
2 properties 2 required
Response21
object
11 properties 1 required
CustomChannelCondition
object
4 properties 3 required
DataTableNodeViewPropsContext
object
2 properties 1 required
Response23
object
10 properties 7 required
GradientScaleMode
string
RevenueAnalyticsOverviewQuery
object
7 properties 1 required
ErrorTrackingExternalReferenceIntegration
object
3 properties 3 required
Response14
object
7 properties 1 required
StickinessCriteria
object
2 properties 2 required
RevenueAnalyticsGrossRevenueQueryResponse
object
8 properties 1 required
RetentionQuery
object
13 properties 1 required
LifecycleFilter
object
4 properties
DataColorToken
string
RetentionEntity
object
11 properties
SessionAttributionExplorerQuery
object
9 properties 1 required
NullEnum
HogQLQueryModifiers
object
27 properties
LogEntryPropertyFilter
object
5 properties 2 required
RetentionResult
object
4 properties 3 required
QueryIndexUsage
string
WebGoalsQueryResponse
object
13 properties 1 required
Response2
object
13 properties 6 required
MaterializationMode
string
EventsNode
object
18 properties
TrendsQueryResponse
object
9 properties 1 required
RetentionFilter
object
20 properties
StickinessComputationMode
string
WebAnalyticsItemKind
string
HeatmapSortOrder
string
ConditionalFormattingRule
object
7 properties 6 required
FunnelCorrelationResult
object
2 properties 2 required
EndpointsUsageTableQueryResponse
object
12 properties 1 required
HogQLNotice
object
4 properties 1 required
PathsQueryResponse
object
7 properties 1 required
HogQLFilters
object
3 properties
StickinessOperator
string
EmptyPropertyFilter
object
1 property
FunnelsDataWarehouseNode
object
21 properties 5 required
FunnelConversionWindowTimeUnit
string
ExperimentBreakdownResult
object
3 properties 3 required
ResultCustomizationByValue
object
3 properties
WebVitalsPathBreakdownResultItem
object
2 properties 2 required
EffectivePrivilegeLevelEnum
integer
InsightVizNode
object
16 properties 1 required
BaseMathType
string
ErrorTrackingIssueCohort
object
2 properties 2 required
Response
object
13 properties 4 required
BulkUpdateTagsError
object
2 properties 2 required
WebGoalsQuery
object
20 properties 1 required
BulkUpdateTagsRequest
object
3 properties 3 required
DataWarehouseNode
object
21 properties 5 required
ColorMode
string
WebStatsBreakdown
string
ErrorTrackingQuery
object
26 properties 3 required
ExperimentMetricGoal
string
PathType
string
WebAnalyticsSampling
object
2 properties
RevenueAnalyticsOverviewItemKey
string
WebOverviewQueryResponse
object
11 properties 1 required
ExperimentMetricMathType
string
ErrorTrackingIssue
object
15 properties 4 required
Response12
object
8 properties 1 required
Filters
object
2 properties
AIEventType
string
DataVisualizationNode
object
6 properties 1 required
Response22
object
11 properties 1 required
Settings
object
2 properties
FunnelVizType
string
ChartDisplayType
string
Insight
object
Simplified serializer to speed response times when loading large amounts of objects.
36 properties 26 required
FunnelExclusionActionsNode
object
18 properties 3 required
FunnelCorrelationResultsType
string
WebExternalClicksTableQuery
object
21 properties 1 required
DetailedResultsAggregationType
string
MarketingAnalyticsDrillDownLevel
string
RevenueExampleEventsQueryResponse
object
12 properties 1 required
FilterLogicalOperator
string
RecordingPropertyFilter
object
5 properties 2 required
HogQLQueryResponse
object
16 properties 1 required
BulkUpdateTagsItem
object
2 properties 2 required
ExperimentRatioMetric
object
15 properties 2 required
Response25
object
11 properties 1 required
ErrorTrackingIssueFilter
object
5 properties 2 required
RevenueAnalyticsMRRQuery
object
9 properties 3 required
MeanRetentionCalculation
string
MarketingAnalyticsAggregatedQueryResponse
object
8 properties 1 required
ExperimentDataWarehouseNode
object
19 properties 4 required
EventDefinition
object
3 properties 3 required
GoalLine
object
6 properties 2 required
WebAnalyticsOrderByDirection
string
FunnelExclusionEventsNode
object
20 properties 2 required
ActionEnum
string
add - add remove - remove set - set
EndpointsUsageOrderByField
string
DataWarehousePersonPropertyFilter
object
5 properties 2 required
ChartSettings
object
17 properties
ChartSettingsDisplay
object
5 properties
AggregationAxisFormat
string
ChartSettingsFormatting
object
4 properties
ErrorTrackingIssueCorrelationQuery
object
6 properties 1 required
RetentionEntityKind
string
WebAnalyticsOrderByFields
string
EventsQueryResponse
object
13 properties 4 required
RevenueAnalyticsTopCustomersGroupBy
string
NonIntegratedConversionsTableQueryResponse
object
13 properties 1 required
EventsQueryActionStep
object
10 properties
WebVitalsPathBreakdownQueryResponse
object
7 properties 1 required
FunnelMathType
string
PathsQuery
object
13 properties 1 required
MarketingAnalyticsTableQueryResponse
object
13 properties 1 required
BulkUpdateTagsResponse
object
2 properties 2 required
WorkflowVariablePropertyFilter
object
5 properties 2 required
ConversionGoalFilter3
object
24 properties 8 required
FunnelStepReference
string
EventMetadataPropertyFilter
object
5 properties 2 required
WebVitalsMetric
string
RetentionPeriod
string
StickinessFilter
object
9 properties
CountPerActorMathType
string
ExperimentStatsBaseValidated
object
13 properties 4 required
ErrorTrackingIssueCorrelationQueryResponse
object
11 properties 1 required
FunnelsQuery
object
15 properties 1 required
RevenueAnalyticsMetricsQuery
object
9 properties 3 required
RetentionReference
string
LogPropertyFilterType
string
ExperimentTrendsQueryResponse
object
11 properties 7 required
ErrorTrackingOrderBy
string
LifecycleDataWarehouseNode
object
20 properties 5 required
VolumeBucket
object
2 properties 2 required
PropertyGroupsMode
string
ExperimentVariantFunnelsBaseStats
object
3 properties 3 required
FlagPropertyFilter
object
5 properties 2 required
Response16
object
12 properties 1 required
SimpleIntervalType
string
WebVitalsPercentile
string
ElementPropertyFilter
object
5 properties 2 required
HrefMatching
TrendsQuery
object
17 properties 1 required
FunnelCorrelationActorsQuery
object
10 properties 1 required
SessionsQueryResponse
object
12 properties 4 required
ErrorTrackingQueryResponse
object
11 properties 1 required
Compare
string
TracesQueryResponse
object
11 properties 1 required
LastEvent
object
4 properties 4 required
Response26
object
12 properties 1 required
ActionsNode
object
16 properties 1 required
Response1
object
13 properties 5 required
LLMTraceEvent
object
4 properties 4 required
GroupNode
object
19 properties 2 required
StickinessQueryResponse
object
7 properties 1 required
Position
string
GroupsQueryResponse
object
13 properties 6 required
DataWarehouseEventsModifier
object
4 properties 4 required
RevenueExampleDataWarehouseTablesQuery
object
7 properties
RevenueAnalyticsBreakdown
object
2 properties 1 required
ActorsQuery
object
13 properties
InCohortVia
string
Response18
object
13 properties 1 required
MarketingAnalyticsTableQuery
object
25 properties 1 required
TimeWindowMode
string
FeaturePropertyFilter
object
5 properties 2 required
TaxonomicFilterGroupType
string
ExperimentVariantResultFrequentist
object
17 properties 4 required
Response15
object
8 properties 1 required
EndpointsUsageBreakdown
string
HogQLQuery
object
13 properties 1 required
AggregationPropertyType
string
MathGroupTypeIndex
number
EndpointsUsageTableQuery
object
12 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

posthog-product-analytics-api-openapi.yml Raw ↑

Other APIs PostHog publishes across the network.

PostHog Capture API
PostHog Query API
PostHog Persons API
PostHog Feature Flags API
PostHog Experiments API
PostHog Insights API
PostHog Cohorts API
PostHog Annotations API
PostHog actions API
PostHog activity_log API
PostHog activity_logs API
PostHog advanced_activity_logs API
Where this information came from

This is an independent, third-party profile of PostHog product_analytics API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.