Skip to content

Types

Heatmap cell.

Field Type Description
date Date! Date.
minutes Int! Minutes trained.
volume Float! Load lifted, kg × reps (warm-ups left out), as it was lifted: both sides of an exercise done one side at a time, both weights of a pair.

Admin dashboard. Every field requires the admin role.

Field Type Description
activity [AdminActivityDay!]! What people did in the app by UTC day, newest first: a page is days that follow each other, starting a number of days before today. A day with nothing is there with zeros; the list stops at the oldest event kept.
activityDays Int! How many days the activity list reaches back, from the oldest event kept to today.
activitySummary AdminActivitySummary! What people did in the app: today, the last seven days and the last thirty.
day AdminDay! The conversations of one UTC day (a day of the spending list), from every person.
eventsDay AdminEventsDay! The events of one UTC day (a day of the activity list), from every person.
inviteOnly Boolean! Invite-only sign-up is on.
invites [Invite!]! Invite codes.
signIns [SignIn!]! Recent sign-ins, newest first (kept 90 days).
signInsTotal Int! How many sign-ins are kept.
spendSummary AdminSpendSummary! What the coach has cost: today, the last seven days and in total.
spending [AdminSpendDay!]! What the coach cost by UTC day, newest first.
spendingDays Int! How many days have any charge.
trainingNow [TrainingNow!]! Who is mid-workout right now.
user AdminUserDetail Drill into one user.
users [AdminUser!]! All users with workout counts and last activity, newest first.
usersTotal Int! How many accounts there are.

What people did in the app on one UTC day, counted.

Field Type Description
day String! The day, YYYY-MM-DD in UTC.
events Int! Events that day.
people Int! People who made them.

What people did in the app: today (UTC), the last seven days (today included) and the last thirty, as events and as the people who made them.

Field Type Description
monthEvents Int! Events in the last thirty days.
monthPeople Int! People who did anything in the last thirty days.
todayEvents Int! Events today.
todayPeople Int! People who did anything today.
weekEvents Int! Events in the last seven days.
weekPeople Int! People who did anything in the last seven days.

A person’s conversation with the agent, as an admin reads it. Listing the conversations and opening one are recorded in the audit log. Photos the person sent are not available to the admin.

Field Type Description
checkin String Set when the agent started it on its own, a check-in: weekly, nudge, reminder or coach.
costMicro Int! What its answers cost, in micro-USD (voice messages heard are not counted).
createdAt Timestamp! Started.
id ID! Id.
messageCount Int! How many messages it holds.
messages [AgentMessage!]! Its messages as the person saw them, oldest first (the last 500). A photo is a part with no picture in it, a voice message its length and what was recognised. Reading them is recorded in the audit log.
title String! Its first message, shortened.
updatedAt Timestamp! Last message.

One UTC day of the agent’s conversations, from every person. Listing them is recorded in the audit log, one row for each person whose conversations are listed.

Field Type Description
conversations [AdminDayConversation!]! The conversations that had a message on that day, the one with the latest message first. Listing them (their titles are what people wrote) is recorded in the audit log.
conversationsTotal Int! How many conversations had a message on that day.
day String! The day, YYYY-MM-DD in UTC.
goneAnswers Int! How many of that day’s answers have no conversation left: the conversation was deleted, or the account. The spending list counts them, and there is nothing to open for them.

A conversation that had messages on one UTC day, with the person it belongs to. Its numbers are those of that day only; the whole conversation is read through the person (AdminUserDetail.conversation).

Field Type Description
checkin String Set when the agent started it on its own, a check-in: weekly, nudge, reminder or coach.
costMicro Int! What its answers cost on that day, in micro-USD (voice messages heard are not counted).
id ID! Conversation id.
isGuest Boolean! That person has a guest account.
lastAt Timestamp! Its last message of that day.
messageCount Int! How many messages it had on that day.
title String! Its first message, shortened.
userId ID! The person it belongs to.
userName String! The name of that person.

Something a person did in the app, as an admin reads it: a name and a few small facts (numbers, flags, words from fixed lists), never what the person wrote. Listing events is recorded in the audit log.

Field Type Description
at Timestamp! When it happened.
id ID! Id.
isGuest Boolean! That person has a guest account.
name String! What happened, as area.what: screen.viewed, workout.finished, api.failed…
props JSON! The facts of the event: an object of small numbers, flags and words. Empty when it has none.
source String! What acted: app (a browser), cli (the gymgym CLI), api (a personal API key), mcp (an AI assistant) or server (the server itself, such as signing in).
userId ID! The person.
userName String! The name of that person.

How often an event of one name happened.

Field Type Description
count Int! How many times.
name String! The event name.

One UTC day of what people did in the app, from every person. Listing the events is recorded in the audit log, one row for each person whose events are listed.

