API reference
Your data
The read routes a personal key can call: your profile, coaching links, programmes, schedule and workouts.
These operations take a personal key (wwp_) and read only the data of the person who created it. Base URL https://api.wristworkout.com. Authentication and keys explains keys and scopes.
Your profile
GET/
Your own profile. csrfToken is only for the web portal and never comes back to a key.
Response 200 · Your profile (a browser session also gets its CSRF token)
userobjectRequired12 fields
idstringRequireddisplayNamestringRequiredemailstring or nullRequiredunitstringRequiredkglbtzstringRequiredIANA time zone, such as
Pacific/Auckland.dayStartHourintegerRequiredThe hour a training day starts, so a workout after midnight counts for the evening it began.
shareHrbooleanRequireddetectorModestringRequiredserver_defaultoffassistautotraceEnabledbooleanRequiredeffortstringRequiredoffrperireffortLastSetOnlybooleanRequiredprogressionAutobooleanRequired
csrfTokenstring
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/me \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/me', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();Your gyms and trainers, and the programmes they assigned to you
GET/
Your links to gyms and trainers, and the programmes they assigned to you with what each one lets you do.
Response 200 · Links and active assignments
linksarray of objectsRequired6 fields in each item
orgIdstringRequiredorgNamestringRequiredorgKindstringRequiredgym: any number of trainers.solo: an independent trainer, one member.gymsolocoachNamestring or nullRequiredshareResultsbooleanRequiredsinceintegerRequiredUnix time in seconds
assignmentsarray of objectsRequired6 fields in each item
programmeIdstringRequiredorgIdstringRequiredorgNamestringRequiredcustomerCanEditbooleanRequiredcustomerCanCopybooleanRequiredsinceintegerRequiredUnix time in seconds
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/me/coaching \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/me/coaching', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();Your exercises, with the built-in ones
GET/
By name. scope picks your own exercises (mine), the built-in ones (global) or both (all, the default).
Query parameters
cursorstringnextCursorfrom the previous page.At most 400 characters.
limitintegerPage size, 20 when left out.
1 to 50.
qstringText to find in exercise names.
At most 100 characters.
musclestringOnly exercises with this
muscle.At most 40 characters.
rolestringprimaryanyequipmentstringOnly exercises with this
equipment.barbelldumbbellmachineplate_loadedcablebodyweightkettlebellbandotherpatternstringsquathingelungehip_thrusthorizontal_pushvertical_pushhorizontal_pullvertical_pullchest_flyshoulder_raiserear_flyshrugelbow_flexionelbow_extensionwristknee_extensionknee_flexionhip_abductionhip_adductioncalf_raiseback_extensioncore_flexioncore_rotationlateral_flexionanti_extensionanti_rotationcarryolympicjumpthrowconditioningmobilitygearstringbarbellez_bartrap_bardumbbellkettlebellplatesbenchincline_benchracksmith_machinecablemachineplate_loaded_machinepull_up_bardip_stationcaptains_chairhyperextension_benchpreacher_benchglute_ham_developerlandminebandmedicine_ballstability_ballsuspension_trainergymnastic_ringsab_wheelboxsledsandbagbattle_ropejump_ropeweight_beltrowerbiketreadmillski_machinestair_climberellipticalmatfoam_rollerlevelstringbeginnerintermediateadvancedfavouritesstring01gymstringAn ID of 12 letters and digits.
scopestringmine: your own.global: built in.all, the default: both.allmineglobalarchivedstring1includes archived ones.01
Response 200 · Own and global exercises by name
itemsarray of objectsRequired30 fields in each item
idstringRequirednamestringRequiredwatchLabelstringRequiredThe name the watch shows, in plain ASCII.
musclestringRequiredequipmentstringRequiredbarbelldumbbellmachineplate_loadedcablebodyweightkettlebellbandothermodestringRequiredrepstimedistanceloadKindstringRequiredexternalbodyweightbodyweight_plusassistedloadBasisstringRequiredtotalper_handper_sidewriststringRequireddynamicstaticunilateralbooleanRequiredloadStepX100integerRequiredHow much one press changes the load on the watch, in hundredths of the unit.
fitCategoryinteger or nullRequiredfitNameinteger or nullRequiredprimaryMusclesarray of stringsRequiredsecondaryMusclesarray of stringsRequiredpatternstring or nullRequiredsquathingelungehip_thrusthorizontal_pushvertical_pushhorizontal_pullvertical_pullchest_flyshoulder_raiserear_flyshrugelbow_flexionelbow_extensionwristknee_extensionknee_flexionhip_abductionhip_adductioncalf_raiseback_extensioncore_flexioncore_rotationlateral_flexionanti_extensionanti_rotationcarryolympicjumpthrowconditioningmobilitymechanicsstring or nullRequiredcompoundisolationlevelstring or nullRequiredbeginnerintermediateadvancedlateralitystringRequiredbilateralunilateralalternatinggeararray of stringsRequiredaliasesarray of stringsRequiredstepsarray of stringsRequiredcuesarray of stringsRequiredmistakesarray of stringsRequiredwatchCuestring or nullRequiredmediaobject or nullRequired2 fields
stillobjectRequired4 fields
urlstringRequiredwidthintegerRequiredheightintegerRequiredaltstringRequired
loopobject or nullRequired6 fields
urlstringRequiredwidthintegerRequiredheightintegerRequiredaltstringRequireddurationMsintegerRequiredcaptionstringRequired
favouritebooleanRequiredglobalbooleanRequiredarchivedbooleanRequiredupdatedAtintegerRequiredUnix time in seconds.
nextCursorstring or nullRequiredSend it as
cursorfor the next page. Null on the last page.
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/exercises \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/exercises', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();One exercise
GET/
A built-in exercise or one of your own.
Path parameters
idstringRequiredThe exercise’s ID.
1 to 64 characters.
Response 200 · Exercise
idstringRequirednamestringRequiredwatchLabelstringRequiredThe name the watch shows, in plain ASCII.
musclestringRequiredequipmentstringRequiredbarbelldumbbellmachineplate_loadedcablebodyweightkettlebellbandothermodestringRequiredrepstimedistanceloadKindstringRequiredexternalbodyweightbodyweight_plusassistedloadBasisstringRequiredtotalper_handper_sidewriststringRequireddynamicstaticunilateralbooleanRequiredloadStepX100integerRequiredHow much one press changes the load on the watch, in hundredths of the unit.
fitCategoryinteger or nullRequiredfitNameinteger or nullRequiredprimaryMusclesarray of stringsRequiredsecondaryMusclesarray of stringsRequiredpatternstring or nullRequiredsquathingelungehip_thrusthorizontal_pushvertical_pushhorizontal_pullvertical_pullchest_flyshoulder_raiserear_flyshrugelbow_flexionelbow_extensionwristknee_extensionknee_flexionhip_abductionhip_adductioncalf_raiseback_extensioncore_flexioncore_rotationlateral_flexionanti_extensionanti_rotationcarryolympicjumpthrowconditioningmobilitymechanicsstring or nullRequiredcompoundisolationlevelstring or nullRequiredbeginnerintermediateadvancedlateralitystringRequiredbilateralunilateralalternatinggeararray of stringsRequiredaliasesarray of stringsRequiredstepsarray of stringsRequiredcuesarray of stringsRequiredmistakesarray of stringsRequiredwatchCuestring or nullRequiredmediaobject or nullRequired2 fields
stillobjectRequired4 fields
urlstringRequiredwidthintegerRequiredheightintegerRequiredaltstringRequired
loopobject or nullRequired6 fields
urlstringRequiredwidthintegerRequiredheightintegerRequiredaltstringRequireddurationMsintegerRequiredcaptionstringRequired
favouritebooleanRequiredglobalbooleanRequiredarchivedbooleanRequiredupdatedAtintegerRequiredUnix time in seconds.
Errors
404NOT_FOUND | No exercise with that ID that you can see. |
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/exercises/exercise_id \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/exercises/exercise_id', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();favouriteExercise
PUT/
Path parameters
idstringRequiredThe exercise’s ID.
1 to 64 characters.
Response 200 · Marked as a favourite
The same fields as One exercise.
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl -X PUT https://api.wristworkout.com/v1/exercises/exercise_id/favourite \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/exercises/exercise_id/favourite', {
method: 'PUT',
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();unfavouriteExercise
DELETE/
Path parameters
idstringRequiredThe exercise’s ID.
1 to 64 characters.
Response 200 · No longer a favourite
The same fields as One exercise.
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl -X DELETE \
https://api.wristworkout.com/v1/exercises/exercise_id/favourite \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/exercises/exercise_id/favourite', {
method: 'DELETE',
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();Your machines
GET/
Your machines, by name.
Query parameters
cursorstringnextCursorfrom the previous page.At most 400 characters.
limitintegerPage size, 20 when left out.
1 to 50.
archivedstring1includes archived ones.01gymstring1 to 64 characters.
Response 200 · Own machines by name
itemsarray of objectsRequired8 fields in each item
idstringRequirednamestringRequiredlabelstringRequirednotesstring or nullRequiredgymIdstring or nullRequiredexerciseIdsarray of stringsRequiredarchivedbooleanRequiredupdatedAtintegerRequiredUnix time in seconds.
nextCursorstring or nullRequiredSend it as
cursorfor the next page. Null on the last page.
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/machines \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/machines', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();Your programmes, and those assigned to you
GET/
By name. Assigned programmes belong to a gym or trainer; GET /v1/me/coaching says which and what you may do with them.
Query parameters
cursorstringnextCursorfrom the previous page.At most 400 characters.
limitintegerPage size, 20 when left out.
1 to 50.
archivedstring1lists your archived programmes instead of your active ones.01
Response 200 · Programmes by name
itemsarray of objectsRequired9 fields in each item
idstringRequirednamestringRequiredwatchNamestringRequiredThe name the watch shows, in plain ASCII.
revintegerRequiredRevision number. Every save publishes the next one; earlier revisions never change.
stationsintegerRequiredwatchBytesintegerRequiredSize of the plan the watch downloads, in bytes. At most 6,000.
weekdaysarray of integersRequiredupdatedAtintegerRequiredUnix time in seconds.
archivedbooleanRequired
nextCursorstring or nullRequiredSend it as
cursorfor the next page. Null on the last page.
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/programmes \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/programmes', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();A programme at its head revision
GET/
Your own programme, or one a gym or trainer assigned to you.
Path parameters
idstringRequiredThe programme’s ID.
1 to 64 characters.
Response 200 · Head revision
revintegerRequiredRevision number. Every save publishes the next one; earlier revisions never change.
namestringRequiredwatchNamestringRequiredThe name the watch shows, in plain ASCII.
unitstringRequiredkglbnotesstringprogressionobjectProgression: double (repMin, repMax), linear (incrementX100), percentage (pct on each work set) or effort (each work set's effort target); missed reps hold or reduce by reducePct after two in a row; deloadEvery sessions (0 = off) a deload lighter by deloadPct.
8 fields
rulestringRequireddoublelinearpercentageeffortrepMinintegerrepMaxintegerincrementX100integeronMissstringRequiredholdreducereducePctintegerRequireddeloadEveryintegerRequireddeloadPctintegerRequired
stationsarray of objectsRequired19 fields in each item
stationIdstringRequiredThe station’s ID within its programme, kept across edits.
exerciseIdstringRequiredA built-in exercise (
g_…) or one of the owner’s own.machineIdstringOne of the owner’s machines. Left out when there is none.
namestringRequiredwatchLabelstringRequiredThe name the watch shows, in plain ASCII.
machineLabelstringThe machine’s short label on the watch.
modestringRequiredrepstimedistancewriststringRequireddynamicstaticunilateralbooleanRequiredloadKindstringRequiredexternalbodyweightbodyweight_plusassistedloadBasisstringRequiredtotalper_handper_sideloadStepX100integerRequiredHow much one press changes the load on the watch, in hundredths of the unit.
fitCategoryintegerfitNameintegersetsarray of objectsRequired6 fields in each item
kindstringRequiredworkwarmupdropfailureamraprest_pausetargetintegerRequiredTarget reps, or seconds for a time exercise.
loadX100integer or nullRequiredLoad in hundredths of the unit:
16000is 160 kg or 160 lb. Null for no external load.effortintegerstepsarray of integerspctinteger
restSintegerRequiredRest after a set, in seconds.
restHrintegerRest can end early once heart rate falls to this many beats per minute. Left out when not set.
notestringprogressionobject or stringProgression: double (repMin, repMax), linear (incrementX100), percentage (pct on each work set) or effort (each work set's effort target); missed reps hold or reduce by reducePct after two in a row; deloadEvery sessions (0 = off) a deload lighter by deloadPct.
none
groupsarray of objects8 fields in each item
kindstringRequiredsupersetgiantcircuitemomamrapintervalsfirstintegerRequiredsizeintegerRequiredrestBetweenSintegerRequiredrestRoundSintegerRequiredeverySintegercapSintegerworkSintegerSeconds the set was timed for; 0 when it was ended without starting its timer.
idstringRequiredwatchBytesintegerRequiredSize of the plan the watch downloads, in bytes. At most 6,000.
updatedAtintegerRequiredUnix time in seconds.
archivedbooleanRequired
Errors
404NOT_FOUND | No programme with that ID that you own or have assigned. |
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/programmes/programme_id \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/programmes/programme_id', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();A programme at an earlier revision
GET/
Earlier revisions never change.
Path parameters
idstringRequiredThe programme’s ID.
1 to 64 characters.
revintegerRequiredA revision number, from 1.
At least 1.
Response 200 · Immutable snapshot
The same fields as A programme at its head revision.
Errors
404NOT_FOUND | No such programme, or no such revision. |
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/programmes/programme_id/revisions/2 \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/programmes/programme_id/revisions/2', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();Programme templates
GET/
Well-known plan shapes at three levels, built from global exercises. Each day becomes a programme when the template is used.
Response 200 · Every template
itemsarray of objectsRequired7 fields in each item
idstringRequirednamestringRequiredsummarystringRequiredshapestringRequiredfull_bodyupper_lowerppllevelstringRequiredbeginnerintermediateadvanceddaysPerWeekintegerRequireddaysarray of objectsRequired2 fields in each item
namestringRequiredstationsarray of objectsRequired6 fields in each item
exerciseIdstringRequiredA built-in exercise (
g_…) or one of the owner’s own.setsintegerRequiredtargetintegerRequiredTarget reps, or seconds for a time exercise.
restSintegerRequiredRest after a set, in seconds.
namestringRequiredmodestringRequiredrepstime
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/templates \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/templates', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();Your weekly schedule and changed days
GET/
Your weekly slots and the days you changed, from today to 89 days ahead.
Response 200 · The weekly schedule, the changed days of the next 90 days, and `calendarRev`
slotsarray of objectsRequired2 fields in each item
isoDowintegerRequiredISO weekday: 1 is Monday, 7 is Sunday.
programmeIdstringRequired
overridesarray of objectsRequired2 fields in each item
datestringRequiredprogrammeIdstring or nullRequired
calendarRevintegerRequiredChanges whenever the schedule changes.
windowobjectRequired2 fields
fromstringRequiredtostringRequired
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/schedule \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/schedule', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();Today and the next 7 days
GET/
What each day resolves to: a changed day first, then the weekly slot, then nothing.
Response 200 · Today and the next 7 days: a changed day first, then the weekly schedule, else nothing planned
tzstringRequiredIANA time zone, such as
Pacific/Auckland.dayStartHourintegerRequiredThe hour a training day starts, so a workout after midnight counts for the evening it began.
daysarray of objectsRequired7 fields in each item
datestringRequiredstartUtcintegerRequiredStart of the day, Unix time in seconds (inclusive).
endUtcintegerRequiredEnd of the day, Unix time in seconds (exclusive).
sourcestringRequiredoverrideplanschedulenonerestbooleanRequiredprogrammeobject or nullRequired3 fields
idstringRequirednamestringRequiredrevintegerRequiredRevision number. Every save publishes the next one; earlier revisions never change.
planobject or nullRequired5 fields
idstringRequirednamestringRequiredweekintegerRequiredweeksintegerRequiredkindstringRequirednormaldeloadtest
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/today \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/today', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();Your workouts, newest first
GET/
Your recorded workouts, newest first.
Query parameters
cursorstringnextCursorfrom the previous page.At most 400 characters.
limitintegerPage size, 20 when left out.
1 to 50.
Response 200 · Workouts, the most recent first
itemsarray of objectsRequired20 fields in each item
idstringRequiredprogrammeIdstring or nullRequiredprogrammeRevinteger or nullRequiredThe revision of the programme the workout followed.
programmeNamestringRequiredsourcestringRequiredscheduleoverridewristpickerquickmanualnotestring or nullRequiredlocalDatestringRequiredThe training day,
YYYY-MM-DD, in the person’s time zone.unitstringRequiredkglbstartedAtintegerRequiredUnix time in seconds.
endedAtintegerRequiredUnix time in seconds.
activeSintegerRequiredTime not paused, in seconds, rest included.
pausedSintegerRequiredTime paused, in seconds.
statusstringRequiredcompletedpartialsetCountintegerRequiredSets done in the workout.
volumeKgX100integerRequiredVolume in hundredths of a kilogram: actual reps times external load, over work sets. Bodyweight and time sets add nothing.
defersintegerRequiredTimes a machine was marked busy and left for later.
hrobject or nullRequiredLowest, average and highest heart rate, in beats per minute. Null unless heart-rate sharing was on.
3 fields
mininteger or nullRequiredavginteger or nullRequiredmaxinteger or nullRequired
kcalinteger or nullRequiredThe watch’s calorie estimate.
nativeFitSavedbooleanRequiredThe watch also saved its own copy: a strength activity in Garmin Connect, or a workout in Apple Health. Always false on Wear OS, which keeps none.
recordedOnstringRequiredWhat recorded the session: a paired watch, the phone app, the web gym app in a browser, or
manual: added by hand afterwards.watchphonewebmanual
nextCursorstring or nullRequiredSend it as
cursorfor the next page. Null on the last page.
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/sessions \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/sessions', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();One workout, station by station
GET/
Stations in the order you did them, with each set’s target, what you did, and any corrections.
Path parameters
idstringRequiredThe workout’s ID.
At most 40 characters.
Response 200 · The workout: stations in the order they were done, each set with its target and what was done
idstringRequiredprogrammeIdstring or nullRequiredprogrammeRevinteger or nullRequiredThe revision of the programme the workout followed.
programmeNamestringRequiredsourcestringRequiredscheduleoverridewristpickerquickmanualnotestring or nullRequiredlocalDatestringRequiredThe training day,
YYYY-MM-DD, in the person’s time zone.unitstringRequiredkglbstartedAtintegerRequiredUnix time in seconds.
endedAtintegerRequiredUnix time in seconds.
activeSintegerRequiredTime not paused, in seconds, rest included.
pausedSintegerRequiredTime paused, in seconds.
statusstringRequiredcompletedpartialsetCountintegerRequiredSets done in the workout.
volumeKgX100integerRequiredVolume in hundredths of a kilogram: actual reps times external load, over work sets. Bodyweight and time sets add nothing.
defersintegerRequiredTimes a machine was marked busy and left for later.
hrobject or nullRequiredLowest, average and highest heart rate, in beats per minute. Null unless heart-rate sharing was on.
3 fields
mininteger or nullRequiredavginteger or nullRequiredmaxinteger or nullRequired
kcalinteger or nullRequiredThe watch’s calorie estimate.
nativeFitSavedbooleanRequiredThe watch also saved its own copy: a strength activity in Garmin Connect, or a workout in Apple Health. Always false on Wear OS, which keeps none.
recordedOnstringRequiredWhat recorded the session: a paired watch, the phone app, the web gym app in a browser, or
manual: added by hand afterwards.watchphonewebmanualgroupsarray of objectsRequired8 fields in each item
kindstringRequiredsupersetgiantcircuitemomamrapintervalsfirstintegerRequiredsizeintegerRequiredrestBetweenSintegerRequiredrestRoundSintegerRequiredeverySintegercapSintegerworkSintegerSeconds the set was timed for; 0 when it was ended without starting its timer.
stationsarray of objectsRequired17 fields in each item
ordintegerRequiredstationIdstringRequiredThe station’s ID within its programme, kept across edits.
exerciseIdstringRequiredA built-in exercise (
g_…) or one of the owner’s own.namestringRequiredmachineLabelstring or nullRequiredThe machine’s short label on the watch.
machineIdstring or nullRequiredOne of the owner’s machines. Left out when there is none.
firstRankinteger or nullRequireddefersintegerRequiredTimes a machine was marked busy and left for later.
outcomestringRequireddonepartialskippeduntouchedgroupinteger or nullRequiredmodestringRequiredrepstimedistancechangestring or nullRequiredswap_todayswap_forwardswap_kept_todayaddedswappedFromobject or nullRequired2 fields
exerciseIdstringRequiredA built-in exercise (
g_…) or one of the owner’s own.namestringRequired
laterintegerRequiredsetsTotalinteger or nullRequiredskippedSetsarray of integersRequiredsetsarray of objectsRequired19 fields in each item
seqintegerRequiredsetIdxintegerRequiredkindstringRequiredworkwarmupdropfailureamraprest_pausetargetintegerRequiredTarget reps, or seconds for a time exercise.
targetLoadX100integer or nullRequiredThe planned load in hundredths of the unit. Null for no external load.
actualintegerRequiredReps done, or seconds for a time exercise.
loadX100integer or nullRequiredLoad in hundredths of the unit:
16000is 160 kg or 160 lb. Null for no external load.originalobjectRequiredWhat the watch uploaded, kept when the set is corrected.
2 fields
actualintegerRequiredReps done, or seconds for a time exercise.
loadX100integer or nullRequiredLoad in hundredths of the unit:
16000is 160 kg or 160 lb. Null for no external load.
editedbooleanRequiredThe set was corrected after it was uploaded.
startedAtintegerRequiredUnix time in seconds.
workSintegerRequiredSeconds the set was timed for; 0 when it was ended without starting its timer.
restSinteger or nullRequiredRest after a set, in seconds.
hrPeakinteger or nullRequiredhrEndinteger or nullRequireddetectstringRequiredmanualassistautoauto_editedeffortintegerRequiredtagsintegerRequiredstepsarray of objectsRequired2 fields in each item
actualintegerRequiredReps done, or seconds for a time exercise.
loadX100integer or nullRequiredLoad in hundredths of the unit:
16000is 160 kg or 160 lb. Null for no external load.
notestring or nullRequired
Errors
404NOT_FOUND | No workout with that ID. |
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/sessions/session_id \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/sessions/session_id', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();Progress on one exercise
GET/
One point per workout: the best set’s load, an estimated one-rep maximum (Epley, sets of 12 reps or fewer) and the volume.
Path parameters
idstringRequiredThe exercise’s ID.
At most 64 characters.
Query parameters
limitintegerHow many workouts, 100 when left out.
1 to 200.
Response 200 · Per session: best set load, estimated 1RM (Epley, reps ≤ 12), volume
exerciseIdstringRequiredA built-in exercise (
g_…) or one of the owner’s own.pointsarray of objectsRequired8 fields in each item
sessionIdstringRequiredlocalDatestringRequiredThe training day,
YYYY-MM-DD, in the person’s time zone.endedAtintegerRequiredUnix time in seconds.
unitstringRequiredkglbbestLoadX100integer or nullRequiredThe heaviest set’s load, in hundredths of the unit.
e1rmX100integer or nullRequiredEstimated one-rep maximum, in hundredths of the unit.
volumeKgX100integerRequiredVolume in hundredths of a kilogram: actual reps times external load, over work sets. Bodyweight and time sets add nothing.
addedByHandbooleanRequired
Errors
Errors any call can get: 401, 403, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is an organisation key. |
403FORBIDDEN | The request came from a web page (it has an Origin header). Call the API from your server. |
422VALIDATION | A parameter or the body breaks the schema. |
429RATE_LIMITED | The key is over its limit for this minute, or over the service-wide 120 requests a minute (then with Retry-After: 60 and no RateLimit headers). |
Example
curl https://api.wristworkout.com/v1/exercises/exercise_id/progress \
-H "Authorization: Bearer wwp_your_key"const res = await fetch('https://api.wristworkout.com/v1/exercises/exercise_id/progress', {
headers: { Authorization: 'Bearer wwp_your_key' },
});
const data = await res.json();