For the complete documentation index, see llms.txt. This page is also available as Markdown.

Athlete parameters

Personalize a workout template for each athlete with max heart rate, threshold heart rate, FTP, threshold speed and pool length.

Overview

Athlete parameters are provided when scheduling a workout to a specific user. They give Terra the baseline it needs to express your targets on each provider: percentage targets become absolute values where the provider only accepts absolute numbers, and absolute heart rate and power targets become percentages on TrainingPeaks.

Key concept: Templates are generic. Athlete parameters are applied at scheduling time.

Athlete parameters apply only to workouts you schedule through Terra. Workouts created on the provider side, returned by GET /plannedWorkouts with is_external: true, already carry the provider's own targets and are not personalised. Intervals.icu is read only for planned workouts, so it takes no scheduled workouts and no athlete parameters.

Parameters

Parameter
Unit
Used By

max_heart_rate

BPM

heart_rate_max_percentage targets

threshold_heart_rate

BPM

heart_rate_threshold_percentage targets

ftp

Watts

power_percentage targets

threshold_speed

m/s

speed_percentage targets

pool_length_meters

Meters

Swimming workouts (overrides template)

When parameters are required

Target Type
Required Parameter
What Happens Without It

heart_rate_max_percentage

max_heart_rate

Falls back to 190 BPM, with a coercion warning

heart_rate_threshold_percentage

threshold_heart_rate

Falls back to 170 BPM, with a coercion warning

power_percentage

ftp

Falls back to 200 W, with a coercion warning

speed_percentage

threshold_speed

Falls back to 3.33 m/s, with a coercion warning

heart_rate (absolute BPM)

max_heart_rate

TrainingPeaks only: falls back to the athlete's TrainingPeaks profile, then 190 BPM, with a coercion warning

power (absolute watts)

ftp

TrainingPeaks only: falls back to the athlete's TrainingPeaks profile, then 200 W, with a coercion warning

Fallbacks apply only where the provider needs the baseline. Garmin and TrainingPeaks take heart rate and power percentages directly, so those targets are sent unchanged and the parameter is not used (Garmin still needs threshold_speed for speed_percentage). The other providers either resolve the percentage against the baseline or carry the baseline alongside the workout so the device can.

Example: one template, two athletes

Create the template (once)

Response: { "status": "success", "workout_id": "123" }

Schedule to athlete A (FTP: 200W)

Result on device: 3x10min @ 190-200W

Schedule to athlete B (FTP: 300W)

Result on device: 3x10min @ 285-300W

These results assume a provider that needs the baseline. Garmin and TrainingPeaks receive 95-100% as a percentage, and the athlete's own FTP on the device or in their TrainingPeaks profile sets the watts.

Conversion formulas

Example conversion

Template target: heart_rate_max_percentage @ 80-85% Athlete's max_heart_rate: 190 BPM

Device shows: 152-162 BPM

Heart rate zones vs percentages

Approach
When to Use

heart_rate_zone (1-5)

Device has preconfigured zones

heart_rate_max_percentage

You know user's max HR

heart_rate_threshold_percentage

You know user's threshold HR

heart_rate (absolute BPM)

You've pre-calculated the values

Zone targets are native only on Garmin and Apple. On every other provider Terra expands the zone to a percentage band first, then resolves it against a baseline: threshold HR on COROS and Zepp, max HR on Suunto, Wahoo, TrainingPeaks and Huawei, and FTP for power zones. Send max_heart_rate, threshold_heart_rate or ftp with zone targets too, or the same default baselines apply.

Pool length

For swimming workouts, pool_length_meters can be set in either:

  1. Template - Default pool length for the workout

  2. Schedule request - Override for specific user/pool

Best practices

  1. Always provide required parameters - Prevents coercion warnings

  2. Store athlete parameters in your app - Fetch max HR, FTP from user profile

  3. Use percentage targets for personalization - Same template works for all fitness levels

  4. Use absolute targets for fixed workouts - When everyone should hit the same number

Last updated

Was this helpful?