> ## Documentation Index
> Fetch the complete documentation index at: https://docs.technicallyfit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verified records

> How TechnicallyFit stores performance test results with registered protocols, instrument kinds, four vouching levels, cryptographic attestations and person-controlled sharing.

> [!NOTE]
>
> The organization API is in early access and is not yet available to every organization.

A verified record holds a teammate's performance measurements together with how each test
was run, what kind of equipment measured it, and who stands behind the result. Every
result stays owned by the person, carries its full correction history, and can be checked
online or offline without revealing unrelated account data.

## What makes a result verified

Three independent facts describe a stored measurement:

* **Protocol**: the registered test method (`protocol_kind: "registered"` with a key from the
  protocol registry) or an owner's own test (`protocol_kind: "owner_test"`).
* **Instrument kind**: the category of measuring equipment (for example `timing_gates` or
  `force_plate`), recorded by kind only, never by maker or brand.
* **Vouching level**: who stands behind the result, from `1` (self-reported or unvouched)
  to `4` (certified by an approved organization).

A sender never sets the vouching level on a request. TechnicallyFit assigns the level from
how the reading arrived and updates it only when a coach witnesses or an approved
organization certifies the result.

## Protocols and owner tests

A registered protocol defines a shared test setup, unit, attempt count and aggregation rule.
Only results recorded under a registered protocol are compared or benchmarked across
teammates or organizations.

An organization or coach can also define its own assessment test (`owner:<id>:v<n>`). A
result recorded under an owner's own test is stored, displayed with its method marked as
set by its owner, and can be certified by that organization, but it is never compared
against other owners' tests.

| Protocol | Quantities | Measure | Unit | Attempts | Aggregation | Description |
| - | - | - | - | - | - | - |
| `sprint_40yd` | `sprint_40yd_seconds` | None | `s` | 2 | `best` | Timed 40-yard sprint from a standing start. |
| `sprint_60yd` | `sprint_60yd_seconds` | None | `s` | 2 | `best` | Timed 60-yard sprint from a standing start. |
| `vertical_jump` | `jump_height` | `countermovement` | `cm` | 3 | `best` | Countermovement vertical jump height test. |
| `lift_max` | `squat_e1rm`, `hinge_e1rm`, `push_horizontal_e1rm`, `push_vertical_e1rm`, `pull_horizontal_e1rm`, `pull_vertical_e1rm`, `single_leg_e1rm` | None | `kg` | 1 | `best` | Estimated one-repetition max test on a pattern reference lift. |

## Instrument kinds

Instruments are identified by kind only, never by vendor or brand name. When a reading
names both a registered protocol and an instrument kind, a less precise instrument kind
can lower the reading's stored confidence below the route default.

| Instrument kind | Quantities supported | Description |
| - | - | - |
| `timing_gates` | `sprint_40yd_seconds`, `sprint_60yd_seconds` | Electronic timing gates using infrared or laser beams. |
| `video_timing` | `jump_height`, `sprint_40yd_seconds`, `sprint_60yd_seconds` | High-frame-rate video timing or flight-time analysis. |
| `stopwatch` | `sprint_40yd_seconds`, `sprint_60yd_seconds` | Handheld manual stopwatch. |
| `force_plate` | `force`, `jump_height` | Ground-reaction force plate. |
| `contact_mat` | `jump_height` | Contact or switch mat measuring flight time. |
| `tape_measure` | `jump_height` | Tape measure or mechanical jump-and-reach vane. |
| `linear_encoder` | `bar_velocity`, `hinge_e1rm`, `jump_height`, `pull_horizontal_e1rm`, `pull_vertical_e1rm`, `push_horizontal_e1rm`, `push_vertical_e1rm`, `single_leg_e1rm`, `squat_e1rm` | Linear position or velocity transducer attached to a bar or body. |

## The four vouching levels

| Level | Name | Who sets it | How it is reached |
| - | - | - | - |
| `1` | Self-reported or unvouched | TechnicallyFit on ingest | A teammate logs a result directly, or an organization sends a reading before any attestation. |
| `2` | Device or route captured | TechnicallyFit on ingest | A reading arrives directly from a connected device route with verified hardware capture. |
| `3` | Coach witnessed | A teammate's active coach | A coach with an active coaching link witnesses a live result measured on or after the link began. |
| `4` | Organization certified | An approved organization | An approved attestor certifies its own measurement with one of its approved instruments via `POST /v1/attestations`. |

Revoking a level 4 certification returns the measurement to level 3 if an active coach
witness still stands, or to level 1 otherwise. Sensitive health measures are never
shareable or certifiable.

## Sending a protocol result

Send a protocol reading through the teammate events endpoint (`POST /v1/teammates/{external_id}/events`)
or record a direct measurement (`POST /v1/teammates/{external_id}/measurements`). The
example below sends a 40-yard sprint timed with electronic timing gates.

```bash curl theme={null}
# example: send_protocol_result
curl -sS -X POST "$TF_API_BASE/v1/teammates/member-1/events" \
  -H "X-API-Key: $TF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "events": [
      {
        "type": "observation",
        "data": {
          "schema": "observation/1",
          "quantity": "sprint_40yd_seconds",
          "measure": null,
          "value": 4.62,
          "unit": "s",
          "at": "2026-11-27T15:00:00Z",
          "until": null,
          "body": null,
          "source": {
            "route": "combine_floor",
            "device": "timing_gates",
            "record_id": "combine-2026-40yd-001"
          },
          "confidence": 1,
          "protocol": "sprint_40yd",
          "instrument": "timing_gates",
          "context": {}
        }
      }
    ]
  }'
```

