Legal
Privacy Policy
Effective date: October 29, 2026
Overview
This Privacy Policy explains how Sleep History App ("Sleep History," "we," "our," or "us") collects, uses, stores, and shares information when you use the Sleep History iPhone app, the website at sleephistory.app, and related services.
1. Data We Collect
We collect the following categories of information in connection with providing the app:
-
Account information. Sleep History uses Supabase Auth for accounts. When you first
open the app, and again after you sign out or delete your account, it creates an anonymous guest
account: a random account identifier with no name or email address attached. If the app offers
"Continue without an account," creating an account is optional, and choosing that option saves your
onboarding answers and progress to the guest account. Older app versions ask you to sign in or
create an account during onboarding. If you create an account or
sign in, we also store the details of the sign-in method you choose:
- Sign in with Apple: Apple provides a unique Apple user identifier and the email address you choose to share, which can be an Apple private relay address if you use Hide My Email. The Apple sign-in sheet may offer to share your name, but Sleep History does not store your name from Apple.
- Email: your email address and the password you choose, which Supabase Auth uses to sign you in.
- Listening history and progress. We store data such as episode progress, completion state, favorites, listening streaks, total listening time, and related in-app activity in our Supabase database so your experience can persist across sessions and, when you are signed in, across devices. This includes a record of listening sessions (which episode you played, when, and for how long).
- Onboarding and referral information. We store the display name you choose, age range, gender selection (you can choose "Prefer not to say" for gender), sleep-quiz answers (sleep habits, sleep struggles, goals, and wind-down preference), assigned sleep identity and its quiz scores, referral code, referral relationship, and reward status in Supabase to personalize the app and operate the referral program. When a referral trial converts to a paid subscription, or a referral reward is redeemed, we record App Store transaction details we receive through RevenueCat (such as transaction identifiers, product, and purchase date) so rewards can be verified. Sleep History does not access your contacts to create or send referrals.
- Pet Portraits. Pet Portraits is optional and is available only with a signed-in account (not a guest account). If you use it, we collect the pet photo you choose from your photo library, the historical period you pick, the pet name you optionally enter, and your avatar choices (which portrait is your avatar and how it is cropped). We also keep a record of each portrait request (its status and timestamps) and a count of successful portraits, which we use to apply portrait allowances. Please choose photos that show only your pet, with no people in them. See "Pet Portraits and AI image generation" below for how photos are processed.
- Apple Health sleep data. If you choose to connect Apple Health, Sleep History requests read-only access to sleep samples to create Night Chronicle. Raw Apple Health samples are processed in memory on your device and are not uploaded to our servers or analytics providers. The app stores only a derived Night Chronicle snapshot and up to 28 derived nightly summaries on your device. Sleep History does not write data to Apple Health.
- Bedtime reminder settings. If you enable reminders, your selected schedule and last-played episode route are stored on your device so iOS can deliver and open the reminder. Reminder content does not include your sleep score, health data, email address, or listening history. Reminders are scheduled locally on your device; Sleep History does not collect a push notification token.
- Analytics events. We use PostHog to collect a limited set of product analytics events: episode detail views and episode plays (including the episode's ID and title and whether it is free), paywall views, subscription starts (plan, product, price, and currency), sleep-timer selections, playback-speed changes, and notices that an episode stream or download was temporarily busy (the episode's ID, whether it was a stream or a download, and the suggested wait before retrying).
- Purchase and subscription data. We use RevenueCat and Apple to manage subscriptions, purchase status, entitlements, restore events, plan information, referral-trial eligibility, paid referral conversions, and redeemed referral rewards. Your subscription is linked to your Sleep History account identifier in RevenueCat.
- Device and network information. When the app or website connects to our service providers (Supabase, PostHog, RevenueCat, and Cloudflare), they receive your IP address and basic technical details such as device type and app version. Supabase Auth also records sign-in details, such as sign-in times, IP address, and app or browser information, to keep accounts secure.
- Support messages. If you email us, for example through Send Feedback in the app, we receive your email address, your message, and anything you include, such as a portrait ID, and use them to respond.
2. How We Use Data
We use this information to authenticate users, save progress, personalize the in-app experience, measure engagement, improve app performance and features, calculate a private on-device Night Chronicle, schedule reminders you request, create the Pet Portraits you ask for, operate referrals, manage subscriptions, restore purchases, respond to support requests, detect misuse, and keep Sleep History secure and reliable.
3. How Data Is Stored and Processed
Supabase. We use Supabase for authentication and for storing core user data, including account records, onboarding profile data, listening progress, favorites, referral relationships and rewards, usage statistics, and Pet Portraits data. Apple Health sleep samples and derived Night Chronicle summaries are not stored in Supabase. Supabase information is hosted on Supabase-managed cloud infrastructure and may be processed by Supabase and its subprocessors. We keep this data while your account exists. When you delete your account in the app, your account record and the associated data described above are deleted from our Supabase database (see section 6). A guest account can only be reached from the app on the device where it was created. If you delete the app, or sign in to a different existing account, without first deleting a guest account in Settings, that guest account and its data stay in our database, and you will no longer be able to reach it from the app. Because a guest account has no name or email address, we usually cannot identify it from an email request, so if you no longer want a guest account, delete it in Settings first. (The app then starts a new guest account, which holds no onboarding answers or listening history.)
On-device storage and Apple Health. Sleep History reads Apple Health sleep data only after you grant permission. Raw samples remain in memory during processing. Derived Night Chronicle data, reminder settings, downloads, and other local preferences remain on your device. You can revoke Sleep access in Apple Health settings and manage or disable reminders in the app or iOS Settings. Downloaded episodes are removed from your device when you delete your account in the app. Night Chronicle data and reminder settings are stored only on your device. Older app versions may retain Night Chronicle summaries and reminder settings on the device after sign-out or account deletion; in those versions, anyone who then uses Sleep History on that device, with any account, may be able to see them, and a reminder may open the episode last played on that device. Signing out or deleting your account does not turn off bedtime reminders: they keep arriving on that device until you turn them off in the app or turn off notifications for Sleep History in iOS Settings. To remove Night Chronicle data and reminder settings from your device, delete the app.
Pet Portraits and AI image generation. Portraits are made with AI. When you tap Generate, the pet photo you choose is uploaded to a private storage folder for your account on our servers. If the app first explains how your photo is used and asks you to agree, nothing is uploaded unless you tap "Agree and continue"; older app versions do not ask for this agreement. Our server then sends the photo, together with a fixed text description of the historical period you chose, to OpenRouter (openrouter.ai), which passes it to a third-party AI image-generation model to create your portrait. At the time of this policy, the model we request is OpenRouter's meta/muse-image (Muse), and our requests ask OpenRouter not to fall back to other providers. Your pet's name, your email address, and your account details are not included in the request. Finished portraits are stored privately with your account and shown in the app through temporary links. We delete your original photo from our servers after it is used to create your portrait; if that deletion does not succeed right away, it is retried the next time you use Pet Portraits, and any remaining photos are removed when you delete your account. Pet photos, portraits, and pet names are not sent to our analytics provider. You can delete any portrait from Previous portraits on the Pet Portraits screen; this removes the portrait image from our servers (if that removal does not succeed right away, it is retried the next time you use Pet Portraits, and it is always removed when you delete your account), while a minimal record of that request (including the period and any pet name you entered) and your portrait count are kept until you delete your account, so deleting a portrait does not reset your allowance. If you save or share a portrait, it is saved to your photo library or shared through the iOS share sheet to the destination you choose.
PostHog. We use PostHog for product analytics. PostHog receives the analytics events listed in section 1, along with technical details added by the PostHog software, such as app version and build, device type, screen size, and a session identifier, and it receives your IP address when events are sent. PostHog may use your IP address to estimate an approximate location, such as your city and country. This helps us understand how Sleep History is used and where we should improve it. The app does not send your name, email address, account identifier, Apple Health data, or pet photos to PostHog; events are associated with a random identifier created by the PostHog software on your device, which is reset when you sign out or delete your account. We do not use PostHog for advertising identifiers or ad targeting.
RevenueCat and Apple. Subscription purchases are processed by Apple through the App Store. RevenueCat helps us manage offerings, receipts, subscription status, entitlements, renewals, and restores. We do not receive your full payment card details from Apple. RevenueCat and Apple handle transaction and subscription records under their own terms and privacy policies, and deleting your Sleep History account does not delete records held by Apple or RevenueCat.
Our website. The sleephistory.app website is hosted on Cloudflare Pages, and the home page and referral invite pages load fonts from Google Fonts. When you visit, these providers receive standard web request information, such as your IP address and browser details. Referral invite links include the referral code in the address.
4. Third-Party Services
Sleep History currently relies on the following third-party services:
- Supabase for authentication, cloud-hosted user data, and private Pet Portraits storage
- PostHog for analytics and product usage measurement
- RevenueCat for subscription management and entitlement handling
- OpenRouter and the third-party AI image-generation model it routes to (currently OpenRouter's meta/muse-image model) for creating Pet Portraits you request
- Apple Health for read-only access to sleep data you authorize
- Sign in with Apple for optional account sign-in
- Apple / App Store for billing, subscriptions, and app distribution
- Cloudflare Pages for hosting our website, and Google Fonts for website fonts
5. No IDFA or Advertising Tracking
Sleep History does not use Apple's advertising identifier (IDFA), does not use ad networks for behavioral advertising, and does not track you across apps or websites for targeted advertising.
6. User Rights and Choices
Subject to applicable law, you may request access to your personal information, a copy or export of the data we hold about you, correction of inaccurate information, or deletion of your account and associated data, and we will respond where we can reasonably support that request. Product analytics events are not linked to your name, email, or account (see section 3), so we cannot look them up or remove them by account. You can delete your account and associated core user data from Settings in the app. You can also revoke Apple Health access in iOS Settings; raw Apple Health samples are never retained by Sleep History. To make another privacy request, email hello@sleephistory.app.
Deleting your account in the app. In the app, open Settings, then Account, tap Delete Account, and confirm with Delete Forever. This works for guest accounts and signed-in accounts. It deletes your pet photos, portraits, and Pet Portraits records first, then your account and its associated data in Supabase, including your profile and onboarding answers, listening progress and history, favorites, stats, referral records, and rewards. It also removes downloaded episodes from your device and signs you out. Deleting your account does not delete analytics events already sent to PostHog (they are not linked to your account) or records held by Apple or RevenueCat, and it does not turn off bedtime reminders. Older app versions may retain Night Chronicle summaries and reminder settings on the device after account deletion (see section 3). Deleting your account does not cancel an App Store subscription; you can manage or cancel your subscription in your Apple account settings. See our Support page for step-by-step instructions.
7. Children's Privacy
Sleep History is not directed to children under 13, and we do not knowingly collect personal information from children. If you believe a child has provided personal information through the app, contact us and we will review the request and take appropriate action.
8. Updates to This Policy
We may update this Privacy Policy from time to time. When we do, we will post the updated version at sleephistory.app/privacy, revise the effective date above, and, where appropriate, provide additional notice through the app or website.
9. Contact
For privacy questions, data requests, or other inquiries about this Privacy Policy, contact hello@sleephistory.app.