02-21-2021 21:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-21-2021 21:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi all,
When I requested sleep data via Fitbit API, I got multiple sleep sessions in a day. Sometimes, the `isMainSleep` field is true. Sometimes, it is false.
Does anybody know if we can have multiple sessions with "isMainSleep:true" in a day?
Thanks!
Meng
Answered! Go to the Best Answer.
Accepted Solutions
02-22-2021 10:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-22-2021 10:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @MengL
You will only have one isMainSleep in a 24 hour period. Typically, the main sleep is the longest sleep period.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

02-22-2021 10:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-22-2021 10:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @MengL
You will only have one isMainSleep in a 24 hour period. Typically, the main sleep is the longest sleep period.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

02-23-2021 11:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-23-2021 11:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you!
Meng

