Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. Nothing beyond essential cookies runs until you choose. You can change your mind any time in our Cookie Policy.

Cyber MondaySave up to $499 and get your second month for free
  • Unified API
  • Mobile SDK
  • Connection Widget
  • Streaming
  • Lab Reports API
  • Graph API
  • Health Scores
  • Health Rewards
  • Workouts & Routes
  • Predictions
  • Lab Testing
  • DNA Testing
  • AI Interface
  • Enterprise
  • Insurance
  • Integrations
  • Research
  • Podcast
  • Blog
  • Reports
  • Events
  • Documentation
  • Community
  • Example apps
  • Wearable Data
  • About
  • Customers
  • Partners
  • Startup Accelerator
  • Careers
  • Community support
  • Pricing
Terra
PricingHLTH '26
Become an integrationGet started
next ventures
pioneer fund
samsung next
y combinator
general catalyst

The world's best health apps run on Terra data

Get started
ProductsIntegrationsAI InterfaceAuthenticationMobile DevelopmentDocumentationGraphAPIPredictionsDNA Testing
DocumentationAPISDKQuickstartExample Apps
CommunityBlogResearchCommunityPodcastAuthorsGithub
CompanyAboutCareersCustomersStartup AcceleratorBecome an IntegrationGDPRPrivacy PolicyYour Privacy ChoicesTerms of Purchase
© Terra API. 2026 — All rights reserved.
All articles

In this article:

  • 01Which clinical records your app receives from Apple Health
  • 02Every clinical record arrives in FHIR
  • 03What you can build with your users' clinical records
  • 04How clinical records reach your backend: a webhook event and a REST endpoint
  • 05How consent and privacy work for clinical records
  • 06How to set up clinical records from the Terra dashboard
All articles

Product Updates

Receive your users' clinical records from Apple through Terra API

Your users can now share their lab results, conditions, medications and other Apple Health Records with your app, delivered as FHIR through Terra API.


Vanessa Neeff
Vanessa Neeff

30 November 2026

Terra cover illustration of a medical records folder reading Apple Health Records in Terra API

TL;DR: Clinical records are now available in Terra API. With one permission on their iPhone, your users can send their lab results, conditions, medications and the rest of their Apple Health Records to your app. Each record reaches your backend exactly as their clinic or hospital wrote it, in FHIR, through the same Terra integration you already use for their wearable and health app data. You can set it all up from the new Clinical records page in the dashboard, and watch your own records arrive before your app ships.

A person with an iPhone can link their clinic or hospital in the Apple Health app, and from then on their medical records download to the phone whenever the health system has something new. With Terra API, that person can now share those records with your app as well, choosing which kinds of record to share in Apple's own Health Records sheet. Your backend then receives their lab results, conditions, medications and six other kinds of record, starting with the whole history the phone holds the first time they share.

Teams already sending Apple Health data through Terra have asked us whether the hospital records people see in the Health app come along too. HealthKit, Apple's framework for health data on iPhone, keeps those records behind a permission of their own, and from today an app built on Terra can ask the person for it.

Which clinical records your app receives from Apple Health

Nine kinds of clinical record come through: lab results, vital signs, conditions, medications, allergies, immunizations, procedures, clinical notes and insurance coverage. When Apple adds a new kind of record in a future version of iOS, Terra stores and delivers that as well, under the name Apple uses for it, and you can filter for it on the day it appears.

A sample patient's clinical records in the Terra dashboard: a blood count panel, body mass index, a condition, a medication, an allergy and an immunization

The first time a person shares, the Terra SDK sends every clinical record on their phone. Apple Health dates each record by when the phone downloaded it from the hospital's patient portal (the website where patients see their own records), which can be years after the visit itself, so the SDK applies no date cut-off at all. The lab results and prescriptions a person has collected over the years are in your app on the day they first share.

Health Records is supported at more than 9,000 healthcare institutions, see the figures Apple published in June 2025, and your users can share records from the clinics and hospitals across the US that offer it.

Get the latest Terra Research reports and insights every week as soon as they're published.

By continuing, I agree to the Privacy Policy and Terms of Service.

Every clinical record arrives in FHIR

