curl -X POST "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/workout-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: 'feed',
clientId: '67f1234567890abcdef1234',
page: 1,
limit: 10,
exercisePage: 1,
exerciseLimit: 10,
search: 'strength',
statsRange: 'last7days',
muscleBalanceRange: 'last7days'
})
};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/workout-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/workout-history"
payload = {
"tab": "feed",
"clientId": "67f1234567890abcdef1234",
"page": 1,
"limit": 10,
"exercisePage": 1,
"exerciseLimit": 10,
"search": "strength",
"statsRange": "last7days",
"muscleBalanceRange": "last7days"
}
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",
"search": "string",
"feed": [
{
"date": "2026-09-30",
"dateLabel": "Tuesday, 30 Sep",
"dayName": "Tuesday",
"sessionCount": 3,
"activityCount": 2,
"planCount": 2,
"plans": [
{
"planId": "67f1234567890abcdef1234",
"name": "Weekly Strength Program",
"scheduleMode": "multi_week",
"status": "completed",
"programmeEndDate": "2026-10-04",
"averageRating": 3.2,
"ratedDayCount": 16,
"dayCount": 1,
"days": [
{
"plannedDate": "2026-09-30",
"weekday": 4,
"weekNumber": 3,
"title": "Day 4 - Thursday",
"rating": 4,
"durationMinutes": 45,
"totalVolume": 312,
"totalReps": 200,
"workoutCount": 2,
"activityCount": 2,
"workouts": [
{
"sessionId": "67f1234567890abcdef1234",
"planMomentId": "67f1234567890abcdef1234",
"programmeScheduleItemId": "67f1234567890abcdef1234",
"name": "Back Fitness Workout",
"description": "Example description",
"date": "2026-04-12T10:00:00.000Z",
"durationMinutes": 1,
"totalVolume": 1,
"totalReps": 1,
"rating": 1,
"emojiRating": 1,
"emoji": "💪",
"exerciseCount": 1,
"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"
}
]
}
]
}
],
"activities": [
{
"activityPerformanceId": "67f1234567890abcdef1234",
"programmeScheduleItemId": "67f1234567890abcdef1234",
"activityType": "running",
"name": "Example name",
"description": "Example description",
"status": "completed",
"plannedDate": "string",
"planned": {
"startTime": "string",
"durationMinutes": 1,
"distanceMeters": 1
},
"results": {
"durationMinutes": 1,
"distanceMeters": 1,
"rpe": 1
},
"notes": "string"
}
]
}
]
}
]
}
],
"pagination": {
"page": 1,
"limit": 10,
"totalItems": 12,
"totalPages": 2,
"hasNextPage": true,
"hasPreviousPage": false
},
"exercises": [
{
"exerciseId": "67f1234567890abcdef1234",
"name": "Lat Pulldown",
"thumbnail": "string",
"primaryMuscle": "Back",
"sets": 12,
"reps": 120,
"volume": 5400,
"timeSeconds": 0,
"distanceMeters": 0,
"timesPerformed": 4,
"lastPerformedAt": "2026-04-12T10:00:00.000Z",
"hasHistory": true
}
],
"cards": {
"totalWorkouts": 1,
"totalSets": 1,
"totalReps": 1,
"totalTimeSeconds": 1,
"totalDistanceMeters": 1,
"averageDurationMinutes": 1
},
"chart": {
"metric": {
"key": "string",
"label": "string",
"unit": "string",
"exerciseType": "string",
"aggregation": "string",
"direction": "string"
},
"granularity": "string",
"range": {
"startDate": "2026-07-14T10:00:00.000Z",
"endDate": "2026-07-14T10:00:00.000Z",
"startDateLabel": "string",
"endDateLabel": "string"
},
"summary": {
"minimum": 1,
"average": 1,
"maximum": 1
},
"points": [
{
"date": "2026-07-14T10:00:00.000Z",
"dateLabel": "string",
"value": 1,
"label": "string",
"volume": 1,
"reps": 1,
"durationMinutes": 1,
"distance": 1,
"volumePer": 1,
"repsPer": 1,
"durationMinutesPer": 1,
"distancePer": 1
}
],
"previousRecords": [
{
"performanceId": "66f7b8b1e13c8d25f4d3d90a",
"sessionId": "66f7b8b1e13c8d25f4d3d90a",
"date": "2026-07-14T10:00:00.000Z",
"dateLabel": "string",
"value": 1
}
]
},
"muscleActivation": {
"range": {
"startDate": "2026-07-14T10:00:00.000Z",
"endDate": "2026-07-14T10:00:00.000Z",
"days": 1
},
"total": {
"normalized": {},
"maxValue": 1,
"topMuscles": [
{
"muscle": "chest",
"value": 18
}
]
}
},
"muscleBalance": [
{
"muscle": "string",
"sets": 1,
"value": 1,
"normalized": 1,
"percentage": 1
}
],
"muscleBreakdown": [
{
"muscle": "string",
"sets": 1,
"value": 1,
"percentage": 1
}
],
"recentPRs": [
{
"exerciseId": "66f7b8b1e13c8d25f4d3d90a",
"name": "Example name",
"thumbnail": "string",
"hasHistory": true,
"value": 1,
"unit": "kg",
"type": "weight",
"achievedAt": "2026-07-14T10:00:00.000Z"
}
],
"topExercises": [
{
"exerciseId": "66f7b8b1e13c8d25f4d3d90a",
"name": "Example name",
"thumbnail": "string",
"hasHistory": true,
"timesPerformed": 1,
"totalReps": 1,
"totalVolume": 1,
"lastPerformedAt": "2026-07-14T10:00:00.000Z",
"muscle": "string",
"sets": 1,
"reps": 1,
"volume": 1,
"timeSeconds": 1,
"distanceMeters": 1
}
]
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
},
"idempotency": {
"replayed": false
}
}
}Get the client's Workout History screen (feed / exercises / statistics)
Requires the workout_progress:read scope. This operation maps to /app/v1/workout/plans/client/workout-history 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 POST "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/workout-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: 'feed',
clientId: '67f1234567890abcdef1234',
page: 1,
limit: 10,
exercisePage: 1,
exerciseLimit: 10,
search: 'strength',
statsRange: 'last7days',
muscleBalanceRange: 'last7days'
})
};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/workout-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/workout-history"
payload = {
"tab": "feed",
"clientId": "67f1234567890abcdef1234",
"page": 1,
"limit": 10,
"exercisePage": 1,
"exerciseLimit": 10,
"search": "strength",
"statsRange": "last7days",
"muscleBalanceRange": "last7days"
}
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",
"search": "string",
"feed": [
{
"date": "2026-09-30",
"dateLabel": "Tuesday, 30 Sep",
"dayName": "Tuesday",
"sessionCount": 3,
"activityCount": 2,
"planCount": 2,
"plans": [
{
"planId": "67f1234567890abcdef1234",
"name": "Weekly Strength Program",
"scheduleMode": "multi_week",
"status": "completed",
"programmeEndDate": "2026-10-04",
"averageRating": 3.2,
"ratedDayCount": 16,
"dayCount": 1,
"days": [
{
"plannedDate": "2026-09-30",
"weekday": 4,
"weekNumber": 3,
"title": "Day 4 - Thursday",
"rating": 4,
"durationMinutes": 45,
"totalVolume": 312,
"totalReps": 200,
"workoutCount": 2,
"activityCount": 2,
"workouts": [
{
"sessionId": "67f1234567890abcdef1234",
"planMomentId": "67f1234567890abcdef1234",
"programmeScheduleItemId": "67f1234567890abcdef1234",
"name": "Back Fitness Workout",
"description": "Example description",
"date": "2026-04-12T10:00:00.000Z",
"durationMinutes": 1,
"totalVolume": 1,
"totalReps": 1,
"rating": 1,
"emojiRating": 1,
"emoji": "💪",
"exerciseCount": 1,
"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"
}
]
}
]
}
],
"activities": [
{
"activityPerformanceId": "67f1234567890abcdef1234",
"programmeScheduleItemId": "67f1234567890abcdef1234",
"activityType": "running",
"name": "Example name",
"description": "Example description",
"status": "completed",
"plannedDate": "string",
"planned": {
"startTime": "string",
"durationMinutes": 1,
"distanceMeters": 1
},
"results": {
"durationMinutes": 1,
"distanceMeters": 1,
"rpe": 1
},
"notes": "string"
}
]
}
]
}
]
}
],
"pagination": {
"page": 1,
"limit": 10,
"totalItems": 12,
"totalPages": 2,
"hasNextPage": true,
"hasPreviousPage": false
},
"exercises": [
{
"exerciseId": "67f1234567890abcdef1234",
"name": "Lat Pulldown",
"thumbnail": "string",
"primaryMuscle": "Back",
"sets": 12,
"reps": 120,
"volume": 5400,
"timeSeconds": 0,
"distanceMeters": 0,
"timesPerformed": 4,
"lastPerformedAt": "2026-04-12T10:00:00.000Z",
"hasHistory": true
}
],
"cards": {
"totalWorkouts": 1,
"totalSets": 1,
"totalReps": 1,
"totalTimeSeconds": 1,
"totalDistanceMeters": 1,
"averageDurationMinutes": 1
},
"chart": {
"metric": {
"key": "string",
"label": "string",
"unit": "string",
"exerciseType": "string",
"aggregation": "string",
"direction": "string"
},
"granularity": "string",
"range": {
"startDate": "2026-07-14T10:00:00.000Z",
"endDate": "2026-07-14T10:00:00.000Z",
"startDateLabel": "string",
"endDateLabel": "string"
},
"summary": {
"minimum": 1,
"average": 1,
"maximum": 1
},
"points": [
{
"date": "2026-07-14T10:00:00.000Z",
"dateLabel": "string",
"value": 1,
"label": "string",
"volume": 1,
"reps": 1,
"durationMinutes": 1,
"distance": 1,
"volumePer": 1,
"repsPer": 1,
"durationMinutesPer": 1,
"distancePer": 1
}
],
"previousRecords": [
{
"performanceId": "66f7b8b1e13c8d25f4d3d90a",
"sessionId": "66f7b8b1e13c8d25f4d3d90a",
"date": "2026-07-14T10:00:00.000Z",
"dateLabel": "string",
"value": 1
}
]
},
"muscleActivation": {
"range": {
"startDate": "2026-07-14T10:00:00.000Z",
"endDate": "2026-07-14T10:00:00.000Z",
"days": 1
},
"total": {
"normalized": {},
"maxValue": 1,
"topMuscles": [
{
"muscle": "chest",
"value": 18
}
]
}
},
"muscleBalance": [
{
"muscle": "string",
"sets": 1,
"value": 1,
"normalized": 1,
"percentage": 1
}
],
"muscleBreakdown": [
{
"muscle": "string",
"sets": 1,
"value": 1,
"percentage": 1
}
],
"recentPRs": [
{
"exerciseId": "66f7b8b1e13c8d25f4d3d90a",
"name": "Example name",
"thumbnail": "string",
"hasHistory": true,
"value": 1,
"unit": "kg",
"type": "weight",
"achievedAt": "2026-07-14T10:00:00.000Z"
}
],
"topExercises": [
{
"exerciseId": "66f7b8b1e13c8d25f4d3d90a",
"name": "Example name",
"thumbnail": "string",
"hasHistory": true,
"timesPerformed": 1,
"totalReps": 1,
"totalVolume": 1,
"lastPerformedAt": "2026-07-14T10:00:00.000Z",
"muscle": "string",
"sets": 1,
"reps": 1,
"volume": 1,
"timeSeconds": 1,
"distanceMeters": 1
}
]
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
},
"idempotency": {
"replayed": false
}
}
}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.
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
Client in the company bound to the Public API token.
^[a-fA-F0-9]{24}$Body
feed, exercises, statistics Required when the caller is a coach/admin; a client token resolves its own id.
"67f1234567890abcdef1234"
1 <= x <= 100FEED tab only: DATE GROUPS per page. Clamped to [10, 100] by the shared paginator, so a smaller value is raised to 10.
10 <= x <= 100EXERCISES tab only: page over exercises, independent of page.
1 <= x <= 100EXERCISES tab only: exercises per page. Clamped to [10, 100] by the shared paginator, so a smaller value is raised to 10.
10 <= x <= 100Case-insensitive substring. On feed it filters the PLAN name (a date survives when at least one of its plans matches); on exercises it filters the EXERCISE name. Applied BEFORE pagination, so pagination.totalItems counts the matches. Also accepted as ?search=.
"strength"
Range for the CHART only — the stat cards are always all-time and ignore this. activity uses the last 7 days and returns chart points only for dates with completed training.
last7days, last1month, last6months, activity last7days, last30days, last90days, allTime