Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. Nothing beyond essential cookies runs until you choose. You can change your mind any time in our Cookie Policy.

  • Unified API
  • Mobile SDK
  • Connection Widget
  • Streaming
  • Lab Reports API
  • Graph API
  • Health Scores
  • Health Rewards
  • Workouts & Routes
  • Predictions
  • Lab Testing
  • DNA Testing
  • AI Interface
  • Enterprise
  • Insurance
  • Integrations
  • Research
  • Podcast
  • Blog
  • Reports
  • Events
  • Documentation
  • Community
  • Example apps
  • Wearable Data
  • About
  • Customers
  • Partners
  • Startup Accelerator
  • Careers
  • Support
  • Pricing
Terra
Pricing
Become an integrationGet started


zap

Latest

zap

Popular

API

Unified API

SDK

Phone SDK

Authentication

Widget

Streaming

Streaming

Graph API

Graph API

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

All

ImpressiveLamprey8 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

Vanessaadmin6 months 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