Define the data for your endpoint

  1. Choose your data source

    Required

    Endpoints can be created from existing insights or SQL queries in PostHog. Choose the approach that best fits your use case.

    Not sure where to start? Try building an insight with PostHog AI.

    Best for: Exposing data from existing insights you've already built.

    Create an insight in PostHog that shows the data you want to expose. This could be:

    • A trend showing daily active users
    • A funnel tracking user conversion
    • A retention analysis
    • Any other insight type
    Create an insight in PostHog
  2. Verify results of your query

    Recommended

    Before creating an endpoint, make sure your insight or SQL query returns the expected results:

    1. For insights: Check the visualization shows the data you expect
    2. For SQL queries: Click Run and review the results table

    This ensures your endpoint will return meaningful data when executed.

  3. Next step

    Once you have your data defined, create an endpoint from it.

    Create an endpoint

Community questions

Was this page useful?

Questions about this page? or post a community question.