Field Type Description
day String! The day, YYYY-MM-DD in UTC.
events [AdminEvent!]! The events of that day, from every person, the latest first. Listing them is recorded in the audit log.
names [AdminEventCount!]! How often each kind of event happened that day, the most frequent first (up to 30).
people Int! How many people did anything that day.
total Int! How many events the day holds, of one kind when a name is given.

What one answer cost, as recorded for the admin spending view.

Field Type Description
conversationId ID! Conversation.
costMicro Int! What it cost, in micro-USD.
createdAt Timestamp! When.
id ID! Entry id.
inputTokens Int! Prompt tokens.
messageId ID! Answer.
model String! Model that answered.
outputTokens Int! Completion tokens.

What the coach cost on one UTC day.

Field Type Description
answers Int! Answers charged that day.
costMicro Int! What those answers cost, in micro-USD.
day String! The day, YYYY-MM-DD in UTC.
inputTokens Int! Prompt tokens.
outputTokens Int! Completion tokens.
people Int! People who were charged that day.

What the coach has cost: today, the last seven days (UTC) and in total.

Field Type Description
allMicro Int! All time, in micro-USD.
answers Int! Answers charged in total.
todayMicro Int! Today (UTC), in micro-USD.
weekMicro Int! The last seven days, today included, in micro-USD.

A user as seen by an admin.

Field Type Description
createdAt Timestamp! Sign-up time.
creditBalance Int! Coach credit left, in micro-USD.
disabled Boolean! Disabled: signed out and locked out everywhere.
email String! Email.
id ID! User id.
isAdmin Boolean! Admin.
isGuest Boolean! Guest account.
lastActive Timestamp Last workout start.
name String! Name.
spentMicro Int! What the coach has cost this person in total, in micro-USD.
workouts Int! Workouts logged.

One user’s history. Reading it is recorded in the audit log.

Field Type Description
bodyweight [BodyweightEntry!]! Body-weight log.
conversation AdminConversation One of the person’s conversations with its messages; null when the person has no such conversation. Opening it is recorded in the audit log.
conversations [AdminConversation!]! The person’s conversations with the agent, last used first. Listing them (their titles are what the person wrote) is recorded in the audit log.
conversationsTotal Int! How many conversations the person has.
creditBalance Int! Coach credit left, in micro-USD.
eventNames [AdminEventCount!]! How often each kind of event happened to the person, the most frequent first (up to 30).
events [AdminEvent!]! What the person did in the app, the latest first. Listing it is recorded in the audit log.
eventsTotal Int! How many events are kept of the person, of one kind when a name is given.
id ID! User id.
lastSeen Timestamp The last thing the person did in the app, or null when no event is kept.
name String! Name.
spends [AdminSpend!]! Latest charges, newest first.
spendsTotal Int! How many charges the person has.
spentMicro Int! What the coach has cost this person in total, in micro-USD.
trackActivity Boolean! Whether the person lets the app record what they do in it. False when they turned it off in Settings: no event is kept of them, and the ones kept before were deleted.
workouts [Workout!]! Workouts, newest first.
workoutsTotal Int! How many finished workouts the person has.

A message the agent sends first, as a notification. weekly and nudge are settings; reminder and coach are the ones the user asked for in a chat. Times are in the user’s timezone.

Field Type Description
days Int The nudge: days without a workout before it goes out.
enabled Boolean! On.
id ID! Id.
kind String! weekly, nudge, reminder or coach.
text String A reminder’s words, or what the agent does for a coach check-in.
time String HH:MM, local.
weekday Int Monday = 0 … Sunday = 6; null is every day.

A conversation with the agent.

Field Type Description
checkin String Set when the agent started it on its own, a check-in: weekly (review of the week), nudge (after a break), reminder or coach (ones the user asked for).
createdAt Timestamp! Started.
id ID! Id.
messages [AgentMessage!]! Its messages, oldest first (the last 200).
title String! Its first message, shortened.
updatedAt Timestamp! Last message.

A lasting fact the agent keeps between conversations.

Field Type Description
area String! about, training or health.
content String! The fact.
createdAt Timestamp! When it was saved.
id ID! Id.

A message in a conversation with the agent.

Field Type Description
createdAt Timestamp! When.
id ID! Id.
parts JSON! What it says, in order: {type: "text", text} (Markdown), {type: "chart", chart}, {type: "proposal", proposal} with the proposal’s current status (pending, applying, applied, discarded, failed, expired), {type: "questions", questions: [{text, options, multiple}]} it asks before it plans, {type: "exercise", exercise: {id, name}} shown as a card, and first in a message it sent on its own {type: "checkin", kind}.
role String! user or agent.
status String! complete, error or stopped.
steps JSON! What the agent did while answering: {id, tool, label: {key, params}, state, error}.

