Choose a wearable source
Registers the source (e.g. `apple_health`, `garmin`) the patient has chosen as their connected device. Marks it `is_primary`, unsetting any previously-primary source, and creates a `pending` sync record if this source has never been seen before — connecting doesn't require any data to have synced yet.
Authorization
HTTPBearer In: header
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/wearables/connect" \ -H "Content-Type: application/json" \ -d '{ "source": "apple_health" }'null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Ingest multiple wearable data points POST
Batch version of /wearables/ingest for syncing many readings from one source at once. Points that carry a `source_record_id` already stored for this user and source are skipped, so on-device syncs (HealthKit, Health Connect) can safely resend overlapping windows.
Ingest a wearable data point POST
Records a single metric reading (e.g. heart rate, steps) from a wearable source like Apple Health or Garmin.