```typescript TypeScript theme={null}
import { createClient, observation } from '@technicallyfit/sdk';

const tf = createClient({
  credential: process.env.TF_API_KEY ?? '',
  baseUrl: process.env.TF_API_BASE,
});

const reading = observation.measurement({
  quantity: 'sprint_40yd_seconds',
  value: 4.62,
  unit: 's',
  at: '2026-11-27T15:00:00Z',
  source: {
    route: 'combine_floor',
    device: 'timing_gates',
    record_id: 'combine-2026-40yd-001',
  },
  confidence: 1,
  protocol: 'sprint_40yd',
  instrument: 'timing_gates',
});

await tf.POST('/v1/teammates/{external_id}/events', {
  params: { path: { external_id: 'member-1' } },
  body: { events: [{ type: 'observation', data: reading }] },
});
```

```python Python theme={null}
import os
from technicallyfit import Client, measurement

tf = Client(os.environ["TF_API_KEY"], base_url=os.environ.get("TF_API_BASE"))

reading = measurement(
    quantity="sprint_40yd_seconds",
    value=4.62,
    unit="s",
    at="2026-11-27T15:00:00Z",
    source={
        "route": "combine_floor",
        "device": "timing_gates",
        "record_id": "combine-2026-40yd-001",
    },
    confidence=1,
    protocol="sprint_40yd",
    instrument="timing_gates",
)

tf.post_teammate_events("member-1", {"events": [{"type": "observation", "data": reading}]})
```

To test the full flow in the sandbox without touching a real teammate, pass
`include_results: true` on `POST /v1/sandbox/teammates/{simulated_id}/simulate` (see
[Sandbox](https://docs.technicallyfit.com/guides/sandbox.md)).

## Becoming an attestor, certifying and revoking

To certify results at level 4:

1. Apply for attestor approval and register each instrument kind your organization uses in
   the developer portal. TechnicallyFit staff review and approve both the organization and
   each instrument.
2. Send the measurement with your organization API key.
3. Call `POST /v1/attestations` with a key holding `attestations:write`, passing the
   `measurement_id` and your approved `instrument_id`.

An approval covers both test and live mode: a test key signs with the test signing key,
and a live key signs with the live signing key. If an organization is not approved, the
call returns `403` with code `attestor_not_approved`. If the instrument is not approved or
cannot measure that quantity, the call returns `422` naming `instrument_id`.

To revoke a certification your organization issued, call
`POST /v1/attestations/{attestation_id}/revoke`. Revocation is final and irreversible.
If staff later withdraw an organization's attestor approval, new certification requests
receive `403`, while certifications issued before withdrawal remain valid unless revoked.

## Checking a result

Anyone with a signed attestation envelope can check it online or offline:

* **Public revocation check** (`GET /v1/attestations/{attestation_id}/status`, no key
  required): answers one of `valid`, `revoked`, `withdrawn` or `unknown`, with timestamps
  only and never any personal data or numeric values.
* **Public keys** (`GET /v1/attestations/keys`, no key required): lists all active and
  retired Ed25519 public keys (both raw base64url and JWK). Retired keys stay published so
  older statements keep verifying after key rotation.
* **Offline signature verification**: verify the Ed25519 signature over canonical JSON
  locally using the TypeScript or Python SDK. See
  [Checking attestations offline](https://docs.technicallyfit.com/sdks/attestation-check.md).

```bash curl theme={null}
# example: check_attestation_keys
curl -sS "$TF_API_BASE/v1/attestations/keys"
```

```typescript TypeScript theme={null}
import { createClient } from '@technicallyfit/sdk';

const tf = createClient({
  credential: process.env.TF_API_KEY ?? '',
  baseUrl: process.env.TF_API_BASE,
});

const { keys } = await tf.GET('/v1/attestations/keys');
console.log(keys.length);
```

```python Python theme={null}
import os
from technicallyfit import Client

tf = Client(os.environ["TF_API_KEY"], base_url=os.environ.get("TF_API_BASE"))
keys = tf.list_attestation_keys()
print(len(keys["keys"]))
```

## Corrections and withdrawals

Measurements are append-only:

* **Correction**: correcting an active measurement creates a new active row that points to
  the earlier row via `supersedes_id` and marks the old row `superseded`. Existing
  attestations do not carry over to the replacement row, and public status checks on
  attestations for the superseded row answer `withdrawn`.
* **Withdrawal and erasure**: withdrawing a measurement removes it from active views and
  causes its attestations to check as `withdrawn`. Erasing a teammate's account deletes
  their measurements and leaves zero-PII tombstones so external attestation checks keep
  answering `withdrawn`. Active share links automatically drop superseded or withdrawn
  results.

## What the person controls

The teammate owns their performance record:

* **Share links**: a teammate can create and revoke public share links for their whole
  record or selected results from their TechnicallyFit account. Organizations never create
  or receive a teammate's share links. A person under 18 cannot create a share link yet.
* **`record` consent**: once a teammate claims their account, reading their measurements
  (`GET /v1/teammates/{external_id}/measurements` and
  `GET /v1/teammates/{external_id}/measurements/{measurement_id}`) and receiving record
  webhooks (`measurement.recorded`, `measurement.corrected`, `measurement.withdrawn`,
  `attestation.created`, `attestation.revoked`) require the `record` consent item. See
  [Teammates and ownership](https://docs.technicallyfit.com/guides/teammates-and-ownership.md) and
  [Webhooks](https://docs.technicallyfit.com/guides/webhooks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.