Today

The wind-down the athlete set, and the nights they answered

Adherence and sleep side by side, never joined. There is deliberately no correlation, no difference and no verdict here: whether an evening changed a night's sleep cannot be told for one person, and 'was on the phone late' and 'went to bed late' are one behaviour described twice.

get/training/wind-down

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/training/wind-down
  • Auth: HTTP bearer

Query parameters

daysinteger

How many nights back. Defaults to 28.

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

hourinteger nullable required

The hour the athlete chose, on their clock, or null for not set.

metinteger required

Nights answered yes.

measuredinteger required

Nights answered at all. Silence is not a failure, so it is not in this denominator.

withSleepinteger required

Nights with a sleep figure.

textstring required

The sentence to show as written.

caveatstring required

Shown wherever adherence and sleep appear together, and not optional: it is the difference between recording something and claiming something.

Changes

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