---
title: "Ingest Web Vital"
method: POST
path: "/ingest/web-vitals"
tags: ["Ingest"]
---

# Ingest Web Vital

`POST /ingest/web-vitals`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/ingest/web-vitals`
- Auth: none declared

Ingests one compact opt-in Web Vital sample from hk-vitals.js. The server resolves the site from Origin, derives the rating from standard thresholds, and strips browser-provided query strings or hashes from the path.

## Request body

- WebVitalIngestPayload
  - `mid` string: Optional web-vitals metric instance ID used for future dedupe and bfcache analysis.
  - `n` 'LCP' | 'INP' | 'CLS' | 'FCP' | 'TTFB', required: Metric name.
  - `nt` string: Navigation type.
  - `p` string, required: Browser path. Query strings and hashes are stripped server-side.
  - `pid` string, uuid, required
  - `sid` string, uuid, required
  - `tsrc` string
  - `tv` string
  - `ua` string: Optional browser user agent used transiently for traffic exclusions. The request header is the compatibility fallback.
  - `v` number, required: Metric value. LCP, INP, FCP, and TTFB use milliseconds. CLS is unitless.

## Response `202`

Accepted

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api.md) · [All operations](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/revisions/bb2df36ab2a4?raw)
