---
title: "Record web vital metrics"
method: POST
path: "/observability/vitals"
tags: ["observability"]
---

# Record web vital metrics

`POST /observability/vitals`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/observability/vitals`
- Auth: none required

Accepts Core Web Vitals measurements (LCP, FID, CLS, FCP, TTFB) from frontend apps.

## Request body

- object
  - `appSlug` string, required
  - `name` string, required: Metric name (LCP, FID, CLS, FCP, TTFB)
  - `value` number, required
  - `rating` 'good' | 'needs-improvement' | 'poor'
  - `id` string

## Response `200`

Vital recorded

## Other responses

- `400`: Invalid metric data

## Changes

- **2026-03-30** `fddb2e5b2ee0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/observability/vitals/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
