observation/1, and every observation says which version
it is in.
Two examples
A force test from a lab. It names a joint and a side, the device label the lab uses, and the lab’s own id for the record.hamstring_eccentric_force is not in the quantity list yet: an unlisted quantity is still
valid, is stored as not_interpreted with kind unknown, and changes nothing until the
list gains it (at which point stored readings inside the replay window are offered to the
engine once).
A self-report from a teammate. No device is involved, so the optional fields are left out.
Send an observation
An observation travels as thedata of an observation event, sent with a key that holds
events:write (see Sending events). This sends the force test
above for the teammate member-1042. With an SDK, the builder checks the observation first,
so a mistake fails in your code before any request is sent (see
Observation builders).
"status": "accepted" with observation.status not_interpreted; the
results section shows the whole answer.
Fields
Every key is snake_case. A key that is not in this table is refused, so a misspelled field is an error and never a silent loss.value and confidence take whole numbers and decimals alike: 4 and 4.0 are the same
reading. A value that is too large to be a number, such as 1e999, is refused.
Times
at and until are RFC 3339 strings that state their offset from UTC. Write the date,
an upper-case T, the time with seconds, and then either Z or an offset such as
-05:00.
Stating the offset removes any doubt about which moment a reading belongs to, whatever
time zone the teammate or your server is in.
For a reading that covers a span, such as a night of sleep or an outside workout,
at is
the start and until is the end. until may equal at and is never before it. The two
are compared as moments, so they may be written with different offsets.
Body location and sides
body says which joint a reading belongs to and on which side. Use these joint ids, and
only these: another name for the same joint is refused.
When you leave
side out, a midline joint is read as midline and a joint with a left
and a right is read as bilateral, which means both sides together. Sending left for a
midline joint, or midline for a knee, is an error.
Send left and right as two observations, one for each side, and not as one number that
compares them. Two readings keep what was measured on each side.
Quantities
quantity takes any name that fits the naming rule, so a reading with a name that is not
listed here is still a valid observation and is kept as sent. The names below are the ones
with a fixed meaning. For each one the table gives the unit it is stored in, the other
units that are converted to it, its measures, and whether it needs a body location.
Work done
Joint-level measures
Whole-body signals
sprint_time names a family of quantities and is never sent itself. Send the name of the member, and it keeps that name.
sleep_score, readiness_score, recovery_score, stress_score: each is a score on the scale of whoever computed it. A score is kept as sent and is never compared with a score from another source.
blood_pressure, blood_oxygen, blood_glucose, body_mass, body_fat, lean_mass, height, girth: these sensitive measures are stored when sent, kept in the teammate’s own export, removed on account erasure, and not returned in organization reads, webhooks, shares, or engine inputs.
Older names
Four rules apply to a listed quantity:
- Units match exactly as written.
kgandlbare units ofset_load;KG,Lbandlbsare not. A unit that is not listed for the quantity cannot be converted. - A quantity that lists measures needs one.
bar_velocityis sent withmeasureset tomeanorpeak. Two measures of one quantity are never converted into each other. - A quantity that lists no measures takes none. Leave
measureout forset_load. - A quantity that needs a body location needs
body.painwith no joint cannot be placed.
sleep_hours does,
only that unit is accepted under that name.
The list only grows. A quantity, an accepted unit, a measure or an older name is never
removed, and the unit a quantity is stored in never changes.
What feeds body state
Body state is the per-joint read of how careful to be at each joint. Of the quantities above, two feed it:
Both need a
body with a joint, the unit score_0_10 and a confidence above 0. A
reading with no side on a joint that has a left and a right is shared between the two
sides, so one report is not counted twice. A report counts for less as it gets older. Only
live readings fold into body state: test-mode readings are stored and never change it.
Every other quantity is skipped for body state with the reason does not feed body state. That includes rpe, session_effort, force and range_of_motion: they are
valid observations, and they do not change body state.
Outside workouts
A workout done outside a program, such as a run, a ride or a swim, is one observation with the quantityoutside_workout_duration. The value is the time spent moving, in s,
min or h. at is when it started and until is when it ended.
context may say more about the workout. Every key is optional, so a workout entered by
hand with only a duration counts the same way as one that a device recorded.
How hard the workout was comes from
effort when it is sent. Without it, a workout is
taken as moderate (5 out of 10), and a walk as easy (3 out of 10), so a workout that says
nothing about its effort is neither ignored nor overcounted.
An outside workout counts as work the body did: the muscles that carry the activity are
treated as having worked, for longer workouts and harder ones more so. It is not a logged
set of the program, and it does not count toward completing the program’s sessions.
A duration that is zero or negative, or in a unit that is not a time, is not used. Two
observations with the same source.record_id are one workout.
Source
source.route names how the reading reached you, such as your own lab, your gym floor
or a teammate’s self-report. Choose a route id for each way readings arrive and keep it
the same over time.
source.device is free text for your own use. source.record_id is the id the source
itself gave the record, so each reading can be traced back to where it came from.
Optional protocol and instrument fields say how a test was run and what kind of
equipment measured it. A sender never sets a result’s vouching level: TechnicallyFit
assigns the level from how the reading arrived and who attests to it. See
Verified records.
Confidence
confidence is your estimate of how far the reading can be trusted, from 0 (not at all)
to 1 (fully). A supervised test on calibrated equipment earns a higher number than an
estimate. It is required, so that no reading is trusted by default.
Each route also has a default confidence, and a reading is never trusted more than its
route. The first time you send a route, it is registered for your organization with a
default of 0.8; a reading sent with a higher confidence is stored at that default, and
one sent lower keeps its own number. You cannot change a route’s default. When a reading
names a registered protocol and an instrument, a less precise instrument kind can
lower the stored confidence below the route default (see
Verified records).
Two routes are the platform’s own, for self-reports: teammate (the person reported it,
default 1.0) and coach (a coach reported it for them, default 0.9). Any organization may
send them. They take pain, soreness, session effort and outside workouts only;
Without a device explains them.
Status
Every observation is stored once, against the teammate, with one of three statuses:
A rejected observation becomes
not_interpreted when you send a corrected copy under the
same source.route and source.record_id. A not_interpreted observation is not lost:
when the engine learns to read its quantity, stored readings can be used then (see
Used later).
Each stored observation keeps the value and unit you sent and, for a quantity listed
above, the value in the quantity’s own unit. The teammate’s data export lists every
observation sent about them, with its status and the organization that sent it.
Used later
The path from one live observation to a program change and its webhook. A test observation is stored and kept, and never changes a program. The engine reads a teammate’s observations when a program week ends. Each observation is offered to the engine once, at the first week end after it arrives. One the engine cannot use yet staysnot_interpreted and is kept. If a coach declines a change that a week end
proposed, the observations it used still count as offered.
When a later engine version learns to read a quantity, the stored not_interpreted
observations of that quantity are offered again, once, at the teammate’s next week end,
in the order they were measured. You do not send them again. The window is the 90 days
before the new engine version arrived: observations measured in that window and received
before the new version are offered. An observation the engine then uses becomes
interpreted. If it changes the program, the change is a revision like any other: it
applies at once, or waits for the teammate’s coach, and the usual webhooks fire. Its
cause.kind is observation_replay (see causes).
Using older readings never sends a separate burst of webhooks.
Only live observations are used this way: test observations never change a program.
Scores a source computes with its own formula, such as readiness, recovery, strain and
sleep scores, are never used, whatever engine version arrives. A rejected observation is
not used later either: send a corrected copy.
Versions
observation/1 only ever grows by adding optional fields (such as protocol and
instrument, described in Verified records), so a payload
that is valid today stays valid. A change that would break existing payloads gets a new
version string, and observation/1 keeps its meaning.