Question regarding the 'daily' and 'activity' webhook events

ImpressiveLamprey2 months ago

Could you please clarify how exactly the daily event works? Is the data provided after each workout, or does it arrive at the end of the day as a summary of the user's daily activity? Also, does this data duplicate any information from the activity event?

terra

Vanessaadmin2 hours ago

Hey there,

Thanks for the question, these are distinct event types:

Activity: Represents a completed workout session with a defined start and end time (e.g., user starts a run, finishes it). Sent once when the workout ends, identified by a unique summary_id.

Daily: Represents a cumulative summary of ALL activity for a 24-hour period. It's sent multiple times throughout the day as the user moves around -- each payload is an updated total up to that point. You should always overwrite the previous daily data for a given date with the latest one (identified by start_time + end_time).

They don't exactly duplicate each other, daily includes general movement/steps/calories throughout the day, while Activity is specifically about discrete workout sessions. A user who goes for a run would generate both: one Activity event for the run, and updated Daily events reflecting the run's contribution to their overall daily totals.

Docs: https://docs.tryterra.co/docs/event-types


Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.