paths_v2

Convert a journey segment to a funnel

Converts a displayed journeys segment into the funnel query that reproduces its unique-actor count exactly. In open mode only a single edge converts (a two-step funnel with the inactivity gap as conversion window); in anchored mode any anchor-rooted chain converts (window W). The funnel is returned as JSON and is not executed or persisted here.

post/api/projects/{project_id}/paths_v2/segment_to_funnel/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/paths_v2/segment_to_funnel/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

queryunknown required

Response

The funnel that reproduces the segment's displayed count exactly.

funnels_queryunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.