A change the agent proposed.

Field Type Description
error String Why applying it failed.
id ID! Id.
status String! pending, applying, applied, discarded, failed or expired.

Today’s messages to the agent, the daily limit and what is left of the credit.

Field Type Description
accountLimit Int! Messages a day for a saved account that has credit.
balanceMicro Int! What is left of the credit, in micro-USD (USD × 1 000 000).
guest Boolean! A guest account: saving it raises the limit.
limit Int! Messages a day.
used Int! Messages sent today.

A personal API key for calling the GraphQL API from scripts and tools (“Authorization: Bearer gg_…”). Only its first characters are kept in clear.

Field Type Description
access ApiKeyAccess! Read only, or read and write.
createdAt Timestamp! Created.
expiresAt Timestamp When it stops working; null when it never expires.
id ID! Key id (not the key itself).
lastUsedAt Timestamp Last request made with it.
name String! Name given when it was created.
start String First characters, to recognise it.

What a personal API key may do with its owner’s data.

Value Description
read Queries only; every mutation is refused.
write Queries and mutations.

Public instance configuration the client needs before sign-in.

Field Type Description
agent Boolean! This instance has the AI agent (labelled Coach): POST /api/agent/chat and the agent fields.
catalogVersion String! Exercise library version.
defaultLocale String Language for visitors whose browser asks for none of the supported ones; null means English.
events Boolean! This instance records what people do in the app (the admin’s activity pages); false when EVENTS_RETENTION_DAYS is 0. The app shows its Privacy switch only then.
guestAccess Boolean! Guest accounts (and new passkey-only accounts, which start as guests) can be created.
instructionLocales [String!]! Languages with exercise instructions; others fall back to English.
inviteOnly Boolean! An invite code is required to create an account.
mediaAttribution String! Required credit line for exercise media.
mediaBaseUrl String Base URL for licensed exercise media; null hides animations.
passwordSignUp Boolean! New accounts can be created with an email and password. Otherwise a password is added in Settings to an account that signed in another way.
photoUploads Boolean! Custom exercises can have a photo (setCustomExercisePhoto); off when no storage is bound.
providers [String!]! Enabled sign-in methods besides passkeys: OAuth providers (google, github, cloudflare) and email (password sign-in: always in local development, elsewhere when the instance turns it on).
vapidPublicKey String Web Push application server key; null when push is not configured.

One lift in the comparison.

Field Type Description
exerciseId ID! Exercise.
oneRm Float! Best estimated 1RM, kg.
ratio Float! Reference share of a back squat.
share Float! Where it stands against the others: 1 = in line with the strongest, lower = behind.

A lift trained often, with its heaviest checked work set.

Field Type Description
date Date! When it was lifted.
exerciseId ID! Library or custom exercise id.
reps Int! That set’s reps.
sessions Int! Finished workouts that had it.
weight Float! Heaviest checked work set, kg.

Figure drawn by the muscle map.

Value Description
female Female figure
male Male figure

One body-weight reading per day, kg.

Field Type Description
date Date! Date.
weight Float! Weight, kg.

The coach’s character: its picture, and the manner it speaks in.

Value Description
bear Teddy
biceps Flex
curvy Rosa
custom The person’s own coach: their name, their way of talking and their photo
dachshund Dash
fox Rusty
gorilla Kong
hairy Bruno
kettlebell Kettle
man Alex
owl Hoot
panda Bamboo
senior Greta
spark Spark
spitz Snow
tabby Mango
tuxedo Tux
woman Maya

An app the user allowed to use their account through OAuth, such as an AI assistant connected to the remote MCP server.

Field Type Description
clientId ID! OAuth client id.
connectedAt Timestamp When the user allowed it.
icon String Logo URL the app registered.
name String Name the app registered.
uri String Home page the app registered.

A new API key. The full key is returned only here, once.

Field Type Description
apiKey ApiKey! The key as it is listed.
key String! The full key (“gg_…”). Store it now: it cannot be shown again.

An exercise the user created. Behaves like a library exercise everywhere.

Field Type Description
bodyPart String! Body part; cardio logs time + speed.
deleted Boolean! Deleted; kept so logged workouts can still show the name.
description String Setup and cues; searchable.
equipment String Equipment, if any.
id ID! Id, prefixed c_.
name String! Name.
photoUrl String Your photo of the exercise, readable only by you (same-origin, with your session). Null without one.

Calendar date in the user’s own timezone, formatted YYYY-MM-DD.

Custom scalar.

Scale a single set’s effort was logged with. Each set keeps its own.

Value Description
rir Reps in reserve (0 = failure)
rpe RPE, 1–10

