Documentation

The app reads the Apple Health samples you choose on your iPhone and sends them, as HTTP requests, to an endpoint you run. There is no server in this product: your endpoint is the only place the data goes. These pages are what you need to write that endpoint, run it, and know what to expect from it.

If you read nothing else

  1. Deduplicate on uuid. Upsert on it — never on id, which repeats by design. See Delivery semantics.
  2. Ignore keys and columns you do not recognise. New ones may appear inside version 1; none will be removed or renamed.
  3. Answer with any 2xx. The response body is never read, and a redirect is never followed.
  4. A batch is at most 1000 samples and stays under 1 MB, but one export can be many batches.

The pages

These pages restate version 1 of the app’s published contract (schemaVersion 1). The field names on them are checked against that contract, in both directions, before the site is built for release.