curl -X GET "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/library/template/{templateId}/week/{weekNumber}" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/library/template/{templateId}/week/{weekNumber}', 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}/library/template/{templateId}/week/{weekNumber}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"templateId": "67f1234567890abcdef1234",
"templateName": "4-Day Strength Block",
"templateDescription": "Progressive upper/lower split.",
"isTemplateFavourite": false,
"weekNumber": 1,
"isSkipWeek": false,
"totalWeeks": 6,
"summary": {
"weekNumber": 1,
"dayCount": 4,
"workoutCount": 5,
"activityCount": 7,
"restDayCount": 2,
"totalTimeMinutes": 150,
"totalTimeSeconds": 9000
},
"days": [
{
"weekday": 4,
"isRestDay": false,
"isSkipDay": false,
"itemCount": 2,
"items": [
{
"_id": "67f1234567890abcdef1234",
"type": "workout",
"order": 1,
"startTime": "",
"plannedDurationMinutes": null,
"estimatedDurationMinutes": 42,
"name": "Dumbell Bench Press",
"description": "A classic compound movement.",
"planMomentId": "67f1234567890abcdef1234",
"exerciseCount": 5,
"totalSets": 20,
"exercises": [
{
"_id": "67f1234567890abcdef1234",
"exerciseId": "67f1234567890abcdef1234",
"name": "Barbell Squat",
"description": "A compound lower-body movement.",
"thumbnail": "https://cdn.example.com/exercises/barbell-squat.jpg",
"primaryMuscle": "Quadriceps",
"secondaryMuscles": [
"Glutes",
"Hamstrings"
],
"equipment": [
"Barbell",
"Rack"
],
"category": "Strength",
"primaryCategory": "Strength",
"secondaryCategories": [
"Push"
],
"type": "reps",
"sets": 4,
"minReps": 6,
"maxReps": 10,
"metric": "",
"rest": 90,
"intensity": "Medium",
"difficulty": "Intermediate",
"notes": "",
"groupId": "",
"rpe": 0,
"rpeEnabled": true,
"rmPercentage": 0,
"tempo": "3010",
"order": 0,
"isFavourite": false
}
],
"activityType": null,
"targetDistanceMeters": null
}
]
}
]
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}{
"error": {
"code": 400,
"key": "request.invalid",
"message": "The request is invalid."
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}{
"error": {
"code": 404,
"key": "resource.not_found",
"message": "The requested Public API resource was not found."
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}{
"error": {
"code": 500,
"key": "server.internal_error",
"message": "An unexpected Public API server error occurred."
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}Get one week of a multi-week plan
Client-only. The screen reached by tapping a week card on the template detail. Returns the week’s days in weekday order; each day carries its scheduled items[], and a type: "workout" item carries the full exercises[] array in the SAME shape GET .../template/{templateId}/day/{planMomentId} returns — both are built by one shared helper — so the day sheet renders without a second call per workout.
Multi-week only. A recurring plan has no weeks to open and is rejected with WORKOUTPLAN_SCHEDULE_NOT_MULTI_WEEK; render it from the template detail’s days instead.
Only AUTHORED days are returned. schedule.weeks[].days[] is stored sparsely, so a weekday with nothing on it has no entry at all. A REST day IS authored (isRestDay: true, no items) and is returned, because the screen renders it as its own card.
Requires the workout_client_plans:read scope. This operation maps to /app/v1/workout/client/library/template/:templateId/week/:weekNumber and retains its Workout V2 permission, feature-flag, and resource-scope checks.
The clientId path parameter identifies the client represented by the request context.
curl -X GET "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/library/template/{templateId}/week/{weekNumber}" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/library/template/{templateId}/week/{weekNumber}', 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}/library/template/{templateId}/week/{weekNumber}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"templateId": "67f1234567890abcdef1234",
"templateName": "4-Day Strength Block",
"templateDescription": "Progressive upper/lower split.",
"isTemplateFavourite": false,
"weekNumber": 1,
"isSkipWeek": false,
"totalWeeks": 6,
"summary": {
"weekNumber": 1,
"dayCount": 4,
"workoutCount": 5,
"activityCount": 7,
"restDayCount": 2,
"totalTimeMinutes": 150,
"totalTimeSeconds": 9000
},
"days": [
{
"weekday": 4,
"isRestDay": false,
"isSkipDay": false,
"itemCount": 2,
"items": [
{
"_id": "67f1234567890abcdef1234",
"type": "workout",
"order": 1,
"startTime": "",
"plannedDurationMinutes": null,
"estimatedDurationMinutes": 42,
"name": "Dumbell Bench Press",
"description": "A classic compound movement.",
"planMomentId": "67f1234567890abcdef1234",
"exerciseCount": 5,
"totalSets": 20,
"exercises": [
{
"_id": "67f1234567890abcdef1234",
"exerciseId": "67f1234567890abcdef1234",
"name": "Barbell Squat",
"description": "A compound lower-body movement.",
"thumbnail": "https://cdn.example.com/exercises/barbell-squat.jpg",
"primaryMuscle": "Quadriceps",
"secondaryMuscles": [
"Glutes",
"Hamstrings"
],
"equipment": [
"Barbell",
"Rack"
],
"category": "Strength",
"primaryCategory": "Strength",
"secondaryCategories": [
"Push"
],
"type": "reps",
"sets": 4,
"minReps": 6,
"maxReps": 10,
"metric": "",
"rest": 90,
"intensity": "Medium",
"difficulty": "Intermediate",
"notes": "",
"groupId": "",
"rpe": 0,
"rpeEnabled": true,
"rmPercentage": 0,
"tempo": "3010",
"order": 0,
"isFavourite": false
}
],
"activityType": null,
"targetDistanceMeters": null
}
]
}
]
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}{
"error": {
"code": 400,
"key": "request.invalid",
"message": "The request is invalid."
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}{
"error": {
"code": 404,
"key": "resource.not_found",
"message": "The requested Public API resource was not found."
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}{
"error": {
"code": 500,
"key": "server.internal_error",
"message": "An unexpected Public API server error occurred."
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}Authorizations
Public API access token issued by /public/v1/oauth/token. Example: Authorization: Bearer fspt_.... Each resource request rechecks the token company's current provider access. Disabling access blocks existing tokens with 403 auth.provider_unavailable.
Path Parameters
Workout template plan id.
"67f1234567890abcdef1234"
The 1-based week of the multi-week schedule.
x >= 11
Client in the company bound to the Public API token.
^[a-fA-F0-9]{24}$