- A baseline: the equipment every location has unless it says otherwise.
- Overrides at a location: what it adds to the baseline, what it lacks, and what is out of service for now.
- The effective inventory of a location: the baseline with that location’s overrides applied. It is worked out each time you read it, so it is always current.
tf_test_) while you build. Never paste a live key into a
page, a ticket or a chat.
A key needs the locations:read scope to read and locations:write to change anything
on this page. A test key and a live key never see each other’s locations or baseline.
Equipment names
Equipment is named with tokens such asleg_press or dumbbell. The full list, with each
token’s name, family and other known spellings, is on the Equipment
page and at GET /v1/equipment (scope reference:read).
You may send a token, a name or any other known spelling (Leg press, hex bar). The
answer always holds the token.
- A name we do not know is rejected with
validation_failed. The failing field carriessuggestions: the closest known equipment, best first, each with itstokenandname. - A general name that stands for a whole family (
machine) is rejected for a baseline and for a location, with the specific pieces of that family assuggestions. An inventory says exactly what is on the floor. - A request with one bad name changes nothing. Every failing field is listed at once.
Locations
A location is keyed by your own id, in the path. Create it, or replace its details, with one call:201
- The id is 1 to 255 characters from letters, digits and
. _ : -. nameandtime_zone(an IANA name such asAmerica/New_York) are required.regionis your own grouping, andaddressis optional.- The first call answers
201. Sending the same body again answers200with the same location and changes nothing, so the call is safe to retry. - The body is the whole location: a field you leave out is cleared.
GET /v1/locations/{location_external_id}, or page through all of them with
GET /v1/locations (status, region, limit up to 100, and cursor from
next_cursor). The SDKs follow next_cursor for you:
DELETE /v1/locations/{location_external_id} archives a location. An archived location keeps its
overrides and has no inventory. Sending the PUT again makes it active.
To send many locations at once from your own systems, see Syncing a chain.
The baseline
The baseline is one list for the organization.PUT replaces the whole list, so an item
you leave out is removed from it:
200
countis how many you have.attributesare facts about the equipment, such asmax_load_kg. Each piece of equipment lists the attributes it accepts. Both are optional, and neither changes which equipment a location has.- The answer carries a
revisionthat goes up by one each time the baseline changes. Sending the same list again, in any order, changes nothing.
- Adding an item adds it to every location, except those that marked it
missing. - Removing an item removes it from every location, except those that
addedit themselves.
GET /v1/inventory/baseline.
Overrides
A location has three kinds of override.
Set one item at a time:
200
- An item can be
addedandout_of_serviceat once: send two entries. An item markedmissingcannot be anything else. countandattributesgo withaddedonly.back_in_service_onandnotego without_of_serviceonly.DELETE /v1/locations/{location_external_id}/overrides/{token}removes every override of the item, so it follows the baseline again. Add?kind=out_of_serviceto put an item back in service and keep the rest.- Each location has an
inventory_revision. It goes up by one each time the location’s overrides change, or a baseline change adds or removes equipment there.
204 with no body.
Out of service
An item that is out of service is left out of the effective inventory, whatever its count.- With
back_in_service_on, the item returns by itself on that date, in the location’s own time zone. Nobody has to remove the override. - Without a date, it stays out of service until you remove the override.
- A date that has already arrived is the same as no override.
count instead.
Effective inventory
Read what a location has today (the answer is in the panel at the top of this page). The examples below addon to read it on another date:
Add
?on=2026-12-01 to read the inventory on another date, for example to see what
returns to service that day.
A worked example
The baseline isbarbell, dumbbell and leg_press. Downtown marked hack_squat as
missing, added a sled, and has leg_press out of service until 1 December.
Home locations
A teammate can have a home location: one of your active locations, in the same mode as the key. Set it with the teammate’shome_location_external_id on
PUT /v1/teammates/{external_id}, and clear it with null. A field you leave out keeps its
current value.
validation_failed; the field’s code is location_archived or
unknown_location. A teammate signed in to your member app can choose their own home
location with PATCH /v1/teammates/@me and the same field (see
Member apps).
After a teammate claims their account, their home location is personal data about where they
train. You change it only with their program_setup consent (otherwise consent_required),
and a home location they chose themselves reads as null to your key unless they allowed
program_setup. Leaving your organization clears it.
Which equipment a session uses
For each session, the equipment comes from the first of these that applies:- The equipment the teammate chose for that session.
- A trip the teammate set up, while it lasts.
- Their home location’s effective inventory on the session’s date, when the location is active and set up.
- The teammate’s own equipment.
- No limit.
Today’s session and a session rebuilt for a day read the home location now. New programs are
still planned from the teammate’s own equipment: the planner reads the home location once a
planned change on our side lands. Until then, a program built for a teammate homed at a
location does not yet reflect that location’s equipment when it is first made.
When a location’s equipment changes
A write that changes what a location has (a baseline change, an override, an item out of service, an archived location, or a chain sync) does two things once it is saved:- It sends one
location.inventory_changedwebhook per location whose equipment changed, with what it gained and lost and how many teammates are homed there. A count, never a list of people. - It asks for a new plan for each teammate homed at that location, for the rest of each program the location applies to, using the location’s new equipment (or the teammate’s own equipment once the location is archived or no longer set up).
Re-planning is switched off while it is in early access, and it needs each program’s plan
stored in the form the engine re-plans from, which programs do not have yet. Until both are
in place, the webhook is still sent with its count, and teammates’ upcoming sessions pick
up the new equipment when their day comes, but their programs are not re-planned.