---
title: "Ingest"
method: POST
path: "/api/v1/integrations/health-connect/ingest"
tags: ["integrations"]
---

# Ingest

`POST /api/v1/integrations/health-connect/ingest`

## 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/integrations/health-connect/ingest`
- Auth: HTTP bearer

Ingest a batch of Health Connect records for the current user.

Idempotent: re-sending the same window overwrites rather than duplicates. Unknown
record types are skipped and reported in the response, not rejected, so a newer app
can send types an older server hasn't learned yet without failing the whole batch.

## Request body

- IngestRequest
  - `records` HealthConnectRecordIn[]
    - `type` string, required
    - `value` number, required
    - `start` string, required
    - `end` string, nullable
    - `record_id` string, nullable

## Response `200`

Successful Response

- object

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