Training

Today's and tomorrow's prescription

get/training/recommendation

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/training/recommendation
  • Auth: HTTP bearer

Query parameters

daysinteger

How many days back from today.

weekboolean

Also project the next seven days. Off by default: it's five more days through the engine, for surfaces that draw the week.

Headers

X-Client-Platformstring

The native client's platform, e.g. ios. Server-side and non-native callers omit it.

X-Client-Versionstring

The native client's own semver version. With X-Client-Platform, a version below that platform's minimum is refused with CLIENT_UPGRADE_REQUIRED (426).

Response

OK

units'metric' | 'imperial' required

How to display quantities; the API always speaks SI.

excludedActivitiesinteger required

Activities in the window with no evidence to score them; non-zero means the metrics understate training.

todayIsDoneboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.