API reference
Shared workouts
A customer’s workouts on your programmes, readable only while the customer shares them with you.
These operations take an organisation key (wwo_) with the scope each one lists, and work only on that key’s own organisation. Base URL https://api.wristworkout.com. Authentication and keys explains keys and scopes.
A customer’s workouts on your programmes
GET/
Only while the customer shares workouts with you (otherwise 403 with reason not_shared), and only workouts on your own programmes. Newest first.
Path parameters
orgIdstringRequiredThe organisation’s ID. A key works only on its own organisation.
1 to 64 characters.
customerIdstringRequiredThe customer’s ID in your organisation, from the customers list.
1 to 64 characters.
Query parameters
cursorstringnextCursorfrom the previous page.At most 400 characters.
limitintegerPage size, 20 when left out.
1 to 50.
Response 200 · Shared workouts
itemsarray of objectsRequired15 fields in each item
idstringRequiredprogrammeIdstring or nullRequiredprogrammeRevinteger or nullRequiredThe revision of the programme the workout followed.
programmeNamestringRequiredsourcestringRequiredscheduleoverridewristpickerquickmanuallocalDatestringRequiredThe 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.
nextCursorstring or nullRequiredSend it as
cursorfor the next page. Null on the last page.
Errors
404NOT_FOUND | No customer with that ID in the organisation. |
403FORBIDDENnot_shared | The customer does not share workouts with you. |
Errors any call can get: 401, 403, 404, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is a personal key. |
403FORBIDDENplan_required | When API keys need a plan and the organisation has none in good standing. |
404NOT_FOUND | The organisation is not the key’s own. |
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/orgs/org_id/customers/customer_id/sessions \
-H "Authorization: Bearer wwo_your_key"const res = await fetch('https://api.wristworkout.com/v1/orgs/org_id/customers/customer_id/sessions', {
headers: { Authorization: 'Bearer wwo_your_key' },
});
const data = await res.json();One shared workout, station by station
GET/
Stations in the order they were done, with each set’s target and what was done. No heart rate.
Path parameters
orgIdstringRequiredThe organisation’s ID. A key works only on its own organisation.
1 to 64 characters.
customerIdstringRequiredThe customer’s ID in your organisation, from the customers list.
1 to 64 characters.
sessionIdstringRequiredThe workout’s ID.
1 to 40 characters.
Response 200 · The workout
idstringRequiredprogrammeIdstring or nullRequiredprogrammeRevinteger or nullRequiredThe revision of the programme the workout followed.
programmeNamestringRequiredsourcestringRequiredscheduleoverridewristpickerquickmanuallocalDatestringRequiredThe 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.
groupsarray of objectsRequired8 fields in each item
kindstringRequiredsupersetgiantcircuitemomamrapintervalsfirstintegerRequiredsizeintegerRequiredrestBetweenSintegerRequiredrestRoundSintegerRequiredeverySintegercapSintegerworkSintegerSeconds the set was timed for; 0 when it was ended without starting its timer.
stationsarray of objectsRequired16 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.
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 objectsRequired16 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.
detectstringRequiredmanualassistautoauto_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.
Errors
404NOT_FOUND | No such customer, or no such workout on your programmes. |
403FORBIDDENnot_shared | The customer does not share workouts with you. |
Errors any call can get: 401, 403, 404, 422, 429
401UNAUTHENTICATED | The key is missing, unknown, expired or revoked. |
403FORBIDDENinsufficient_scope | The key lacks the scope, or is a personal key. |
403FORBIDDENplan_required | When API keys need a plan and the organisation has none in good standing. |
404NOT_FOUND | The organisation is not the key’s own. |
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/orgs/org_id/customers/customer_id/sessions/session_id \
-H "Authorization: Bearer wwo_your_key"const res = await fetch('https://api.wristworkout.com/v1/orgs/org_id/customers/customer_id/sessions/session_id', {
headers: { Authorization: 'Bearer wwo_your_key' },
});
const data = await res.json();