---
title: "Create Measurement"
method: POST
path: "/api/v1/measurements"
tags: ["measurements"]
---

# Create Measurement

`POST /api/v1/measurements`

## Request

- Base URL: `https://api.cohearence.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cohearence.app/api/v1/measurements`
- Auth: HTTP bearer

Create a measurement for a metric owned by the current user.

## Request body

- MeasurementCreate
  - `value` string, required
  - `timestamp` string, date-time, required
  - `end_timestamp` string, date-time, nullable
  - `notes` string, nullable
  - `extra_data` object, nullable
  - `metric_id` integer, required

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/cohearence/apis/health-agent-api.md) · [All operations](https://skmtc.dev/cohearence/apis/health-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cohearence/apis/health-agent-api/revisions/c7aee7d6ecf0?raw)
