> ## 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.

# Member journey

> Read how far the teammates who joined in a window got through six fixed steps, from joining to training 3 weeks in a row, and how many stopped at each.

The member journey follows the teammates who joined your organization in a window of dates
through six fixed steps, the same for every organization. Each step has a stable key, a plain
definition and a count, and steps 2 to 4 also say how many teammates stopped there. A step never
carries pain, injury, body-state or any other health detail, and the steps cannot be edited.

Your key needs `insights:read`. A test key reads test teammates; a live key reads live ones. The
two never mix.

```bash curl theme={null}
curl "$TF_API_BASE/v1/insights/journey?from=2026-08-28&to=2026-11-25" \
  -H "X-API-Key: $TF_API_KEY"
```

```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 journey = await tf.GET('/v1/insights/journey', {
  params: { query: { from: '2026-08-28', to: '2026-11-25' } },
});
for (const step of journey.data) {
  if (!step.available) continue;
  console.log(step.key, step.count?.withheld ? 'withheld' : step.count?.value);
}
```

```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"))

journey = tf.get_journey(from_="2026-08-28", to="2026-11-25")
for step in journey["data"]:
    if step["available"]:
        print(step["key"], step["count"])
```

```json 200 theme={null}
{
  "location": null,
  "from": "2026-08-28",
  "to": "2026-11-25",
  "min_group_size": 5,
  "data": [
    {
      "key": "joined",
      "definition": "Members who joined your gym on TechnicallyFit in the dates you chose.",
      "available": true,
      "count": { "value": 64, "withheld": false },
      "stopped": null
    },
    {
      "key": "visited_week_one",
      "definition": "Visited your gym in their first 7 days.",
      "available": true,
      "count": { "value": 41, "withheld": false },
      "stopped": { "value": 18, "withheld": false }
    },
    {
      "key": "booked_coach_session",
      "definition": "Booked a session with one of your coaches. Shown as a total only, once it is ready.",
      "available": false,
      "count": null,
      "stopped": null
    }
  ]
}
```

## The steps

| Key | A teammate reaches it when they |
| - | - |
| `joined` | Joined your organization on a day from `from` to `to`: the day their current link to your organization began. |
| `visited_week_one` | Checked in at one of your locations on days 1 to 7 after joining (the day they joined is day 1). |
| `first_session` | Then logged a session within their first 30 days. |
| `three_weeks_in_a_row` | Then checked in or logged a session in 3 calendar weeks in a row (Monday to Sunday) within their first 8 weeks. The week they joined in counts from the day they joined. |
| `booked_coach_session` | Not available yet: `available` is false and there are no numbers. |
| `bought_package` | Not available yet: `available` is false and there are no numbers. |

The steps are taken in order: a teammate reaches a step only after the one before it. `stopped`
is how many reached the step before and then did not reach this one before its deadline passed
(day 7, day 30 or day 56). A teammate whose deadline has not passed yet is neither counted as
reaching the step nor as stopping there, so `count` plus `stopped` can be less than the step
before. Only days that have ended everywhere are read (up to two days ago). More steps may become
available, so handle a key you do not know and check `available`.

| Parameter | Meaning |
| - | - |
| `from` | The first join date counted. Defaults to 89 days before `to`. |
| `to` | The last join date counted, at most today (UTC). Defaults to two days ago. At most 366 days after `from`. |
| `location` | Your own id for a location. Only teammates whose home location it is are counted. Leave it out for every location. |

## Who is counted

A teammate is counted only while they allow `usage_insights` for your organization. It is read
again at every request: a teammate who turns it off, or leaves, is gone from your next request.
Placeholders that were never claimed are never counted.

## Withheld figures

A figure smaller than `min_group_size` (5, the same for every organization) is withheld:
`{"value": null, "withheld": true}`. A figure is also withheld when showing it would let you work
out a smaller group by subtraction, for example the teammates still in their first week. When you
read one location, a figure is withheld too if the rest of the organization would be a group of
1 to 4. An empty figure is `{"value": 0, "withheld": false}`. Withheld never means zero.


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