Which effort column a working set shows. Off by default.

Value Description
none No effort column
rir Reps in reserve
rpe Rate of perceived exertion

Effort over a period, always alongside how much was rated.

Field Type Description
averageRir Float Average RIR.
distribution [Int!]! Rated sets per RIR bucket 0,1,2,3,4,5+.
nearFailureShare Float Share of rated sets at RIR ≤ 1.
ratedSets Int! Sets with a rating.
totalSets Int! Working sets.
weeks [EffortWeek!]! Week by week.

Weekly effort average.

Field Type Description
averageRir Float! Average RIR.
ratedSets Int! Rated sets.
totalSets Int! All working sets that week.
weekStart Date! Monday of the week.

A place the user trains at and the equipment it has.

Field Type Description
equipment [String!]! Equipment keys.
id ID! Id.
name String! Name.

A library exercise or one the user created, named in the requested language (the account’s by default).

Field Type Description
assisted Boolean! The load is assistance (assisted pull-up, dip machine): less of it is progress.
bodyPart String! Body part; cardio logs time + speed.
bodyweight Boolean! Logged as body weight plus added load.
cardio Boolean! Cardio, logged as time and distance.
custom Boolean! Made by the user.
deleted Boolean! The user’s own, deleted; kept so logged workouts can still show it.
description String Setup and cues of the user’s own exercise.
english String The English library name when name is a translation; searches find either.
equipment String! Equipment key; other when the user gave none.
id ID! Id: the library number, or prefixed c_ for the user’s own.
lowerBody Boolean! Lower body: progresses in bigger steps.
media String Key of the licensed animation under config.mediaBaseUrl, if any.
name String! Name in the language; library names without a translation are English, in lower case.
pair Boolean! Lifts a pair of weights at once, a dumbbell or a kettlebell in each hand: the weight logged is one of them, and volume counts both.
primary [String!]! Muscles it mainly works.
secondary [String!]! Muscles it supports.
timed Boolean! A hold, logged in seconds.
unilateral Boolean! Done one side at a time.

One page of exercises under the filters: favourites first, then by name match. Suggested holds close matches for the first page: near library names and the user’s own exercises.

Field Type Description
available Int! How many exercises the equipment profile in available leaves (all without one).
bodyParts [String!]! Body parts with results under the other filters, in the usual order.
equipment [String!]! Equipment with results under the other filters, most used first.
items [Exercise!]! This page.
librarySize Int! The library plus the user’s own exercises.
suggested [Exercise!]! Close matches for the query on the first page (empty on later pages).
total Int! How many exercises match.

Per-exercise settings. Weights in kg.

Field Type Description
addedLoad Float Added load for a bodyweight exercise.
bodyweight Boolean Overrides the library bodyweight flag.
exerciseId ID! Exercise id.
favourite Boolean! Starred by the user.
notes String Personal notes.
pair Boolean Overrides the library pair flag (a dumbbell or a kettlebell in each hand).
repCeiling Int Past this many reps, add a set instead.
step Float Load step; null uses the default.
unilateral Boolean Overrides the library per-side flag.
workingWeight Float Confirmed working weight.

Progress for one exercise.

Field Type Description
best Float Best top set ever.
bestOneRm OneRmEstimate Best estimate (≤ 12 reps).
exerciseId ID! Exercise.
points [ProgressPoint!]! Sessions, oldest first.

What the next session asks of one routine item, and why.

Field Type Description
bodyweight Boolean! No load column.
exerciseId ID! Exercise.
itemId ID! Routine item.
mode SetMode! How it is logged.
note String The routine’s tip for the exercise, shown above its sets.
perSide Boolean! Show reps per side.
reason Reason! Why these targets.
restSec Int Rest override.
rule ProgressionRule! Rule applied.
sets [SetTarget!]! Per-set targets.
supersetGroup String Superset group.

A public YouTube exercise technique video, playable in the exercise How to.

Field Type Description
approximate Boolean! True when the title does not say the posture or grip of the exercise (lying, seated, reverse grip), so the video may show another version of it.
channel String! Name of the YouTube channel.
id String! YouTube video id.
thumbnail String! YouTube thumbnail URL, or empty when unavailable.
title String! Title supplied by YouTube.

Cached YouTube technique examples; independent of the AI coach and its token usage.

Field Type Description
searchUrl String! Direct YouTube search for the exercise, also usable when embedded playback fails.
state String! ready, empty, unavailable, or pending while another request fills the cache.
videos [ExerciseVideo!]! Up to three public embeddable videos, excluding known child-directed videos.

Outcome of finishing a workout.

Field Type Description
muscles [MuscleSets!]! What was just trained.
records [PersonalRecord!]! Records set.
workout Workout! The saved workout.

