---
title: "The interface reports the steps of a visit (conversion funnel). Agents must not call this route."
method: POST
path: "/api/funil"
---

# The interface reports the steps of a visit (conversion funnel). Agents must not call this route.

`POST /api/funil`

## Request

- Base URL: `https://okfindex.com`
- URL: `https://okfindex.com/api/funil`
- Auth: none declared. Required headers: `Content-Type`

A same-origin batch sent by the page itself: page views, engagement, offer in view, buy click, payment window, payment sent or accepted. It keeps the browser's random id, the path without query, the referring host and the utm tags; never IP, e-mail or account. It writes no database row: one line per batch in the day's journal, with a cap. Declared robots and smoke tests are left out.
Returns: 202 with no body when stored; 204 when ignored. Always no-store.

## Headers

- `Origin` string
- `Content-Type` string, required

## Request body

- object
  - `v` number, required: Batch version: `1`.
  - `vid` string, required: This browser's random id (UUID v4).
  - `sid` string, required: Session id (30 idle minutes end it).
  - `sn` number, required: This browser's session number.
  - `pv` string, required: Page view id.
  - `e` object[], required: Up to 40 events `{ t, n, p? }` from the funnel vocabulary.

## Response `202`

202 with no body when stored; 204 when ignored. Always no-store.

---

[API](https://skmtc.dev/okfindex/apis/okf-index.md) · [All operations](https://skmtc.dev/okfindex/apis/okf-index/llms.txt) · [OpenAPI document](https://skmtc.dev/okfindex/apis/okf-index/revisions/4b13ca3c739f?raw)
