Terra

Integration

API
Unified API
SDK
SDK
Authentication
Authentication
Streaming
Streaming
Blood
Blood Report API
Planned Workout
Planned Workout
AI Interface
AI Interface

User engagement

Graph API
Graph API
Scores
Health Scores
Rewards
Health Rewards

Use cases

Enterprise
Enterprise
Insurance
Insurance

Developers

Wearable Data
Wearable Data
Community
Community
Documentation
Documentation

Learn

Blog
Blog
Podcast
Podcast
Events
Events
Reports
Reports

Company

Customers
Customers
Careers
Careers
Partners
Partners
Support
Support
Become an integration
Become an integration


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.

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

ImpressiveLamprey3 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

Vanessaadmin3 weeks 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