Health
Ingest a batch of health-platform samples for the current user (Apple HealthKit / Google Health Connect). Stores in health_samples, upserts sync anchors and device-connection rows, invalidates the capabilities cache. Up to 500 samples per request — clients paginate larger backfills. Premium-only.
post/api/health/sync
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/health/sync
- AuthHTTP bearer
Request body
Example request
{
"preferred_sources": {
"steps": "com.apple.health.9B9B995F-8827-4CC1-BDF5-4D8E9BCE948A",
"heart_rate": "com.apple.health.9B9B995F-8827-4CC1-BDF5-4D8E9BCE948A",
"weight": "com.yolanda.fitindex"
}
}Changes
No recorded changes to this operation across all 34 revisions of this API.