One page of workouts from Hevy, as Hevy returns them (read with readHevyApi in the SDK).

Field Type Description
page Int! This page, from 1.
pageCount Int! Pages in total.
workouts JSON! Hevy workout objects, newest first.

What a plan import added.

Field Type Description
customExercises Int! Custom exercises created; others were matched by name.
dropped [String!]! Unknown exercise ids that were left out.
routines Int! Routines added (with fresh ids).
weekReplaced Boolean! The week schedule was taken over.

What an import wrote.

Field Type Description
bodyweight Int! Body-weight readings written.
customExercises Int! Custom exercises created.
sets Int! Sets written.
skippedDays [String!]! Dates that already had data and were left alone.
workouts Int! Workouts written.

An invite code for invite-only sign-up.

Field Type Description
code String! Code.
createdAt Timestamp! Created.
revokedAt Timestamp When it was revoked.
usedAt Timestamp When it was used.
usedBy ID User who used it.

Arbitrary JSON value.

Custom scalar.

What the coach takes into account for a woman.

Value Description
menopause Menopause or after it.
none None of these.
postpartum Had a baby in the last year.
pregnant Pregnant.
unsaid They prefer not to say.

The main barbell lifts compared with each other through reference ratios to the back squat.

Field Type Description
lifts [BalanceLift!]! Lifts with an estimate.
weakest ID The lift furthest behind; null with fewer than two lifts.

Where training went in a period.

Field Type Description
muscles [MuscleSets!]! Worked muscles, most first.
untrained [String!]! Muscles that got nothing.

How much recent training a muscle still carries, and how long since it was trained.

Field Type Description
daysSince Int Days since then.
fatigue Float! 0 = fresh … 1 = carrying a lot of recent work.
lastTrained Date Last workout that trained it.
muscle String! Muscle key.
strength Float! 1 = trained in the last two weeks, fading toward 0.15 over 90 days; 0 = never trained.

Effective sets for one muscle (primary = 1, supporting = 0.5).

Field Type Description
muscle String! Muscle key.
sets Float! Effective sets.

A notification: what the person is told outside the app, when, and with which sound.

Field Type Description
body String! Text.
delivered Int! How many of the person’s browsers took it.
fireAt Float! When it goes out, ms since the epoch.
id ID! Id.
kind NotificationKind! Why.
readAt Float When they read it, ms since the epoch; null while unread.
sentAt Float When it was sent, ms since the epoch.
sound NotificationSound! The sound it plays in the app.
status String! “scheduled” (waiting), “sending”, “sent”, “skipped” (no browser to send to) or “cancelled”.
title String! Title, in the language it was made in.
url String! Where opening it goes, inside the app.

Why a notification is sent.

Value Description
checkin A message the coach wrote first.
reminder The workout-day reminder.
rest_over A rest between sets has run out.
set_over A timed set (a hold) has run out.
test The test notification in Settings.

The sound a notification plays in the app. In the background the phone plays its own notification sound.

Value Description
bell One long ringing note.
chime Two rising notes.
gong A low note fading out.
off No sound from the app.
pulse Three short beeps.

Estimated one-rep max, naming the set it came from.

Field Type Description
date Date! Source set date.
reps Int! Source set reps.
value Float! Estimate, kg.
weight Float! Source set weight.
workoutId ID Logged workout of the source set; null when unknown.

A personal record set by a workout.

Field Type Description
exerciseId ID! Exercise.
kind RecordKind! Kind.
previous Float! Previous best.
value Float! New best.

A note pinned to an exercise during a workout.

Field Type Description
date Date! Workout it was written in.
exerciseId ID! Exercise.
note String! The note.

A one-off change to a single date, leaving the weekly plan alone.

Field Type Description
date Date! Date.
routineId ID Routine for that date; null = rest.

A link to a snapshot of the user’s plan.

Field Type Description
expiresAt Timestamp! Expiry.
token String! Share token, used in /share/.

A ready-made program on Explore. Saving it adds a folder with a copy of its routines.

Field Type Description
cover [String!]! The words on its cover, in English.
daysPerWeek Int! Training days a week it is written for.
equipment [String!]! Every kind of equipment it uses.
goal ProgramGoal! What it trains for.
icon String! Lucide icon on its cover.
kind StarterKind! Which program.
level ProgramLevel! Who it is for.
place ProgramPlace! Where it is done.
routines [Routine!]! Its routines, with stable ids (program::) for saveTemplateRoutine.

What a program trains for.

Value Description
fitness General fitness
muscle Build muscle
strength Lift more

Who a program is for.

Value Description
beginner New to lifting
intermediate A year or more

Where a program is done.

Value Description
gym A gym
home At home, with little or no equipment

Rule that picks the next session’s targets.

