---
title: "One ping per page view from the interface; it feeds the index's own visit counter."
method: POST
path: "/api/visit"
---

# One ping per page view from the interface; it feeds the index's own visit counter.

`POST /api/visit`

## Request

- Base URL: `https://okfindex.com`
- URL: `https://okfindex.com/api/visit`
- Auth: none declared

Counted under the index's metric (`okf_visit`), apart from the Agentalog counter that shares the database. Test traffic is left out: `X-MM-Smoke`, User-Agent `mm-smoke` or `smoke: true`.
Returns: { counted, ok }

## Request body

- object
  - `smoke` boolean: `true` flags a test call, which is acknowledged but not counted.
  - `p` string: Path of the page that was opened (informative).

## Response `200`

{ counted, ok }

- object
  - `counted` boolean, required: `false` for test traffic, `true` when the day's counter moved.
  - `ok` boolean, required: Always `true`; the route never refuses a ping.

---

[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)
