curl -X POST "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/history" \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: <stable_request_key>" \
-H "Content-Type: application/json" \
-d '{}'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
tab: 'statistics',
clientId: '67f1234567890abcdef9999',
statsRange: 'last7days',
muscleBalanceRange: 'last30days'
})
};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/history', 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/history"
payload = {
"tab": "statistics",
"clientId": "67f1234567890abcdef9999",
"statsRange": "last7days",
"muscleBalanceRange": "last30days"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"tab": "feed",
"plans": [
{
"_id": "67f1234567890abcdef1234",
"name": "Weekly Strength Program",
"averageRating": 3.2,
"totalDays": 4,
"completedAt": "2026-04-12T10:00:00.000Z",
"days": [
{
"planMomentId": "67f1234567890abcdef1234",
"sessionId": "67f1234567890abcdef1234",
"name": "Day 1: Dumbbell Bench Press",
"description": "",
"date": "2026-04-12T10:00:00.000Z",
"durationMinutes": 50,
"totalVolume": 207,
"totalReps": 60,
"totalTimeSeconds": 0,
"totalDistanceMeters": 0,
"rating": 4,
"emojiRating": 4,
"emoji": "💪",
"exerciseCount": 6,
"scoring": {
"scoringType": "forTime",
"descriptionOnly": true,
"acceptsManualResult": true,
"targetValue": null,
"timeDomain": {
"windowSeconds": null,
"timeCapSeconds": 900,
"rounds": 3,
"intervalSeconds": null,
"intervalCount": null,
"workSeconds": null,
"restSeconds": null
},
"scoreValidation": {
"timeCapSeconds": 900,
"maxReps": null,
"expectedIntervals": null
},
"result": {
"roundsCompleted": 5,
"repsPerRound": 30,
"extraReps": 12,
"totalReps": 162,
"intervalReps": [
12,
11,
10
],
"elapsedSeconds": 742,
"finishedBeforeCap": true,
"timeCapSeconds": 900,
"maxLoadKg": 120
}
},
"exercises": [
{
"type": "exercise",
"planExerciseId": "67f1234567890abcdef1234",
"exerciseId": "67f1234567890abcdef1234",
"name": "Dumbbell Bench Press",
"description": "Example description",
"thumbnail": "https://cdn.example.com/exercises/bench.jpg",
"primaryMuscle": "chest",
"secondaryMuscles": [
"string"
],
"equipment": [
"string"
],
"groupId": "",
"order": 0,
"isFavourite": false,
"isPersonalRecord": true,
"prVerified": true,
"prRank": 1,
"targets": {
"type": "string",
"sets": 1,
"reps": "string",
"rest": 1,
"rpe": 1,
"rmPercentage": 1,
"tempo": "string",
"notes": "string"
},
"previousBestSet": {
"reps": 1,
"weight": 1,
"timeSeconds": 1,
"distanceMeters": 1,
"rpe": 1,
"setNumber": 1
},
"performanceId": "67f1234567890abcdef1234",
"isCompleted": true,
"notes": "",
"clientNotes": "Felt strong today.",
"clientRestSeconds": 90,
"sets": [
{
"setNumber": 1,
"setType": "N",
"previous": {
"reps": 1,
"weight": 1,
"timeSeconds": 1,
"distanceMeters": 1,
"rpe": 1
},
"reps": 15,
"weight": 20,
"timeSeconds": 1,
"distanceMeters": 1,
"restSeconds": 60,
"rpe": 1,
"completed": true,
"isPersonalRecord": false,
"prVerified": false,
"prRank": 1,
"repsPlaceholderCoach": 10,
"weightPlaceholderCoach": 40,
"timeSecondsPlaceholderCoach": null,
"distanceMetersPlaceholderCoach": null,
"rpePlaceholderCoach": 7,
"restSecondsPlaceholderCoach": 90,
"repsPlaceholder": 10,
"weightPlaceholder": 40,
"timeSecondsPlaceholder": null,
"distanceMetersPlaceholder": null,
"rpePlaceholder": 7,
"restSecondsPlaceholder": 90,
"repsActual": 30,
"weightActual": 42,
"timeSecondsActual": null,
"distanceMetersActual": null,
"rpeActual": 8,
"restSecondsActual": 90
}
],
"exerciseCount": 2,
"rounds": 3,
"data": [
{
"id": "67f1234567890abcdef1234",
"name": "Barbell Bench Press",
"primaryMuscle": "Chest",
"secondaryMuscles": [
"Chest"
],
"primaryJoint": "Shoulder",
"equipment": [
"Dumbbells"
],
"difficulty": "Intermediate",
"intensity": "Above Average",
"visibility": "Company",
"tags": [
"string"
],
"thumbnail": "https://cdn.example.com/exercises/bench-thumb.jpg"
}
]
}
]
}
]
}
],
"pagination": {
"page": 1,
"limit": 10,
"totalItems": 12,
"totalPages": 2,
"totalAvailableItems": 1
},
"cards": {
"totalWorkouts": 18,
"totalSets": 56,
"totalReps": 87,
"averageDurationMinutes": 180
},
"chart": {
"granularity": "day",
"range": {
"startDate": "2026-04-12T10:00:00.000Z",
"endDate": "2026-04-12T10:00:00.000Z"
},
"points": [
{
"label": "2026-05-24",
"volume": 1820,
"reps": 240,
"durationMinutes": 95
}
]
},
"muscleActivation": {
"range": {
"startDate": "2026-04-12T10:00:00.000Z",
"endDate": "2026-04-12T10:00:00.000Z",
"days": 7
},
"raw": {
"chest": 120,
"quads": 80,
"back": 60
},
"maxValue": 120
},
"muscleBalance": [
{
"muscle": "Chest",
"sets": 12,
"value": 12,
"normalized": 1,
"percentage": 18
}
],
"muscleBreakdown": [
{
"muscle": "Shoulders",
"sets": 12,
"value": 12,
"percentage": 18
}
],
"recentPRs": [
{
"exerciseId": "67f1234567890abcdef1234",
"name": "Dumbbell Bench Press",
"thumbnail": "https://cdn.example.com/exercises/bench.jpg",
"value": 54,
"unit": "kg",
"type": "weight",
"achievedAt": "2026-04-12T10:00:00.000Z"
}
],
"topExercises": [
{
"exerciseId": "67f1234567890abcdef1234",
"name": "Fat Burn Program",
"thumbnail": "https://cdn.example.com/exercises/fatburn.jpg",
"timesPerformed": 12
}
],
"selectedRanges": {
"stats": "last7days",
"muscleBalance": "last30days"
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
},
"idempotency": {
"replayed": false
}
}
}Client training-plan History page (Feed + Statistics tabs)
Returns the client training-plan History page. Branches on tab:
feed(default) — paginated list of plans with completed training. A plan surfaces as soon as ≥1 of its days has a completed session (partial completion); the card’sdays[]contains only the completed days andtotalDays= the completed-day count. Returns an emptyplans[]when the client has no completed plan days.statistics— stat cards, a volume/duration/reps time-series chart, a fixed 7-day muscle activation heatmap, a muscle balance radar, a muscle breakdown list, recent personal records, and top exercises.
The target client is identified by clientId. PRs and top exercises are computed all-time; the other statistics respect their range selectors.
Read collections default to 10 records. limit accepts 1 through 100; larger values use 100. Continue with page using the returned pagination metadata. Owned collections have no page ceiling.
Requires the workout_progress: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.
curl -X POST "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/history" \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: <stable_request_key>" \
-H "Content-Type: application/json" \
-d '{}'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
tab: 'statistics',
clientId: '67f1234567890abcdef9999',
statsRange: 'last7days',
muscleBalanceRange: 'last30days'
})
};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/history', 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/history"
payload = {
"tab": "statistics",
"clientId": "67f1234567890abcdef9999",
"statsRange": "last7days",
"muscleBalanceRange": "last30days"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"tab": "feed",
"plans": [
{
"_id": "67f1234567890abcdef1234",
"name": "Weekly Strength Program",
"averageRating": 3.2,
"totalDays": 4,
"completedAt": "2026-04-12T10:00:00.000Z",
"days": [
{
"planMomentId": "67f1234567890abcdef1234",
"sessionId": "67f1234567890abcdef1234",
"name": "Day 1: Dumbbell Bench Press",
"description": "",
"date": "2026-04-12T10:00:00.000Z",
"durationMinutes": 50,
"totalVolume": 207,
"totalReps": 60,
"totalTimeSeconds": 0,
"totalDistanceMeters": 0,
"rating": 4,
"emojiRating": 4,
"emoji": "💪",
"exerciseCount": 6,
"scoring": {
"scoringType": "forTime",
"descriptionOnly": true,
"acceptsManualResult": true,
"targetValue": null,
"timeDomain": {
"windowSeconds": null,
"timeCapSeconds": 900,
"rounds": 3,
"intervalSeconds": null,
"intervalCount": null,
"workSeconds": null,
"restSeconds": null
},
"scoreValidation": {
"timeCapSeconds": 900,
"maxReps": null,
"expectedIntervals": null
},
"result": {
"roundsCompleted": 5,
"repsPerRound": 30,
"extraReps": 12,
"totalReps": 162,
"intervalReps": [
12,
11,
10
],
"elapsedSeconds": 742,
"finishedBeforeCap": true,
"timeCapSeconds": 900,
"maxLoadKg": 120
}
},
"exercises": [
{
"type": "exercise",
"planExerciseId": "67f1234567890abcdef1234",
"exerciseId": "67f1234567890abcdef1234",
"name": "Dumbbell Bench Press",
"description": "Example description",
"thumbnail": "https://cdn.example.com/exercises/bench.jpg",
"primaryMuscle": "chest",
"secondaryMuscles": [
"string"
],
"equipment": [
"string"
],
"groupId": "",
"order": 0,
"isFavourite": false,
"isPersonalRecord": true,
"prVerified": true,
"prRank": 1,
"targets": {
"type": "string",
"sets": 1,
"reps": "string",
"rest": 1,
"rpe": 1,
"rmPercentage": 1,
"tempo": "string",
"notes": "string"
},
"previousBestSet": {
"reps": 1,
"weight": 1,
"timeSeconds": 1,
"distanceMeters": 1,
"rpe": 1,
"setNumber": 1
},
"performanceId": "67f1234567890abcdef1234",
"isCompleted": true,
"notes": "",
"clientNotes": "Felt strong today.",
"clientRestSeconds": 90,
"sets": [
{
"setNumber": 1,
"setType": "N",
"previous": {
"reps": 1,
"weight": 1,
"timeSeconds": 1,
"distanceMeters": 1,
"rpe": 1
},
"reps": 15,
"weight": 20,
"timeSeconds": 1,
"distanceMeters": 1,
"restSeconds": 60,
"rpe": 1,
"completed": true,
"isPersonalRecord": false,
"prVerified": false,
"prRank": 1,
"repsPlaceholderCoach": 10,
"weightPlaceholderCoach": 40,
"timeSecondsPlaceholderCoach": null,
"distanceMetersPlaceholderCoach": null,
"rpePlaceholderCoach": 7,
"restSecondsPlaceholderCoach": 90,
"repsPlaceholder": 10,
"weightPlaceholder": 40,
"timeSecondsPlaceholder": null,
"distanceMetersPlaceholder": null,
"rpePlaceholder": 7,
"restSecondsPlaceholder": 90,
"repsActual": 30,
"weightActual": 42,
"timeSecondsActual": null,
"distanceMetersActual": null,
"rpeActual": 8,
"restSecondsActual": 90
}
],
"exerciseCount": 2,
"rounds": 3,
"data": [
{
"id": "67f1234567890abcdef1234",
"name": "Barbell Bench Press",
"primaryMuscle": "Chest",
"secondaryMuscles": [
"Chest"
],
"primaryJoint": "Shoulder",
"equipment": [
"Dumbbells"
],
"difficulty": "Intermediate",
"intensity": "Above Average",
"visibility": "Company",
"tags": [
"string"
],
"thumbnail": "https://cdn.example.com/exercises/bench-thumb.jpg"
}
]
}
]
}
]
}
],
"pagination": {
"page": 1,
"limit": 10,
"totalItems": 12,
"totalPages": 2,
"totalAvailableItems": 1
},
"cards": {
"totalWorkouts": 18,
"totalSets": 56,
"totalReps": 87,
"averageDurationMinutes": 180
},
"chart": {
"granularity": "day",
"range": {
"startDate": "2026-04-12T10:00:00.000Z",
"endDate": "2026-04-12T10:00:00.000Z"
},
"points": [
{
"label": "2026-05-24",
"volume": 1820,
"reps": 240,
"durationMinutes": 95
}
]
},
"muscleActivation": {
"range": {
"startDate": "2026-04-12T10:00:00.000Z",
"endDate": "2026-04-12T10:00:00.000Z",
"days": 7
},
"raw": {
"chest": 120,
"quads": 80,
"back": 60
},
"maxValue": 120
},
"muscleBalance": [
{
"muscle": "Chest",
"sets": 12,
"value": 12,
"normalized": 1,
"percentage": 18
}
],
"muscleBreakdown": [
{
"muscle": "Shoulders",
"sets": 12,
"value": 12,
"percentage": 18
}
],
"recentPRs": [
{
"exerciseId": "67f1234567890abcdef1234",
"name": "Dumbbell Bench Press",
"thumbnail": "https://cdn.example.com/exercises/bench.jpg",
"value": 54,
"unit": "kg",
"type": "weight",
"achievedAt": "2026-04-12T10:00:00.000Z"
}
],
"topExercises": [
{
"exerciseId": "67f1234567890abcdef1234",
"name": "Fat Burn Program",
"thumbnail": "https://cdn.example.com/exercises/fatburn.jpg",
"timesPerformed": 12
}
],
"selectedRanges": {
"stats": "last7days",
"muscleBalance": "last30days"
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
},
"idempotency": {
"replayed": false
}
}
}Authorizations
Headers
Required for Public API write requests. Reusing the same key with the same method, path, and body replays the stored successful response; reusing it with a different request returns 409 idempotency.conflict.
1 - 200"booking-create-20260714-001"
Path Parameters
Body
Range for the CHART only — the stat cards are always all-time and ignore this. last7days/last1month bucket daily; last6months buckets monthly. activity uses the last 7 days and returns chart points only for dates with completed training.
last7days, last1month, last6months, activity Response
History page data for the requested tab.