Wellness data (sleep) only syncs from Zepp after manual web login

Hi everyone,
I’m having an issue with wellness data synchronization (specifically sleep data) from Zepp/Amazfit via API.
The Problem:
My workout data syncs perfectly fine, but wellness/sleep data does not appear when I fetch it via the API (GET /athlete/{id}/wellness) unless I first manually log into the Intervals.icu website and open the Calendar page. It seems like opening the web interface triggers the sync, but calling the API does not.
My Setup:
• I am using n8n for automation.
• I’m calling the endpoint: https://intervals.icu/api/v1/athlete/{id}/wellness?oldest=YYYY-MM-DD&newest=YYYY-MM-DD
• I have tried to “wake up” the sync by calling GET /athlete/{id}/events before fetching wellness data, but it doesn’t seem to trigger the Zepp import.
Question:
Is there a specific API endpoint or a parameter I can use to force a sync/refresh from external services (Zepp) before I fetch the wellness data? I want to automate this process without having to manually open the browser every morning.
Thanks in advance for any help!

I’m having the exact same issue.

1 Like

Same problem, did you find any solution?

This is intentional behaviour.

Ahh that’s a bit disappointing :sweat_smile:

Do you know if there’s any way to trigger the sync programmatically?
For example, simulating a login via HTTP request (maybe using something like n8n)?

Ideally without relying on cookies/session reuse, since those expire and I’m trying to build a fully automated pipeline into Google Sheets.

You probably can use curl to simulate a web page visit. I have no idea what capabilities Google sheets has.
But you need a cookie, though I think intervals cookies don’t expire.

I have asked Zepp about their webhook plans.

1 Like

Thanks! I’ll give it a try :+1:

That’s awesome, really appreciate you checking that out! :raising_hands:
Would be amazing if they actually add webhook support

1 Like

The Zepp team got back to me. The plan to add webhooks for some wellness data (e.g. sleep) in the “next few months”.

Thanks a lot for the update, really appreciate you checking this out.