Explore Plans
Mobile menu Close menu
iOS HealthiOS Health

Log workout

This action logs a workout to your iPhone's Health app. Choose the type of activity, calories burned, duration, and more to customize your workouts.

Developer info

API endpoint slug
ios_health.log_workout
Filter code method
IosHealth.logWorkout.skip(string?: reason)
Runtime method
runAction("ios_health.log_workout", {})

Action fields

Activity type Dropdown list

Label
Workout type
Slug
activity_type
Required
true
Can have default value
true
Filter code method
IosHealth.logWorkout.setActivityType(string: activityType)

Duration Text input > Other

Label
Duration of workout
Helper text
e.g. "60 minutes"
Slug
duration
Required
true
Can have default value
true
Filter code method
IosHealth.logWorkout.setDuration(string: duration)

Energy Text input > Other

Label
Calories burned
Helper text
Optional e.g. 225
Slug
energy
Required
false
Can have default value
true
Filter code method
IosHealth.logWorkout.setEnergy(string: energy)

Distance Text input > Other

Label
Distance
Helper text
Optional e.g. 25
Slug
distance
Required
false
Can have default value
true
Filter code method
IosHealth.logWorkout.setDistance(string: distance)

Distance units Dropdown list

Label
Distance units
Slug
distance_units
Required
false
Can have default value
true
Filter code method
IosHealth.logWorkout.setDistanceUnits(string: distanceUnits)

Start date Text input > Other

Label
Date and time workout started
Helper text
Optional and will use current time if blank
Slug
start_date
Required
false
Can have default value
true
Filter code method
IosHealth.logWorkout.setStartDate(string: startDate)