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.
Luna makes two wearables, the Luna Ring and the Luna Band. Both record how people sleep, their heart rate through the day and their skin temperature. The company is led by Amit Khatri, who co-founded the Indian wearables brand Noise. With this integration, a Luna user can share their data with your app in a few taps.
The Luna devices
Luna Ring Gen 2
A titanium smart ring. In the Luna app it tracks sleep stages, heart rate, HRV, blood oxygen, body temperature trends and activity. Luna recommends the Ring as its device for the most precise sleep tracking.
Luna Band
A band worn on the wrist or the upper arm, with an optical heart rate sensor, a skin temperature sensor and haptic vibration. In the Luna app it tracks sleep, activity, heart rate, HRV and recovery.
Both devices pair with the same Luna app, one device at a time, so a user's Luna account holds data from whichever device they wear. Through Terra you receive that account's sleep and heart rate. The other metrics the Luna app shows are not part of the integration yet.
Get the latest Terra Research reports and insights every week as soon as they're published.
Each main sleep and each nap arrives as one Terra sleep record, marked as a nap or not. Each day with heart rate readings arrives as one Terra daily record.
Data
What you get
Sleep timing
Start and end time in the user's local time with the UTC offset, and total time in bed.
Sleep stages
Total time in light, deep and REM sleep and time awake, plus a hypnogram: the timeline of which stage the user was in through the night.
Time asleep
Light, deep and REM sleep added together.
Latencies
How long the user lay awake before falling asleep, and how long they were awake at the end of the night before getting up.
Sleep efficiency
The share of time in bed that was spent asleep.
Sleep score
Luna's own score for the night, attached to the night's main sleep.
Skin temperature
Average skin temperature for each sleep and nap, in degrees Celsius.
Heart rate
Heart rate readings across the day at the interval the device recorded them, with the day's average, minimum and maximum.
Naps carry their timing, time asleep and skin temperature, but no stages. When Luna has not staged a night, the record carries its timing and time in bed, and leaves time asleep out rather than guess it.
What you can build with Luna data
Sleep coaching. The stage timeline shows when in the night each stage happened. A coaching app can see whether a short night lost deep sleep early on or REM sleep towards the morning, and give advice that matches, such as a more regular bedtime or a later alarm.
Recovery and readiness scores. Skin temperature comes with each night Luna has a reading for. Tracked over weeks, a rise above the user's usual range is a common input to a recovery or readiness score, alongside sleep efficiency and the day's lowest heart rate.
Daily heart rate views. Heart rate readings across the day let you chart when a user's heart rate rose and settled, and show the day next to the night that followed it.
Users who will not sleep in a watch. A ring is small enough to keep on overnight, so Luna users can bring their nights into your product. You read their records the same way as records from any other device, so a sleep feature you have already built works for them without changes.
How to connect Luna to your app
Your user picks Luna in the Terra widget or your own interface. They approve sharing their data with Terra on a page on Luna's own website, so your app never handles their Luna login.
Luna data arrives already standardised into Terra's sleep and daily models. Field names, units and timestamps match the data you already receive from other sources, so code that reads a Terra sleep or daily record today will read a Luna one without changes.
Common questions about Luna
Does the Luna integration include HRV?
Not yet. Luna's API reports a value it calls HRV without saying which measure it is, such as RMSSD or SDNN. Those two are not interchangeable, so Terra leaves the value out until Luna confirms which one it sends.
How far back can I request Luna data?
Luna shares the user's current day and the 30 days before it. A request for older dates returns nothing for those days.
Does Luna include workouts or steps?
Not at the moment. Luna's API for partners currently covers sleep and heart rate, so those are the two data types this integration delivers.
How does a user disconnect Luna?
From the Luna app, under Settings, Data Sharing, Terra, Disconnect. Once they do, Terra stops receiving their Luna data.
Getting started with Luna
Luna is listed with the other sources in your dashboard. Once you enable it, your users can connect their Luna accounts through your existing connection flow. Teams new to Terra can start with the getting started guide, which covers creating an account through to connecting your first user.