Value Description
double Double progression through a rep range
greyskull Greyskull LP: AMRAP final set, double jumps, 10 % resets
linear Add a step after every clean session; deload after three misses
none Repeat last time
time Add time to timed holds

One session on an exercise curve.

Field Type Description
date Date! Date.
effortRir Float Average RIR of rated sets.
oneRm Float Best estimated 1RM that session.
top Float Top set (kg), longest hold (s) or most reps.
topReps Int Reps of the top set.
volume Float! Weight × reps of the working sets, as they were lifted: both sides of an exercise done one side at a time, both weights of a pair.
workoutId ID! Logged workout of the session.

Translatable explanation of a target. Clients render code with params in the user’s language.

Field Type Description
code String! Message key, e.g. linear.up or deload.
params JSON Values interpolated into the message.

Kind of personal record.

Value Description
duration Longer hold
oneRm Better estimated one-rep max
reps More bodyweight reps
weight Heavier load

A named session template.

Field Type Description
deload Boolean! Planned deload: opens on the plan and never feeds progression.
folderId ID Its folder (viewer.folders); null = My routines.
icon String! Icon key.
id ID! Id.
items [RoutineItem!]! Exercises in order.
name String! Name.
progression ProgressionRule! Default rule for its exercises.

A folder of routines on the Workout screen. Routines without one are “My routines”.

Field Type Description
archived Boolean! Archived: hidden from the Workout screen with its routines, which stay as they are, until restored (archiveFolder).
id ID! Id.
name String! Name.
nextRoutineId ID The routine it suggests next: the one after the routine of this folder finished most recently, wrapping round (the first before any). Null when empty.
routines [Routine!]! Its routines, in order.

One exercise in a routine.

Field Type Description
bursts Int! Rest-pause bursts after the last work set.
drops Int! Drop sets after the last work set.
durationSec Int Target hold or cardio duration.
exerciseId ID! Library or custom exercise id.
id ID! Client key, stable within the routine.
mode SetMode! How it is logged.
note String Tip shown above the sets in a workout: what the numbers do not say (a depth, a tempo).
progression ProgressionRule Overrides the routine rule.
reps Int! Target reps (range bottom for double progression).
repsMax Int Range top for double progression.
restSec Int Rest override, seconds.
sets Int! Number of sets.
supersetGroup String Items sharing a group are performed back-to-back.
warmups Int! Warm-up sets, ramped toward the first work weight.
weight Float Starting weight, kg.
why String Why the exercise has its sets, reps and rest: the coach gives it when it writes the routine. Not shown in a workout.

Where a routine fits, from the equipment its exercises need.

Value Description
band Uses a resistance band
bodyWeight Body weight only
cardio Has cardio
dumbbell Dumbbells (and body weight)
gym Needs gym equipment
home Nothing a home lacks: body weight, dumbbells, kettlebells, bands
kettlebell Uses a kettlebell
travel Body weight and bands only

A single routine Explore offers: one of a program, or one of its own.

Field Type Description
program StarterKind The program it comes from, if any.
routine Routine! The routine (id for saveTemplateRoutine).
tags [RoutineTag!]! Where it fits.

Where a planned session takes its numbers from when progression does not decide.

Value Description
last The last session of that routine slot
plan The routine’s own sets, reps and weight

What a logged row is.

Value Description
drop Drop set right after the set before it; counts for volume, not progression
restpause Rest-pause burst after a short pause; counts for volume, not progression
warmup Warm-up: out of volume, records and progression
work A working set

How an exercise is logged.

Value Description
cardio Time + speed
reps Weight × reps
time Timed hold, optionally loaded

Target for one set. Weights in kg.

Field Type Description
amrap Boolean! As many reps as possible.
durationSec Int Hold or duration.
kind SetKind! Work, warm-up, drop set or rest-pause burst.
reps Int Reps.
speed Float Cardio speed.
weight Float Load.

Per-user preferences, synced across devices.

