For the complete documentation index, see llms.txt. This page is also available as Markdown.

Inisghts

The inisghtsquery returns a series of tracking-related insights for the given date in relation to the previous two weeks.

Required Arguments

Argument

Type

Description

date

DateTime!

Date to analyze

category

InisghtsCategory

Optional. To filter by category.

Available Fields

Field Name

Type

Description

highlight

String

Value of the change

text

String

Description of the change

description

String

Supporting content

Example

query($date: Date!, $category: InsightsCategory){
    insights(date: $date, category: $category){
        category fields{ highlight text description}
    }
}
{
   "data":{
      "insights":[
         {
            "category":"SLEEP",
            "fields":{
               "highlight":"+1",
               "text":"You've increased your sleep time by 1 hours in the past 7 days.",
               "description":"Quality sleep is the foundation of a healthy mind and body."
            }
         },
         {
            "category":"STEPS",
            "fields":{
               "highlight":"-408",
               "text":"You've decreased your daily step count by 408 on average in the past seven days.",
               "description":"Embrace each stride, your wellness journey begins with every step."
            }
         }
      ]
   }
}

Last updated

Was this helpful?