tf_test_) while you build. Never paste a live key into a
page, a ticket or a chat.
Read a teammate’s body state
403
with consent_required means the teammate has claimed their account and has not allowed
the body_state consent item.
You need a key with the body_state:read scope. A teammate who has claimed their account
must have allowed the body_state consent item; before the claim you can read it without
one (see Teammates and ownership).
The fields
Each entry of
joints has three numbers, each from 0 to 1:
caution: how careful to be with this joint. 0 means there is no reason for care. It rises with active injuries and limitations at or near the joint.recovery: how recovered the muscles that load this joint are from recent training. 1 means fully recovered; it falls after hard sessions and comes back with rest.uncertainty: how little is known about this joint. It is 1 when nothing has been reported there. A low caution with a high uncertainty means “nothing reported”, not “known to be fine”.
What feeds it
- Logged training. The teammate’s working sets from the last few days drive
recovery. - Injuries and limitations the teammate or their coach recorded drive
caution. - Live pain and soreness reports. Live
painandsorenessobservations with a joint raisecautionand loweruncertainty.
Only live pain and soreness readings fold into body state. Test-mode readings
are stored and never change body state.
What moved it
Two ledger endpoints explain what moved a teammate’s body state over time. Both use thebody_state:read scope and the body_state consent item, and page newest first with
limit (1 to 100, default 50) and cursor:
GET /v1/teammates/{external_id}/body-state/changes: each stored change to the teammate’s body state, withcomputed_at,engine_version,joints, andcause:readings: the update folded at least one new reading.event_idslists only the events your organization sent in this mode; other sources are never named.rebuilt: no new reading; rebuilt from stored readings after some were removed (for example after disconnecting a source route).other: no new reading; training, injuries, time or a new engine release moved it.nullfor changes stored before cause tracking was added.
GET /v1/teammates/{external_id}/logged-sets: the sets your organization (and its member app) sent, newest first by when they were performed, withid,event_id,at,movement,session,setandsource.
A change is recorded only when a body-state update runs; training sets and injuries do not
record a snapshot of their own. Neither endpoint returns raw reading values or set measures.
In test mode, both endpoints return what is recorded for the test teammate, which is empty
because test-mode readings and sets never write to live body state or training history.
Letting the planner act on body state
By default the planner never changes a program because of body state. A setting lets it: with the setting on, a change in a teammate’s body state can change the rest of their program, the same way an injury you send does. The setting is off for every organization and every teammate until you turn it on. You can set it for your organization and override it for one teammate:- The teammate’s own value, when you set one (
trueorfalse), wins. - Otherwise your organization’s value.
- Otherwise it is off.
source: teammate, organization or
default.
A teammate who belongs to several organizations gets one answer for their programs: an
explicit off from any of them wins (a teammate value of false, or an organization value of
false with no teammate value); otherwise it is on when any organization that the teammate
allows both programs and body_state has it on. A teammate who leaves your organization
loses the value you set for them.
Your organization’s setting
200
GET /v1/organization/settings. Reading needs the teammates:read scope and
changing it needs teammates:write.
One teammate’s setting
200
null to remove the teammate’s own value, so they follow your organization’s again.
effective is the value in force for this teammate in your organization. Read it with
GET /v1/teammates/{external_id}/settings. The same scopes apply, and a teammate who has
claimed their account must have allowed the body_state consent item. Only your
organization sets this value; a member app’s teammate token cannot.
What a change looks like
With the setting on, a change in body state that asks for more or less caution at a joint re-plans the rest of the program from that day. The change is a revision whose cause kind isbody_state and whose summary names each joint and side, for example
week 2 Tue: body state caution on: left knee (moderate). A teammate with a coach gets a
proposal instead, and nothing changes until the coach accepts it.
Turning the setting off stops further changes. Cautions already applied stay in the program
until its next change.
A test key reads and writes your test-mode settings only, and a test-mode setting never
affects a live program. Every change at either level is recorded with the key that made it.
Errors
Errors use the shared error format.