Avycenna

Import an ECG from CSV

Body is the CSV text (`Content-Type: text/csv`): `key,value` header lines (`Recorded Date`, `Sample Rate`, optional `Unit` uV|mV, `Classification`, `Lead`, `Device`) followed by one sample per line. Reads Apple Health export ECG files (`electrocardiograms/ecg_*.csv`) as-is; name and date-of-birth lines are discarded.

POST
/api/v1/cardiac-events/ecg/csv

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

source?Source
Default"ecg_device"
record_id?|null

Header Parameters

x-api-key?string|null

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/cardiac-events/ecg/csv"
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}