cURL
curl -X GET "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/template/{templateId}/weeks" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/template/{templateId}/weeks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/template/{templateId}/weeks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"templateId": "67f1234567890abcdef1234",
"templateName": "12-week block",
"scheduleMode": "multi_week",
"totalWeeks": 12,
"weeks": [
{
"weekNumber": 1,
"isSkipWeek": false,
"summary": {
"totalDays": 6,
"workouts": 5,
"activities": 7,
"restDays": 1,
"totalTimeMinutes": 240
},
"days": [
{
"weekday": 1,
"isRestDay": false,
"isSkipDay": false,
"itemCount": 3,
"workoutCount": 2,
"activityCount": 1,
"items": [
{
"_id": "67f1234567890abcdef1234",
"type": "workout",
"order": 1,
"name": "Peak Performance",
"planMomentId": "67f1234567890abcdef1234",
"activityType": null,
"targetDistanceMeters": null,
"startTime": "",
"plannedDurationMinutes": 60
}
]
}
]
}
]
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}Programme weeks
List every week of the client's own multi-week programme (reorder screen)
Returns every week of the target client’s assigned, non-archived multi-week plan, with day, workout, activity, and rest-day counts and named schedule items. Workout items include planMomentId. Only authored days are included, including rest days with isRestDay: true and no items. Full workout exercises are available from the per-week template detail endpoint.
Requires the workout_client_plans:read scope and the corresponding Workout features and permissions.
The clientId path parameter identifies a client in the company bound to the Public API token.
GET
/
public
/
v1
/
workout
/
clients
/
{clientId}
/
plans
/
template
/
{templateId}
/
weeks
cURL
curl -X GET "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/template/{templateId}/weeks" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/template/{templateId}/weeks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/template/{templateId}/weeks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"templateId": "67f1234567890abcdef1234",
"templateName": "12-week block",
"scheduleMode": "multi_week",
"totalWeeks": 12,
"weeks": [
{
"weekNumber": 1,
"isSkipWeek": false,
"summary": {
"totalDays": 6,
"workouts": 5,
"activities": 7,
"restDays": 1,
"totalTimeMinutes": 240
},
"days": [
{
"weekday": 1,
"isRestDay": false,
"isSkipDay": false,
"itemCount": 3,
"workoutCount": 2,
"activityCount": 1,
"items": [
{
"_id": "67f1234567890abcdef1234",
"type": "workout",
"order": 1,
"name": "Peak Performance",
"planMomentId": "67f1234567890abcdef1234",
"activityType": null,
"targetDistanceMeters": null,
"startTime": "",
"plannedDurationMinutes": 60
}
]
}
]
}
]
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}