Skip to main content

Activities

An activity is one training ride, run, swim, or race. Each activity belongs to an athlete and can carry a nutrition prescription and post-activity feedback. Whatever your platform calls these (workouts, sessions, events), the Saturday object is an activity, and every field and route below uses that word.

Activity lifecycle

  1. Create the activity with type and duration, plus intensity, thermal stress, the last meal and whether it is a race.
  2. Calculate a nutrition prescription for it.
  3. Submit feedback afterward, if you collect it.

Creating an activity

Activity fields

Create takes these fields. It also accepts name and scheduled_at and ignores them: there is no stored display name or scheduled start time, so keep those on your side and join on external_id. Any other field is refused with 400 and code unsupported_field, param naming it and the message naming the field to send: activity_type (send type), is_race (send is_race_event), duration (send duration_min), or the closest field for a misspelling. See Error Handling. external_id is worth sending. Saturday’s hosted onboarding finish screen uses it to deep-link the athlete back into the matching activity in your app.

Bricks and triathlons

A brick or a triathlon is one activity with type brick or triathlon and its legs, never one activity per leg.
A leg here names its sport type, as an activity does (on calculate a leg’s sport is activity_type). The legs follow the rules on Bricks and triathlons: 2 to 10 legs, each with its sport, duration_min (5 to 2160), intensity_level and thermal_stress_level, at most 2160 minutes together. Effort and heat belong on the legs, so intensity_level and thermal_stress_level are refused at the top level; meal_before_min and is_race_event stay there. The stored activity carries legs and duration_min, their total, and no top-level effort or heat. Its calculated prescription carries legs, each leg’s share, when the numbers are exact. To work out which legs a multi-sport title implies, use POST /v1/infer/brick-types (below).

Updating an activity

Send only the fields that change: type, duration_min, legs, intensity_level, thermal_stress_level, is_race_event, meal_before_min or external_id. Any other field is refused with 400 and code unsupported_field. A change to any of these fields but external_id removes the stored prescription, so GET .../prescription answers 404 prescription_not_found until you calculate the activity again. A field sent at its stored value changes nothing.
  • legs replaces a brick’s or triathlon’s legs and sets duration_min to their total.
  • A brick or triathlon refuses intensity_level, thermal_stress_level and a duration_min other than its legs’ total with 400 invalid_value: change its legs instead.
  • Changing type to brick or triathlon needs legs in the same request, unless the activity holds legs already, and drops the stored single effort and heat.
  • Changing type to a single sport removes the legs; send duration_min and the effort and heat with it.

Calculating a prescription

This combines the activity’s parameters with the athlete’s profile. Recalculating overwrites the previous prescription, so call it again whenever the activity changes: a revised duration, a new weather forecast. The response is tier-aware, with the same semantics as /v1/nutrition/calculate:
  • Full tier (subscribed, covered, or in-trial athletes): tier: "full" with the prescription object (carb, sodium, and fluid totals and per-hour rates), stored on the activity. When the fueling profile is incomplete, the stored prescription carries carb_range_g_per_hr and the other range fields with profile_complete: false in place of exact numbers. Trial responses also carry tier_source: "trial", trial_ends_at, and trial_calls_remaining_today. Each calculation debits the trial’s daily call allowance, exactly like nutrition calculate.
  • Teaser tier: tier: "teaser" with per-hour ranges (carb_range_g_per_hr, sodium_range_mg_per_hr, fluid_range_ml_per_hr), a subscription_cta carrying the athlete’s subscribe link, and required attribution. Nothing is stored, so GET .../prescription keeps returning the last full-tier result if there was one.
safety metadata is included on every tier.

Getting a stored prescription

Returns the prescription calculated for the activity as it stands, wrapped with safety metadata:
Per-hour figures are whole numbers, as the Saturday app shows them; see Per-hour figures. A prescription stored while the profile was incomplete carries profile_complete: false and the three range fields, and leaves out the six numbers. To size the athlete’s products against a stored prescription, see Prep and Products. calculated_at is a Unix timestamp in seconds, not an ISO 8601 string, like every time a partner key receives (What the API returns).
On this stored-prescription endpoint, read prescription.* for values and safety.* for guardrails. POST /v1/nutrition/calculate instead returns flat nutrition fields. The activity calculation uses the tier-aware envelope described above. The not_instructions: true flag marks these as recommendations for a person to consider, not commands to execute.
The activity-scoped endpoints do not run the prescription warning checks: warnings comes back as an empty list from both this read and POST .../calculate, so do not read it as a check that found nothing. When you need prescription warnings, call POST /v1/nutrition/calculate with the same parameters. confidence_score is the score that calculation gave; a prescription stored before 2026-11-15 reads 0, which is not a confidence of zero. See Safety.

Getting an activity with prescription

The activity response carries the stored prescription inline. An athlete’s synced activity read through the Saturday connector in Claude can also carry source_attributions, the credit its data source requires; see Data source credits.

Listing activities

Activities come back newest first, paginated by cursor. limit defaults to 50 and is clamped to 1-200; pass pagination.next_cursor back as cursor for the next page, URL-encoded and unchanged. There are no date-range or type filters; filter on your side, or track activities by external_id.

Workouts from other platforms

To bring in an athlete’s workouts from intervals.icu, TrainingPeaks or another platform, read them with your app’s own access and send them with activity import. Saturday does not take a platform’s access token from you.

Submitting feedback

Record how the fueling went:

Feedback fields

Feedback is stored on the activity and returned with it on read, so your UI can show an athlete what they said last time and a coach can review a block of training. Feedback does not change the calculation: prescriptions come from the athlete’s profile and the activity’s parameters, so a rated activity does not change the next one. Update the profile fields to change future prescriptions.

Activity type inference

If your platform has activity metadata but not a clean type, Saturday can infer one:
Response:
activity_type is one of the seven activity keys or "unknown", and type carries the same value. When the model is unavailable or the evidence is too thin, you get "unknown" with low or zero confidence rather than an error, so branch on the type. A 502 means the inference service itself could not be reached; it is not counted as usage, so retry with backoff. Sending more than a title sharpens the result. The endpoint also reads pre_activity_comment, workout_type (your provider’s own coarse type), tss_calculation_method, structure_summary, velocity in m/s, has_power, and cadence, and those structured signals resolve many cases before the model is consulted. The API reference names two of these differently, and both spellings work: activity_name is title, and source_type is workout_type. You can also send device, the recording device’s name. A strength session also carries intensity: 1 light, 2 medium, 3 heavy. Lift uses levels 1-3 of intensity_level, so pass the value unchanged as intensity_level when you create the lift activity, without rescaling it onto 1-9. An entry that marks a day with no training, such as “Rest day”, comes back with "rest_day": true and type "unknown"; it is not a workout to create. For multi-sport titles like “Bike/run brick”, use POST /v1/infer/brick-types. It takes the same fields plus an optional segments list of the legs you already know, in order, and returns every leg in order:
sub_types is the same list without the order numbers. Create one brick or triathlon activity with those legs, adding each leg’s minutes, effort and heat.