Field Type Description
aboutAskedAt Float When “About you” was last asked (epoch ms).
aboutPutOff Int! How many times “About you” was put off: put off once and still empty, it comes back once on a later day.
accent String! Accent colour key.
activeProfile ID Profile the library and picker filter to; null shows everything.
agentRemember Boolean! The agent may save lasting facts the user tells it (agentMemories).
bars JSON Bar weights in kg by bar type (barbell, ez, trap, smith); null: standard bars.
birthYear Int Year of birth.
bodyFigure BodyFigure! Muscle map figure.
coachAvatar CoachAvatar! The coach’s character: the one picked, your own coach when you made one and picked it, or the account’s own until one is picked.
customCoachName String The name of the coach you made; null without one.
customCoachPhotoUrl String Your photo of your own coach, readable only by you (same-origin, with your session). Null without one.
customCoachStyle String How you asked your own coach to talk: tone only. Null when you did not say.
demoMinimized Boolean! Exercise animation minimised during workouts.
effortScale EffortSetting! Effort column for new sets.
equipmentProfiles [EquipmentProfile!]! Equipment profiles; bodyweight exercises are always available.
heightCm Float Height in cm.
homeBodyweight Boolean! Show the body-weight card on Home.
keepAwake Boolean! Keep the screen awake while a workout runs.
lifeStage LifeStage For a woman: a pregnancy, a baby in the last year or menopause; null until she answers.
lifeStageAt Float When lifeStage was given (epoch ms).
locale String! UI language code.
plates [Float!] Plate weights owned, kg, each once (pairs assumed); null: the standard set.
reminderOn Boolean! Push a reminder on planned days without a workout.
reminderTime String! Reminder time, HH:MM local.
restSec Int! Default rest between sets, seconds.
restSound NotificationSound! The sound the app plays when a rest ends.
restTimer Boolean! Start a rest timer after each set; an exercise with its own rest time always rests.
sessionStart SessionStart! Where planned sessions take their numbers from when progression does not decide.
setSound NotificationSound! The sound the app plays when a timed set ends.
sex Sex Sex as they gave it; null until they answer.
sound Boolean! Beep when a timer ends.
targetWeight Float Body-weight goal in kg.
theme Theme! Colour theme.
timerFlash Boolean! Flash the screen when a timer ends.
timezone String IANA timezone detected by the browser.
trackActivity Boolean! The app records what the user does in it, for the admin’s activity pages. False: nothing is recorded and what was kept is deleted.
unit Unit! Display unit.
weekStart WeekStart! First day of the week.
workoutLayout WorkoutLayout! Workout screen layout.

Sex as the person gave it, for the coach.

Value Description
female Female.
male Male.
unsaid They prefer not to say.

A plan someone shared by link: routines, week and custom exercises only.

Field Type Description
expiresAt Timestamp! Link expiry.
ownerName String Display name of whoever shared it.
plan JSON! The plan file.

A browser or CLI signed in to the account. The session token itself is never exposed.

Field Type Description
createdAt Timestamp! Signed in.
current Boolean! True for the session making this request.
expiresAt Timestamp! When it ends unless it is used again.
id ID! Session id (not the token).
ipAddress String Address it signed in from.
lastActiveAt Timestamp! Last time the session was refreshed.
userAgent String The browser or tool that signed in, as it named itself (the CLI sends “gymgym-cli/…”).

A sign-in, as recorded for the admin dashboard (no IP address is kept).

Field Type Description
at Timestamp! When.
country String Country code from Cloudflare.
device String Browser and system, e.g. “Firefox · macOS”.
email String! Email.
isGuest Boolean! Guest account.
method String! How: google, github, passkey, password, guest, cli or another auth path.
name String! Name.
userId ID! User.

Ready-made plans.

Value Description
bodyweight Bodyweight at home, three days
dumbbells Dumbbells only, two alternating sessions
fullBody Two alternating full-body sessions (Greyskull LP)
ppl Push / Pull / Legs, three days
strength 5×5 strength on the big barbell lifts
upperLower Upper / Lower, four days (double progression)

Colour theme.

Value Description
dark Dark
light Light
system Follow the OS

Milliseconds since the Unix epoch.

Custom scalar.

The plan for one date.

Field Type Description
date Date! Date.
isOverride Boolean! The day was moved away from the weekly plan.
routine Routine The planned routine.
routineId ID Routine planned; null = rest.
workouts [Workout!]! Workouts already logged that date.

Someone mid-workout right now.

Field Type Description
exerciseId ID Current exercise.
name String! Name.
setsDone Int! Sets done.
setsTotal Int! Sets planned.
updatedAt Timestamp! Last heartbeat.
userId ID! User.
workoutName String! Workout.

Weight unit used for display. Stored weights are always kilograms.

Value Description
kg Kilograms
lb Pounds

The signed-in user and all of their data. Only ever the caller’s own.