FHIR, which stands for Fast Healthcare Interoperability Resources, is the standard format that health systems use to exchange medical records, and it is the format the hospital served to the phone in the first place. Clinical records are the one data type that Terra API passes through without normalising it into Terra's own data models. The resource reaches you as the health system wrote it, in FHIR R4 or the older DSTU2 release, with nothing removed but extra whitespace. Decimal places, units, reference ranges, the lab's codes (LOINC, the standard naming system for lab tests) and the formatting of clinical notes are all left alone.

A lab result below the detection limit, written "<2.0", keeps its "<", so nobody further down the line reads it as a measured 2.0. Each record also carries a SHA-256 checksum and its size in bytes.

What you can build with your users' clinical records

Because the records come through the same Terra integration as your users' wearable, health app and lab data, they land in the same backend and belong to the same user, which opens up a few things that used to need a separate project of their own:

  • Coaching that takes a person's conditions and medications into account from the start, so that the advice for someone managing type 2 diabetes on metformin begins from where they actually are.
  • Lab results such as HbA1c (a blood test that reflects average blood sugar over roughly the last three months) shown next to the person's sleep, activity and glucose data on one timeline.
  • Onboarding that skips the intake form, because a person's diagnoses, medications and allergies arrive already filled in.
  • Care programmes and clinical studies that start from a person's real medical history, shared with their consent.

How clinical records reach your backend: a webhook event and a REST endpoint

Records reach you in two ways, with the same record shape in both, and one parser covers them. Terra sends a unified_api.clinical_record.updated event to your destination whenever new or changed records come in. You can also read a user's records at any time from GET /v2/clinicalRecord, which lets you filter by clinical_type (for example lab_result) or by FHIR resource type, ask only for records received since a given time, and page through the results with a cursor, up to 100 records a page.

Each real-world record keeps one stable record_id, even when the phone downloads it again or the hospital reissues it, and a newer version replaces the one you already hold. If a phone uploads a record that hasn't changed, Terra sends nothing, so every event your server gets is a record that is new or has actually changed.

How consent and privacy work for clinical records

The person stays in charge of what is shared the whole way through. Your app asks with a single call, and Apple shows its own Health Records sheet, which is separate from the one for activity and sleep, where the person turns on each kind of record they are happy to share. The records download from the hospital directly to the phone over an encrypted connection, as Apple describes in its platform security guide.

From the phone, records reach Terra only through the signed upload of the Terra SDK, and each developer's records belong to that developer's own connection with the person, so two different apps that the same person uses never see each other's medical records. There is no local copy for the app to read on the device either: the records go to Terra and on to your backend, where you decide what to store and show.

How to set up clinical records from the Terra dashboard

The new Clinical records page in the Terra dashboard walks you through the setup one step at a time, and ticks each step off as you finish it:

  1. Turn clinical records on for your environment. The page shows you a sample patient's records first, which is a quick way to see what the payloads look like.
  2. Enable Apple Health as a source, which adds it to the connect screen your users see.
  3. Use the Terra SDK 2.3.0 or later, which is available for iOS, React Native and Flutter.
  4. In Xcode, tick Clinical Health Records under the HealthKit capability, add the two usage descriptions Apple shows the person to your Info.plist, and call permissions.requestClinicalRecords() from a button in your app.
The Clinical records page in the Terra dashboard, with five setup steps ticked off one at a time

No iOS app yet? Pair Terra Grip, our own iPhone app, from the same page, share your own records from it, and they show up in the dashboard shortly afterwards.

Previous

Continue reading

  • Trailforks Integration: Terra Now Captures Off-Road Trail, MTB and Ski Activity

    Trailforks mountain bike rides arrive through Terra API with GPS track, elevation, climb and descent, heart rate and location.

    27 November 2026

  • Terra's Planned Workouts API: Deliver a coach's workout to any watch with AI

    Build a session once with Terra's Planned Workouts API and it appears on any watch, from COROS to Apple, tuned to each athlete's own training trajectory.

    26 October 2026

  • Terra API agent skills for building health products

    Give Claude, Cursor or Copilot the Terra API skills so your agent builds the integration from the current docs and gets the details right.

    15 October 2026