Skip to content
Developer docsRoles and consent

Guide

Roles and consent

An API key acts for an organisation, so what it may do follows from who the organisation is to its members and its customers. This page sets out the roles, what customers agree to, and the boundaries the API enforces on every request.

Organisations

An organisation is a gym or an independent trainer. A gym (kind: "gym") can have up to 100 members: its owner, admins and trainers. An independent trainer (kind: "solo") has exactly one member; its owner can turn it into a gym later, keeping its library, customers and keys.

The organisation owns its programme library, its own exercises and machines, its API keys and webhook endpoints, and its plan. Programmes belong to the organisation, not to the trainer who wrote them, so a trainer who leaves never takes programmes with them.

Roles

Every member has one role: owner, admin or trainer. There is one owner. Admins are made by the owner, never by an invitation.

What each role can do
PermissionOwnerAdminTrainer
See the organisation, its members and its programme libraryYesYesYes
Create library programmes; edit, archive and set the flags of the ones they createdYesYesYes
Edit, archive and set the flags of any library programme; edit and archive the organisation’s exercises and machinesYesYesNo
Invite customers (a trainer who invites becomes the coach)YesYesYes
See customers, assign programmes and weekly slots, unlink, read shared workoutsAll customersAll customersCustomers they coach
Choose a customer’s coachYesYesNo
Invite and remove trainers (gyms)YesYesNo
Make a trainer an admin, or an admin a trainer; transfer ownershipYesNoNo
Manage API keys and webhook endpoints; rename the organisationYesYesNo
Manage the plan and billing; delete the organisationYesNoNo

An organisation key reaches every customer and every library programme within its scopes, as an admin would. It never manages members, keys or the plan (what keys never do).

Coaches

A customer can have a coach: one member of the organisation. A trainer sees only the customers they coach, while the owner, admins and keys see every customer, with a coach or without.

  • coachId is optional. A customer invitation made with a key and no coachId gives the customer no coach. A trainer who invites in the portal becomes the coach.
  • Change the coach with PATCH /v1/orgs/{orgId}/customers/{customerId}, or send "coachId": null for none.
  • coachId takes a member’s ID. Keys cannot list members, so take the ID from where the API shows it: coach.userId on customers and invitations, and createdBy.userId on library programmes and on invitations a member made.
  • A member who coaches no one and has made no library programmes or invitations does not appear in any of these. Choose them as a customer’s coach once in the portal, on the customer’s page, and their ID then shows in coach.userId.

Customers join only by accepting an invitation. The invitation page names the organisation, and the member who invited them when a member created the invitation, and says what the organisation will be able to do:

  • assign programmes to them;
  • set weekly slots on their schedule for those programmes;
  • see their display name;
  • see their workouts on the organisation’s programmes, but only if they tick that box, which starts unticked.

A customer can change the sharing choice at any time, and can leave at any time.

What an organisation sees

An organisation sees each customer’s display name and its own note about them (label). The note is never shown to the customer in the apps, but it is included when they download their data. An organisation never sees:

  • the customer’s email address, or anything about how they sign in;
  • their own programmes, exercises and machines, or their watches;
  • their schedule, apart from the weekly slots that use the organisation’s programmes;
  • their heart rate, calories or motion data;
  • workouts on their own programmes.

With sharing on, the organisation can read the customer’s workouts on its own programmes: the date, the programme, the status, the time, the volume, and every set with its target and what was done. Turning sharing off hides them all at once, earlier workouts included, because access is checked on every request and nothing is copied.

Boundaries the API enforces

  • Another organisation’s ID, or any ID you may not see, gets 404 NOT_FOUND, exactly as if it did not exist.
  • A trainer sees only the customers they coach. Other customers, with their assignments and workouts, are 404 for that trainer.
  • IDs in a request body are looked up inside your organisation. A programme, exercise or machine of another account is refused as UNKNOWN_REFERENCE, and a person who is not your customer gets the assignment outcome not_linked.
  • Permissions are checked on every request, so an unlink, a removed member or a revoked key takes effect on the next one.

Either side can end a link at any time: the customer leaves, or the organisation unlinks them with DELETE /v1/orgs/{orgId}/customers/{customerId}. In one step:

  • the organisation’s assignments to that customer end;
  • the weekly slots and future days that use its programmes leave the customer’s schedule, and their watch drops them at its next sync;
  • workout sharing stops.

The customer keeps every workout they recorded and every copy they made, and a workout recorded on the watch before the link ended still uploads. Your system hears about it through customer.unlinked, and one programme.unassigned for each assignment that ended.

A customer who deletes their Wrist Workout account leaves every organisation too, and it reads the same as leaving: programme.unassigned for each assignment, then customer.unlinked, both with by: "customer". Their customer ID then gets 404. If your system keeps a copy of your customers, compare it with GET /v1/orgs/{orgId}/customers now and then, since deliveries stop while an endpoint is turned off (catching up).