Activities

Everything the athlete did, newest first

Recorded and typed-in activities, plus logged strength sessions with no recording of their own (a linked session appears as its activity). 25 per page. from and to narrow it to a span of days, so a question about one week doesn't have to be paged back to.

get/activities

Request

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

Query parameters

pageinteger
typestring

Only this sport. strength_training also returns a session logged in Body Lab whose recording the watch typed as something else, which is most of them: a watch usually calls a lift cardio.

fromstring date

Only activities on or after this day, on the athlete's own calendar.

tostring date

Only activities on or before this day, on the athlete's own calendar. Inclusive.

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

pageinteger required
hasMoreboolean required

Changes

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