Clinia
API ReferenceREST API

Batch ingest

POST
/v1/patients/{patientId}/ingest

Submits FHIR bundles, CDA documents, and unstructured document registrations in a single request. Each source type is processed independently; the graph is rebuilt once after all sources are loaded.

Authorization

Bearer write
AuthorizationBearer <token>

Each operation lists the OAuth scope (read or write) it requires.

In: header

Scope: write

Path Parameters

patientId*string

ID of the patient

Match^[A-Za-z0-9._-]{1,128}$

Query Parameters

wait?|

Block up to this many ms for the execution to reach terminal status. 0 or omitted = return immediately with current status.

Range0 <= value <= 30000

Request Body

application/json

Batch payload containing any combination of FHIR bundles, CDA documents, and document registrations. At least one of fhir, cda, or documents must be non-empty.

TypeScript Definitions

Use the request body type in TypeScript.

Mixed batch of FHIR bundles, CDA documents, and unstructured document registrations to process in a single ingest request.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/patients/string/ingest" \  -H "Content-Type: application/json" \  -d '{}'
{  "executionId": "string",  "status": "pending",  "sourceLabel": "fhir",  "deltas": {    "entitiesAdded": 0,    "eventsAdded": 0,    "relsAdded": 0  },  "warningsCount": 0,  "error": {    "code": "string",    "message": "string"  },  "skippedReason": "string",  "patient": {    "id": "string",    "name": "string"  },  "links": {    "self": "string",    "patient": "string"  }}