daily.data.workouts.created
Each summary object is uniquely identified by its id
.
If multiple events are received at the same id
, the last event received replaces all its previous
versions.
Properties
Constant: daily.data.workouts.created
User id returned by vital create user request. This id should be stored in your database against the user and used for all interactions with the vital api.
Title given for the workout
Timezone offset from UTC as seconds. For example, EEST (Eastern European Summer Time, +3h) is 10800. PST (Pacific Standard Time, -8h) is -28800::seconds
Average heart rate during workout::bpm
Max heart rate during workout::bpm
Distance travelled during workout::meters
Date of the workout summary in the YYYY-mm-dd format. This generally matches the workout start date.
Start time of the workout::time
End time of the workout::time
Calories burned during the workout::kCal
Sport’s name
Sport’s name
Slug for designated sport
Time in seconds spent in different heart rate zones <50%, 50-60%, 60-70%, 70-80%, 80-90%, 90%+. Due to rounding errors, it’s possible that summing all values is different than the total time of the workout. Not available for all providers::seconds
Time spent active during the workout::seconds
Elevation gain during the workout::meters
Highest point of elevation::meters
Lowest point of elevation::meters
Average speed during workout in m/s::meters/sec
Max speed during workout in m/s::meters/sec
Average watts burned during exercise::watts
Watts burned during exercise::watts
Max watts burned during exercise::watts
Weighted average watts burned during exercise::watts
Map of workouts encoded as polyline
Provider ID given for that specific workout
Source the data has come from.
Provider slug. e.g., oura
, fitbit
, garmin
.
The type of the data source (app or device) by which the summary or the timeseries data were recorded. This defaults to unknown
when Vital cannot extract or infer that information
The identifier of the app which recorded this summary. This is only applicable to multi-source providers like Apple Health and Android Health Connect.
[⚠️ Deprecated] Deprecated. Subject to removal after 1 Jan 2024.
[⚠️ Deprecated] Deprecated. Use provider
instead. Subject to removal after 1 Jan 2024.
[⚠️ Deprecated] Deprecated. Subject to removal after 1 Jan 2024.
Examples
{
"event_type": "daily.data.workouts.created",
"data": {
"id": "5f8faa76-17ff-494f-b092-9e6c5367ec86",
"average_hr": 100,
"max_hr": 190,
"distance": 1700,
"calendar_date": "2023-32-",
"time_start": "2023-11-30T11:32:40+00:00",
"time_end": "2023-11-30T12:32:40+00:00",
"calories": 300,
"sport": {
"id": 1,
"name": "football"
},
"source": {
"provider": "strava",
"type": "unknown",
"app_id": null
},
"hr_zones": [
100,
90,
10,
10,
200
],
"user_id": "d2aad4d5-97ed-447f-ad96-da6777b9c664",
"moving_time": 100,
"total_elevation_gain": 10,
"elev_high": 20.2,
"elev_low": -10.2,
"average_speed": 4.2,
"max_speed": 7.8,
"average_watts": 100,
"device_watts": 80,
"max_watts": 200,
"weighted_average_watts": 250,
"map": {
"summary_polyline": "agn~Ftb{uOvr@daBunBjdBkHwiD????~Ngn@ha@_N~Ql`@"
}
}
}