The funnel endpoint calculates how many unique browsing sessions reached each stage of the purchase funnel within a given date window. EachDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ALEJ4NDRO2025/urban-store/llms.txt
Use this file to discover all available pages before exploring further.
count is the number of distinct session_id values that fired at least one event of that type — providing a true drop-off view rather than a raw event volume. You can narrow the analysis by date range and filter to a single traffic source to compare acquisition channels.
Endpoint
Authentication
Bearer token required withis_admin: true in the JWT payload. Returns 403 if the user is not an admin.
Query Parameters
Start of the analysis window in
YYYY-MM-DD format (e.g. 2024-04-01). Defaults to 30 days ago from the time of the request. Returns 400 if the date string cannot be parsed.End of the analysis window in
YYYY-MM-DD format (e.g. 2024-04-30). Defaults to now. Returns 400 if the date string cannot be parsed.Filter to sessions that originated from a specific traffic source (e.g.
"google", "direct", "instagram"). When omitted, all sources are included. The filter is applied at the individual event level — a session is included in a step only if it fired that event with the matching source value.Funnel Steps
The funnel always contains these five steps in this order:| Step | Event Type | Description |
|---|---|---|
| 1 | page_view | User visited the store |
| 2 | product_view | User viewed a product detail page |
| 3 | add_to_cart | User added an item to their cart |
| 4 | begin_checkout | User initiated checkout |
| 5 | purchase | User completed a purchase |
count is the number of unique session IDs that fired at least one event of that type within the requested window. Sessions with session_id: null are excluded.
Response
Ordered array of funnel step objects.
ISO 8601 timestamp of the start of the analysis window.
ISO 8601 timestamp of the end of the analysis window.