# Ingest CDA R2

URL: https://docs.clinia.com/api/rest/post-patients-patientId-ingestions-cda-r2

> Submits CDA R2 documents as XML. Post one document as the request body with `Content-Type: application/cda+xml`, or several as `multipart/form-data` with one `documents` part per document.

The response is a receipt: ingestion continues after it is returned, so poll the ingestion to follow it. `intake` comes back index-aligned with the documents you sent, so it stays clear which document held what — and if any document cannot be parsed the whole request is rejected and nothing is stored.

## `POST /v1/patients/{patientId}/ingestions/cda/r2`

Parameters, request body and responses: operation `ingest-cda-r2` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).