Field Type Description
activeWorkout Workout The running workout, readable from any device.
activity [ActivityDay!]! Minutes trained per day, for the heatmap.
agentCheckins [AgentCheckin!]! Messages the agent sends first: the weekly review and nudge settings, and the ones asked for.
agentConversation AgentConversation One conversation with the agent.
agentConversations [AgentConversation!]! Conversations with the agent, most recent first (the last 50).
agentMemories [AgentMemory!]! What the agent remembers about the user, oldest first.
agentUsage AgentUsage! Today’s messages to the agent and the daily limit.
apiKeys [ApiKey!]! Personal API keys for the GraphQL API, newest first.
backup JSON! Full backup of the user’s data as JSON.
bestLifts [BestLift!]! The lifts trained most, each with its heaviest checked work set (Profile’s records).
bodyweight [BodyweightEntry!]! Body-weight readings, oldest first.
connectedApps [ConnectedApp!]! Apps (such as AI assistants on the remote MCP server) the user allowed to use the account.
customExercises [CustomExercise!]! Exercises the user created.
day TodayPlan! What is planned for a date.
effort EffortStats! Effort statistics over working sets.
email String! Email (only visible to the user themself).
exerciseSearch ExerciseSearch! Search the user’s exercises and the library, named in a language: every word must match the name (in that language, English or, after those, any other), equipment, body part or description. Favourites come first. Suggested carries close matches for the first page.
exerciseSettings [ExerciseSetting!]! Per-exercise settings.
exerciseStats ExerciseStats! Progress curve, best estimated 1RM and best set for one exercise.
exerciseVideos ExerciseVideos! Video technique examples for a library exercise or an exercise owned by this viewer. A server cache and a daily search budget protect the YouTube quota.
folders [RoutineFolder!]! Routine folders in display order, each with its routines and the one it suggests next; archived ones too, marked archived.
hevyWorkouts HevyPage! Read workouts from your Hevy account for importing (Hevy Pro: Settings → Developer → API key). The key is used for this request only and never stored. Nothing is written; import the result with ImportHistory.
id ID! User id.
image String Avatar URL.
isAdmin Boolean! Has the admin dashboard.
isAnonymous Boolean! Guest account that can still be linked to Google, GitHub or a passkey.
liftBalance LiftBalance! The main barbell lifts compared through reference ratios to the back squat.
muscleBalance MuscleBalance! Effective sets per muscle and the muscles that got nothing.
muscleRecovery [MuscleRecovery!]! Fatigue and time since last trained, per muscle, from the last 120 days.
name String! Display name.
nextTargets [ExerciseTarget!]! Targets for the next session of a routine, each with the reason behind it.
notifications [Notification!]! Notifications made for them, newest first (kept a week).
overrides [PlanOverride!]! One-off day changes.
pinnedNotes [PinnedNote!]! The newest pinned workout note of each exercise, shown in later workouts with it.
planFile JSON! The user’s plan as a shareable file: routines, week and the custom exercises they use. No workouts, weigh-ins or settings.
routine Routine One routine.
routines [Routine!]! Routines in display order.
sessions [SignedInSession!]! Browsers and CLIs signed in to the account, most recently active first. Needs a signed-in session.
settings Settings! Preferences.
streak Int! Weeks in a row with at least one workout.
unreadNotifications Int! How many notifications of the notifications screen they have not read.
week [WeekDay!]! The weekly plan, Monday to Sunday.
workout Workout One workout.
workoutCount Int! Finished workouts, all time.
workouts [Workout!]! Finished workouts, newest first.

One weekday of the weekly plan.

Field Type Description
routineId ID Planned routine; null = rest.
weekday Int! Monday = 0 … Sunday = 6.

First day of the week in week views.

Value Description
monday Monday
sunday Sunday

A training session, running (finishedAt = null) or finished.

Field Type Description
bodyweight Float Body weight entered at the start, kg.
date Date! Calendar date.
durationMin Int! Minutes trained.
exercises [WorkoutExercise!]! Exercises in order.
finishedAt Timestamp Finish time; null while running.
id ID! Client-generated id.
name String! Name.
notes String Notes about the session.
routineId ID Routine it came from.
skipProgression Boolean! The whole session is left out of progression.
startedAt Timestamp! Start time.

One exercise block within a workout.

Field Type Description
exerciseId ID! Exercise id.
mode SetMode! How it was logged.
note String Today’s note on this exercise.
notePinned Boolean! Keep showing the note in later workouts with this exercise.
sets [WorkoutSet!]! Sets in order.
skipProgression Boolean! Left out of progression.
supersetGroup String Superset group.

Workout screen layout.

Value Description
cards One exercise at a time
list The whole session in one list

One logged set. Weights in kg.

Field Type Description
amrap Boolean! As many reps as possible (Greyskull final set).
done Boolean! Checked off.
durationSec Int Time actually held, or cardio duration.
effort Float Effort rating; null = unrated.
effortScale EffortScale Scale the rating was logged with.
kind SetKind! Work, warm-up, drop set or rest-pause burst.
reps Int Reps (total across both sides for per-side work).
repsLeft Int Left side reps, when logged per side.
repsRight Int Right side reps, when logged per side.
speed Float Cardio speed, km/h.
targetDurationSec Int Target hold.
targetReps Int Target reps.
targetWeight Float Target weight.
weight Float Load (added load for bodyweight).