Skip to content

Commit b947533

Browse files
committed
start here fixed
1 parent 6daa9bf commit b947533

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed

contents/docs/endpoints/start-here.mdx

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { CalloutBox } from 'components/Docs/CalloutBox'
1717
icon="IconGraph"
1818
>
1919

20-
Endpoints are created from existing Insights or SQL queries in PostHog. Start by creating the query that defines the data you want to expose.
20+
Endpoints are created from existing Insights or SQL queries in PostHog. Start by creating the query that defines the data you want to expose. You can do this directly from the endpoints page by clicking new or directly from the query / insight.
2121

2222
### Option 1: Create an Insight
2323

@@ -28,8 +28,8 @@ Create an Insight in PostHog that shows the data you want to expose. This could
2828
- Any other Insight type
2929

3030
<ProductScreenshot
31-
imageLight="https://res.cloudinary.com/dmukukwp6/image/upload/v1716976005/posthog.com/contents/Screenshot_2024-05-29_at_10.46.15_AM.png"
32-
imageDark="https://res.cloudinary.com/dmukukwp6/image/upload/v1716976005/posthog.com/contents/Screenshot_2024-05-29_at_10.46.03_AM.png"
31+
imageLight="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/abe_insight_funnel_example_r_eb45dee714.png"
32+
imageDark="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/abe_insight_funnel_example_r_eb45dee714.png"
3333
alt="Create an Insight in PostHog"
3434
classes="rounded"
3535
/>
@@ -39,8 +39,8 @@ Create an Insight in PostHog that shows the data you want to expose. This could
3939
Alternatively, you can create a SQL query in the [SQL editor](https://us.posthog.com/sql) that returns the data you need.
4040

4141
<ProductScreenshot
42-
imageLight="https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/Clean_Shot_2025_08_26_at_11_34_23_2x_a36e4b0bea.png"
43-
imageDark="https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/Clean_Shot_2025_08_26_at_11_34_05_2x_50d26bf304.png"
42+
imageLight="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/abe_sql_example_ae774fd7c4.png"
43+
imageDark="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/abe_sql_example_ae774fd7c4.png"
4444
alt="Write a SQL query"
4545
classes="rounded"
4646
/>
@@ -60,9 +60,22 @@ Alternatively, you can create a SQL query in the [SQL editor](https://us.posthog
6060
Once you have your Insight or SQL query, create an endpoint from it. This will give you a stable API endpoint you can call to retrieve the data.
6161

6262
1. Open your Insight or SQL query
63-
2. Click the **Create endpoint** button (or similar action in the UI)
64-
3. Give your endpoint a name (e.g., `daily_active_users` or `account_users_activity`)
65-
4. Save the endpoint
63+
2. If you created an insight, click on the three dots button and navigage to the `create endpoint` option
64+
<ProductScreenshot
65+
imageLight="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/endpoint_from_insight_b9567d7ef7.png"
66+
imageDark="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/endpoint_from_insight_b9567d7ef7.png"
67+
alt="Write a SQL query"
68+
classes="rounded"
69+
/>
70+
3. If you created a SQL query, you can click on the endpoint tab:
71+
<ProductScreenshot
72+
imageLight="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/endpoint_from_sql_6489b78d7c.png"
73+
imageDark="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/endpoint_from_sql_6489b78d7c.png"
74+
alt="Write a SQL query"
75+
classes="rounded"
76+
/>
77+
4. Give your endpoint a name (e.g., `daily_active_users` or `account_users_activity`)
78+
5. Save the endpoint
6679

6780
<CalloutBox icon="IconInfo" type="fyi" title="Endpoint names">
6881

src/pages/docs/endpoints/index.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import ResourceItem from 'components/Docs/ResourceItem'
44
import Intro from 'components/Docs/Intro'
55
import ReaderView from 'components/ReaderView'
66
import Link from 'components/Link'
7+
import { ProductScreenshot } from 'components/ProductScreenshot'
8+
import { Caption } from 'components/Caption'
79
import { CalloutBox } from 'components/Docs/CalloutBox'
810
import Beta from '../../../../contents/docs/endpoints/_snippets/beta.mdx'
911

@@ -33,6 +35,19 @@ export const Content = () => {
3335
Endpoints offers a number of advantages over our query api, such as materialization (giving you
3436
better performance) and higher rate limits.
3537
</p>
38+
<div className="flex justify-center mb-8">
39+
<div className="text-center">
40+
{' '}
41+
<ProductScreenshot
42+
imageLight="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/sql_query_from_endpoints_606a61f4c6.png"
43+
imageDark="https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/sql_query_from_endpoints_606a61f4c6.png"
44+
alt="Example workflow"
45+
padding={false}
46+
classes="rounded @md:max-w-2xl"
47+
/>
48+
<Caption>Create an Endpoint</Caption>
49+
</div>
50+
</div>
3651
</div>
3752
</section>
3853

0 commit comments

Comments
 (0)