---
title: "Analysis Build"
method: POST
path: "/api/v1/analysis/build"
tags: ["analysis"]
---

# Analysis Build

`POST /api/v1/analysis/build`

## 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/analysis/build`
- Auth: HTTP bearer

Consolidated analysis: one raw fetch → series + summaries + correlations.

The mobile analysis page calls this instead of the three single-purpose
endpoints, so a Build fetches raw measurements once (and only the uncovered
gaps, via the Layer 1 cache) rather than three times.

Returns the same payloads the legacy endpoints do for the same request,
including their per-endpoint ``resample`` defaults: series/summary default to
``"None"`` and correlations to ``"D"`` when the client omits ``resample``
(when ``resample`` is provided, all three use it). ``correlations`` is
``None`` for fewer than two metrics, so the client can drive its empty state.

To bound payload size, the series + summary resample is downsampled to a
coarser rule when the requested one would exceed :data:`SERIES_POINT_BUDGET`
points across all traces; when that happens a ``notice`` describes the change
so the client can surface it. ``notice`` is ``None`` otherwise.

## Request body

- object

## Response `200`

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)
