Skip to content
Developer docsShared workouts

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/v1/orgs/{orgId}/customers/{customerId}/sessions

Only while the customer shares workouts with you (otherwise 403 with reason not_shared), and only workouts on your own programmes. Newest first.

Key
Organisation key, wwo_
Scope
results:read
Plans
Pro and Trainer/Gym. Plans and limits

Path parameters

orgIdstringRequired

The organisation’s ID. A key works only on its own organisation.

1 to 64 characters.

customerIdstringRequired

The customer’s ID in your organisation, from the customers list.

1 to 64 characters.

Query parameters

cursorstring

nextCursor from the previous page.

At most 400 characters.

limitinteger

Page size, 20 when left out.

1 to 50.

Response 200 · Shared workouts

itemsarray of objectsRequired
15 fields in each item
idstringRequired
programmeIdstring or nullRequired
programmeRevinteger or nullRequired

The revision of the programme the workout followed.

programmeNamestringRequired
sourcestringRequired

One ofscheduleoverridewristpickerquickmanual

localDatestringRequired

The training day, YYYY-MM-DD, in the person’s time zone.

unitstringRequired

One ofkglb

startedAtintegerRequired

Unix time in seconds.

endedAtintegerRequired

Unix time in seconds.

activeSintegerRequired

Time not paused, in seconds, rest included.

pausedSintegerRequired

Time paused, in seconds.

statusstringRequired

One ofcompletedpartial

setCountintegerRequired

Sets done in the workout.

volumeKgX100integerRequired

Volume in hundredths of a kilogram: actual reps times external load, over work sets. Bodyweight and time sets add nothing.

defersintegerRequired

Times a machine was marked busy and left for later.

nextCursorstring or nullRequired

Send it as cursor for the next page. Null on the last page.

Errors

404NOT_FOUNDNo customer with that ID in the organisation.
403FORBIDDENnot_sharedThe customer does not share workouts with you.
Errors any call can get: 401, 403, 404, 422, 429
401UNAUTHENTICATEDThe key is missing, unknown, expired or revoked.
403FORBIDDENinsufficient_scopeThe key lacks the scope, or is a personal key.
403FORBIDDENplan_requiredWhen API keys need a plan and the organisation has none in good standing.
404NOT_FOUNDThe organisation is not the key’s own.
403FORBIDDENThe request came from a web page (it has an Origin header). Call the API from your server.
422VALIDATIONA parameter or the body breaks the schema.
429RATE_LIMITEDThe 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/v1/orgs/{orgId}/customers/{customerId}/sessions/{sessionId}

Stations in the order they were done, with each set’s target and what was done. No heart rate.

Key
Organisation key, wwo_
Scope
results:read
Plans
Pro and Trainer/Gym. Plans and limits

Path parameters

orgIdstringRequired

The organisation’s ID. A key works only on its own organisation.

1 to 64 characters.

customerIdstringRequired

The customer’s ID in your organisation, from the customers list.

1 to 64 characters.

sessionIdstringRequired

The workout’s ID.

1 to 40 characters.

Response 200 · The workout

idstringRequired
programmeIdstring or nullRequired
programmeRevinteger or nullRequired

The revision of the programme the workout followed.

programmeNamestringRequired
sourcestringRequired

One ofscheduleoverridewristpickerquickmanual

localDatestringRequired

The training day, YYYY-MM-DD, in the person’s time zone.

unitstringRequired

One ofkglb

startedAtintegerRequired

Unix time in seconds.

endedAtintegerRequired

Unix time in seconds.

activeSintegerRequired

Time not paused, in seconds, rest included.

pausedSintegerRequired

Time paused, in seconds.

statusstringRequired

One ofcompletedpartial

setCountintegerRequired

Sets done in the workout.

volumeKgX100integerRequired

Volume in hundredths of a kilogram: actual reps times external load, over work sets. Bodyweight and time sets add nothing.

defersintegerRequired

Times a machine was marked busy and left for later.

groupsarray of objectsRequired
8 fields in each item
kindstringRequired

One ofsupersetgiantcircuitemomamrapintervals

firstintegerRequired
sizeintegerRequired
restBetweenSintegerRequired
restRoundSintegerRequired
everySinteger
capSinteger
workSinteger

Seconds the set was timed for; 0 when it was ended without starting its timer.

stationsarray of objectsRequired
16 fields in each item
ordintegerRequired
stationIdstringRequired

The station’s ID within its programme, kept across edits.

exerciseIdstringRequired

A built-in exercise (g_…) or one of the owner’s own.

namestringRequired
machineLabelstring or nullRequired

The machine’s short label on the watch.

firstRankinteger or nullRequired
defersintegerRequired

Times a machine was marked busy and left for later.

outcomestringRequired

One ofdonepartialskippeduntouched

groupinteger or nullRequired
modestringRequired

One ofrepstimedistance

changestring or nullRequired

One ofswap_todayswap_forwardswap_kept_todayadded

swappedFromobject or nullRequired
2 fields
exerciseIdstringRequired

A built-in exercise (g_…) or one of the owner’s own.

namestringRequired
laterintegerRequired
setsTotalinteger or nullRequired
skippedSetsarray of integersRequired
setsarray of objectsRequired
16 fields in each item
seqintegerRequired
setIdxintegerRequired
kindstringRequired

One ofworkwarmupdropfailureamraprest_pause

targetintegerRequired

Target reps, or seconds for a time exercise.

targetLoadX100integer or nullRequired

The planned load in hundredths of the unit. Null for no external load.

actualintegerRequired

Reps done, or seconds for a time exercise.

loadX100integer or nullRequired

Load in hundredths of the unit: 16000 is 160 kg or 160 lb. Null for no external load.

originalobjectRequired

What the watch uploaded, kept when the set is corrected.

2 fields
actualintegerRequired

Reps done, or seconds for a time exercise.

loadX100integer or nullRequired

Load in hundredths of the unit: 16000 is 160 kg or 160 lb. Null for no external load.

editedbooleanRequired

The set was corrected after it was uploaded.

startedAtintegerRequired

Unix time in seconds.

workSintegerRequired

Seconds the set was timed for; 0 when it was ended without starting its timer.

restSinteger or nullRequired

Rest after a set, in seconds.

detectstringRequired

One ofmanualassistautoauto_edited

effortintegerRequired
tagsintegerRequired
stepsarray of objectsRequired
2 fields in each item
actualintegerRequired

Reps done, or seconds for a time exercise.

loadX100integer or nullRequired

Load in hundredths of the unit: 16000 is 160 kg or 160 lb. Null for no external load.

Errors

404NOT_FOUNDNo such customer, or no such workout on your programmes.
403FORBIDDENnot_sharedThe customer does not share workouts with you.
Errors any call can get: 401, 403, 404, 422, 429
401UNAUTHENTICATEDThe key is missing, unknown, expired or revoked.
403FORBIDDENinsufficient_scopeThe key lacks the scope, or is a personal key.
403FORBIDDENplan_requiredWhen API keys need a plan and the organisation has none in good standing.
404NOT_FOUNDThe organisation is not the key’s own.
403FORBIDDENThe request came from a web page (it has an Origin header). Call the API from your server.
422VALIDATIONA parameter or the body breaks the schema.
429RATE_LIMITEDThe 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();