curl -X GET "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/freestyle/session-detail/{sessionId}" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/freestyle/session-detail/{sessionId}', 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/freestyle/session-detail/{sessionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"client": {
"_id": "67f1234567890abcdef1234",
"firstName": "Joseph",
"lastName": "Quin",
"fullName": "Joseph Quin",
"email": "joseph@example.com",
"image": ""
},
"membership": {
"name": "Premium Monthly",
"status": "Active",
"startDate": "2026-04-12T10:00:00.000Z",
"expiresAt": "2026-04-12T10:00:00.000Z"
},
"creditBalance": 23,
"nextTrainingAt": "2026-04-12T10:00:00.000Z",
"medicalData": {
"injuries": "",
"medication": "",
"allergies": "None",
"heartProblem": false,
"bloodPressureIssue": false,
"doctorApproved": true,
"additionalNotes": ""
},
"coachNotes": [
{
"_id": "67f1234567890abcdef1234",
"title": "General",
"notes": "",
"tags": [
"string"
],
"pinned": false,
"date": "2026-04-12T10:00:00.000Z",
"editedAt": "2026-04-12T10:00:00.000Z",
"author": {
"coachId": "67f1234567890abcdef1234",
"firstName": "Matthijs",
"lastName": "Wessels",
"fullName": "Matthijs Wessels",
"image": ""
}
}
],
"plan": {
"visibleToClient": true,
"runningPlan": {
"goal": {
"distance": "5K",
"goalTimeSec": 1,
"raceDate": "2026-07-14",
"acceptGoalAsChallenge": true
},
"goalUpdatedAt": "2026-07-14T10:00:00.000Z",
"goalUpdatedBy": "string",
"adaptationRevision": 1,
"lastReviewedWeek": 1,
"lastAdaptedAt": "2026-07-14T10:00:00.000Z",
"generation": {
"templateKey": "5K",
"variant": true,
"runWeekdays": [
1
],
"qualityWeekdays": [
1
],
"longRunWeekday": 1,
"phases": {
"base": 1,
"threshold": 1,
"sharpen": 1
},
"taperWeeks": 1,
"sourceVersion": "plansjablonen-v259-1",
"policyVersion": "safety-calendar-v1",
"generatedAt": "2026-07-14T10:00:00.000Z",
"generatedBy": "string",
"profileUpdatedAt": "2026-07-14T10:00:00.000Z",
"totalWeeks": 1,
"concreteWeeks": 1,
"baselineKm": 1,
"peakKm": 1,
"thresholdSecPerKm": 1,
"warnings": [
"string"
]
},
"weekSummaries": [
{
"weekNumber": 1,
"weekStart": "2026-07-14",
"phase": 1,
"phaseName": "Base building",
"theme": "Base building",
"weekKind": "build",
"rotationWeek": 1,
"targetVolumeKm": 1,
"concrete": true,
"requestedVolumeKm": 1,
"allocatedKm": 1,
"remainingKm": 1,
"concreteRequested": true,
"sessions": [
{
"weekday": 1,
"code": "drempel_c",
"sessionType": "threshold_continuous",
"controlMode": "hr",
"longRunTargetMinutes": 1,
"ladder": {
"step": 1,
"reps": 1,
"kmPerRep": 1
},
"continuousMinutes": 1,
"recoveryRangeSec": {
"low": 1,
"high": 1
},
"cardio": {
"slotKey": "string",
"sessionType": "easy",
"controlMode": "pace",
"ladderStep": 1,
"poolLengthM": 25,
"blocks": [
{
"_id": "67f1234567890abcdef1234",
"repeat": 1,
"steps": [
{
"_id": "67f1234567890abcdef1234",
"kind": "warmup",
"durationType": "time",
"durationValue": 1,
"target": {
"kind": "paceZone",
"zone": "E",
"basis": "lthr",
"low": 1,
"high": 1
},
"secondaryTarget": {
"kind": "paceZone",
"zone": "E",
"basis": "lthr",
"low": 1,
"high": 1
},
"notes": "string",
"stroke": "free",
"equipment": [
"pullBuoy"
],
"restMode": "rest",
"sendOffSec": 1,
"cadence": {
"low": 1,
"high": 1
}
}
]
}
],
"sourceTemplateId": null
},
"totals": {
"durationSec": 1,
"distanceM": 1,
"plannedDurationMinutes": 1,
"targetDistanceMeters": 1,
"zoneTimeSec": {}
}
}
]
}
]
},
"_id": "67f1234567890abcdef1234",
"companyId": "67f1234567890abcdef1234",
"clientId": null,
"sourceTemplateId": null,
"addedBy": "67f1234567890abcdef1234",
"addedByRole": "Coach",
"status": "Draft",
"templateType": "Template",
"name": [
{
"lang": "en",
"value": "Full Body Strength"
},
{
"lang": "nl",
"value": "Full Body Kracht"
}
],
"description": [
{
"lang": "en",
"value": "Full Body Strength"
},
{
"lang": "nl",
"value": "Full Body Kracht"
}
],
"difficulty": "Intermediate",
"intensity": "Medium",
"duration": {
"startDate": "2026-04-15",
"endDate": "2026-06-15",
"hasEndDate": true
},
"images": [
{
"url": "https://cdn.example.com/workouts/plan-cover.jpg",
"width": 1280,
"height": 720
}
],
"videos": [
{
"url": "https://cdn.example.com/workouts/demo.mp4",
"platform": "s3",
"videoId": "",
"thumbnail": "https://cdn.example.com/workouts/demo-thumb.jpg",
"duration": 84,
"width": 1920,
"height": 1080
}
],
"category": "Strength",
"goal": "Strength",
"periodizationType": "Linear",
"popularity": 0,
"useDefaultExerciseSettings": true,
"defaultExerciseValues": {
"sets": 3,
"reps": "10-12",
"rest": 90,
"weight": 0,
"repTempo": "3010",
"duration": 0
},
"planMoments": [
{
"_id": "67f1234567890abcdef1234",
"name": [
{
"lang": "en",
"value": "Full Body Strength"
},
{
"lang": "nl",
"value": "Full Body Kracht"
}
],
"description": [
{
"lang": "en",
"value": "Full Body Strength"
},
{
"lang": "nl",
"value": "Full Body Kracht"
}
],
"dayOrder": 1,
"order": 0,
"weekNumber": 1,
"sessionOrder": 1,
"date": "2026-04-15",
"scoringType": "forTime",
"targetValue": null,
"descriptionOnly": true,
"timeDomain": {
"windowSeconds": null,
"timeCapSeconds": 900,
"rounds": 3,
"intervalSeconds": null,
"intervalCount": null,
"workSeconds": null,
"restSeconds": null
},
"scoreValidation": {
"timeCapSeconds": 900,
"maxReps": null,
"expectedIntervals": null
},
"exercises": [
{
"_id": "67f1234567890abcdef1234",
"exerciseId": "67f1234567890abcdef1234",
"type": "reps",
"minReps": 6,
"maxReps": 8,
"notes": "Pause 1 second on the chest.",
"sets": 4,
"metric": "kg",
"rest": 120,
"intensity": "High",
"difficulty": "Intermediate",
"groupId": "super-a",
"rpe": 8,
"rmPercentage": 75,
"tempo": "3010",
"perSetTrackingEnabled": true,
"rpeEnabled": false,
"showSetRpe": true,
"setsData": [
{
"setNumber": 1,
"setType": "N",
"metric": "12",
"repetition": "8-12",
"weight": 60,
"rest": 90,
"rpe": 7.5,
"duration": 45,
"distance": 250
}
],
"setupSettingsEnabled": true,
"setupFields": [
{
"key": "seat",
"label": "Seat",
"type": "text",
"unit": "",
"options": [
"1",
"2",
"3",
"4"
],
"order": 1,
"required": false,
"enabled": true,
"defaultValue": 3
}
],
"order": 0,
"isDeleted": false,
"deletedAt": null,
"createdAt": "2026-04-12T10:00:00.000Z",
"updatedAt": "2026-04-12T10:00:00.000Z"
}
],
"isDeleted": false,
"deletedAt": null,
"createdAt": "2026-04-12T10:00:00.000Z",
"updatedAt": "2026-04-12T10:00:00.000Z"
}
],
"visibility": "Company",
"isDeleted": false,
"deletedAt": null,
"createdAt": "2026-04-12T10:00:00.000Z",
"updatedAt": "2026-04-12T10:00:00.000Z"
},
"progress": {
"total": 6,
"completed": 2,
"progressPercentage": 33,
"isCompleted": false
},
"stats": {
"durationMinutes": 0,
"exerciseCount": 0,
"expectedDurationMinutes": 110,
"totalVolume": 312,
"totalReps": 104
},
"exercises": [
{
"type": "exercise",
"planExerciseId": "67f1234567890abcdef1234",
"exerciseId": "67f1234567890abcdef1234",
"name": "Dumbbell Bench Press",
"thumbnail": "https://cdn.example.com/exercises/bench.jpg",
"media": [
{
"type": "image",
"url": "https://cdn.example.com/ex/bench.jpg",
"platform": null,
"videoId": null,
"thumbnail": null,
"duration": null,
"width": 1080,
"height": 720
}
],
"primaryMuscle": "Chest",
"secondaryMuscles": [
"Triceps"
],
"equipment": [
"Dumbbell"
],
"groupId": "",
"order": 0,
"isFavourite": false,
"hasHistory": false,
"targets": {
"type": "reps",
"sets": 4,
"reps": "8–12",
"rest": 60,
"rpe": 8,
"rmPercentage": 0,
"tempo": "",
"notes": "Keep elbows tucked."
},
"previousBestSet": "12 × 24kg",
"performanceId": "67f1234567890abcdef1234",
"isCompleted": false,
"clientNotes": "",
"clientRestSeconds": null,
"notes": "",
"sets": [
{
"setNumber": 1,
"setType": "N",
"displayNumber": 1,
"displayLabel": "1",
"previous": "12 × 22kg",
"reps": 10,
"weight": 22,
"timeSeconds": null,
"distanceMeters": null,
"rpe": null,
"completed": false
}
],
"exerciseCount": 2,
"rounds": 4,
"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"
}
]
}
],
"session": {
"id": "67f1234567890abcdef1234",
"status": "in_progress",
"startedAt": "2026-04-12T10:00:00.000Z",
"programmeScheduleItemId": "67f1234567890abcdef1234",
"plannedDate": "2026-09-08"
},
"resumeState": "continue",
"requiresResumePrompt": true,
"requiresConfirmation": false,
"confirmationToken": null,
"confirmationTokenExpiresAt": null
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}Get the freestyle session detail
Returns one freestyle session with client and membership context, creditBalance, nextTrainingAt, medicalData, and visible coachNotes. plan is null and there are no plan days. Exercises are grouped as standalone exercise entries or supersets with members in data. Each includes targetSnapshot, nextSessionTarget, history, totals, metrics, setupFields, setupValues, nextSetupValues, and personal-best indicators. progress is completed performances divided by the total. History is ordered by performance date, start time, creation time, and performance ID descending. Per-set hints use repsPlaceholderCoach, weightPlaceholderCoach, timeSecondsPlaceholderCoach, distanceMetersPlaceholderCoach, rpePlaceholderCoach, and restSecondsPlaceholderCoach, plus the corresponding fields without the Coach suffix. Coach prescriptions take precedence; client hints are used only when no coach value exists. Untracked metrics, extra sets, and missing prescriptions return null for the coach hint. Weight hints and targetWeight use targetSnapshot.todayTarget unless a newer prescription applies. Hints never count toward totals, volume, personal records, or completion. To record a hint, submit its numeric value with completed: true; a rep range must be replaced with a numeric value because completed ranges are interpreted as their minimum. An uncompleted set uses null metrics and completed: false.
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.
curl -X GET "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/freestyle/session-detail/{sessionId}" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/freestyle/session-detail/{sessionId}', 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/freestyle/session-detail/{sessionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"client": {
"_id": "67f1234567890abcdef1234",
"firstName": "Joseph",
"lastName": "Quin",
"fullName": "Joseph Quin",
"email": "joseph@example.com",
"image": ""
},
"membership": {
"name": "Premium Monthly",
"status": "Active",
"startDate": "2026-04-12T10:00:00.000Z",
"expiresAt": "2026-04-12T10:00:00.000Z"
},
"creditBalance": 23,
"nextTrainingAt": "2026-04-12T10:00:00.000Z",
"medicalData": {
"injuries": "",
"medication": "",
"allergies": "None",
"heartProblem": false,
"bloodPressureIssue": false,
"doctorApproved": true,
"additionalNotes": ""
},
"coachNotes": [
{
"_id": "67f1234567890abcdef1234",
"title": "General",
"notes": "",
"tags": [
"string"
],
"pinned": false,
"date": "2026-04-12T10:00:00.000Z",
"editedAt": "2026-04-12T10:00:00.000Z",
"author": {
"coachId": "67f1234567890abcdef1234",
"firstName": "Matthijs",
"lastName": "Wessels",
"fullName": "Matthijs Wessels",
"image": ""
}
}
],
"plan": {
"visibleToClient": true,
"runningPlan": {
"goal": {
"distance": "5K",
"goalTimeSec": 1,
"raceDate": "2026-07-14",
"acceptGoalAsChallenge": true
},
"goalUpdatedAt": "2026-07-14T10:00:00.000Z",
"goalUpdatedBy": "string",
"adaptationRevision": 1,
"lastReviewedWeek": 1,
"lastAdaptedAt": "2026-07-14T10:00:00.000Z",
"generation": {
"templateKey": "5K",
"variant": true,
"runWeekdays": [
1
],
"qualityWeekdays": [
1
],
"longRunWeekday": 1,
"phases": {
"base": 1,
"threshold": 1,
"sharpen": 1
},
"taperWeeks": 1,
"sourceVersion": "plansjablonen-v259-1",
"policyVersion": "safety-calendar-v1",
"generatedAt": "2026-07-14T10:00:00.000Z",
"generatedBy": "string",
"profileUpdatedAt": "2026-07-14T10:00:00.000Z",
"totalWeeks": 1,
"concreteWeeks": 1,
"baselineKm": 1,
"peakKm": 1,
"thresholdSecPerKm": 1,
"warnings": [
"string"
]
},
"weekSummaries": [
{
"weekNumber": 1,
"weekStart": "2026-07-14",
"phase": 1,
"phaseName": "Base building",
"theme": "Base building",
"weekKind": "build",
"rotationWeek": 1,
"targetVolumeKm": 1,
"concrete": true,
"requestedVolumeKm": 1,
"allocatedKm": 1,
"remainingKm": 1,
"concreteRequested": true,
"sessions": [
{
"weekday": 1,
"code": "drempel_c",
"sessionType": "threshold_continuous",
"controlMode": "hr",
"longRunTargetMinutes": 1,
"ladder": {
"step": 1,
"reps": 1,
"kmPerRep": 1
},
"continuousMinutes": 1,
"recoveryRangeSec": {
"low": 1,
"high": 1
},
"cardio": {
"slotKey": "string",
"sessionType": "easy",
"controlMode": "pace",
"ladderStep": 1,
"poolLengthM": 25,
"blocks": [
{
"_id": "67f1234567890abcdef1234",
"repeat": 1,
"steps": [
{
"_id": "67f1234567890abcdef1234",
"kind": "warmup",
"durationType": "time",
"durationValue": 1,
"target": {
"kind": "paceZone",
"zone": "E",
"basis": "lthr",
"low": 1,
"high": 1
},
"secondaryTarget": {
"kind": "paceZone",
"zone": "E",
"basis": "lthr",
"low": 1,
"high": 1
},
"notes": "string",
"stroke": "free",
"equipment": [
"pullBuoy"
],
"restMode": "rest",
"sendOffSec": 1,
"cadence": {
"low": 1,
"high": 1
}
}
]
}
],
"sourceTemplateId": null
},
"totals": {
"durationSec": 1,
"distanceM": 1,
"plannedDurationMinutes": 1,
"targetDistanceMeters": 1,
"zoneTimeSec": {}
}
}
]
}
]
},
"_id": "67f1234567890abcdef1234",
"companyId": "67f1234567890abcdef1234",
"clientId": null,
"sourceTemplateId": null,
"addedBy": "67f1234567890abcdef1234",
"addedByRole": "Coach",
"status": "Draft",
"templateType": "Template",
"name": [
{
"lang": "en",
"value": "Full Body Strength"
},
{
"lang": "nl",
"value": "Full Body Kracht"
}
],
"description": [
{
"lang": "en",
"value": "Full Body Strength"
},
{
"lang": "nl",
"value": "Full Body Kracht"
}
],
"difficulty": "Intermediate",
"intensity": "Medium",
"duration": {
"startDate": "2026-04-15",
"endDate": "2026-06-15",
"hasEndDate": true
},
"images": [
{
"url": "https://cdn.example.com/workouts/plan-cover.jpg",
"width": 1280,
"height": 720
}
],
"videos": [
{
"url": "https://cdn.example.com/workouts/demo.mp4",
"platform": "s3",
"videoId": "",
"thumbnail": "https://cdn.example.com/workouts/demo-thumb.jpg",
"duration": 84,
"width": 1920,
"height": 1080
}
],
"category": "Strength",
"goal": "Strength",
"periodizationType": "Linear",
"popularity": 0,
"useDefaultExerciseSettings": true,
"defaultExerciseValues": {
"sets": 3,
"reps": "10-12",
"rest": 90,
"weight": 0,
"repTempo": "3010",
"duration": 0
},
"planMoments": [
{
"_id": "67f1234567890abcdef1234",
"name": [
{
"lang": "en",
"value": "Full Body Strength"
},
{
"lang": "nl",
"value": "Full Body Kracht"
}
],
"description": [
{
"lang": "en",
"value": "Full Body Strength"
},
{
"lang": "nl",
"value": "Full Body Kracht"
}
],
"dayOrder": 1,
"order": 0,
"weekNumber": 1,
"sessionOrder": 1,
"date": "2026-04-15",
"scoringType": "forTime",
"targetValue": null,
"descriptionOnly": true,
"timeDomain": {
"windowSeconds": null,
"timeCapSeconds": 900,
"rounds": 3,
"intervalSeconds": null,
"intervalCount": null,
"workSeconds": null,
"restSeconds": null
},
"scoreValidation": {
"timeCapSeconds": 900,
"maxReps": null,
"expectedIntervals": null
},
"exercises": [
{
"_id": "67f1234567890abcdef1234",
"exerciseId": "67f1234567890abcdef1234",
"type": "reps",
"minReps": 6,
"maxReps": 8,
"notes": "Pause 1 second on the chest.",
"sets": 4,
"metric": "kg",
"rest": 120,
"intensity": "High",
"difficulty": "Intermediate",
"groupId": "super-a",
"rpe": 8,
"rmPercentage": 75,
"tempo": "3010",
"perSetTrackingEnabled": true,
"rpeEnabled": false,
"showSetRpe": true,
"setsData": [
{
"setNumber": 1,
"setType": "N",
"metric": "12",
"repetition": "8-12",
"weight": 60,
"rest": 90,
"rpe": 7.5,
"duration": 45,
"distance": 250
}
],
"setupSettingsEnabled": true,
"setupFields": [
{
"key": "seat",
"label": "Seat",
"type": "text",
"unit": "",
"options": [
"1",
"2",
"3",
"4"
],
"order": 1,
"required": false,
"enabled": true,
"defaultValue": 3
}
],
"order": 0,
"isDeleted": false,
"deletedAt": null,
"createdAt": "2026-04-12T10:00:00.000Z",
"updatedAt": "2026-04-12T10:00:00.000Z"
}
],
"isDeleted": false,
"deletedAt": null,
"createdAt": "2026-04-12T10:00:00.000Z",
"updatedAt": "2026-04-12T10:00:00.000Z"
}
],
"visibility": "Company",
"isDeleted": false,
"deletedAt": null,
"createdAt": "2026-04-12T10:00:00.000Z",
"updatedAt": "2026-04-12T10:00:00.000Z"
},
"progress": {
"total": 6,
"completed": 2,
"progressPercentage": 33,
"isCompleted": false
},
"stats": {
"durationMinutes": 0,
"exerciseCount": 0,
"expectedDurationMinutes": 110,
"totalVolume": 312,
"totalReps": 104
},
"exercises": [
{
"type": "exercise",
"planExerciseId": "67f1234567890abcdef1234",
"exerciseId": "67f1234567890abcdef1234",
"name": "Dumbbell Bench Press",
"thumbnail": "https://cdn.example.com/exercises/bench.jpg",
"media": [
{
"type": "image",
"url": "https://cdn.example.com/ex/bench.jpg",
"platform": null,
"videoId": null,
"thumbnail": null,
"duration": null,
"width": 1080,
"height": 720
}
],
"primaryMuscle": "Chest",
"secondaryMuscles": [
"Triceps"
],
"equipment": [
"Dumbbell"
],
"groupId": "",
"order": 0,
"isFavourite": false,
"hasHistory": false,
"targets": {
"type": "reps",
"sets": 4,
"reps": "8–12",
"rest": 60,
"rpe": 8,
"rmPercentage": 0,
"tempo": "",
"notes": "Keep elbows tucked."
},
"previousBestSet": "12 × 24kg",
"performanceId": "67f1234567890abcdef1234",
"isCompleted": false,
"clientNotes": "",
"clientRestSeconds": null,
"notes": "",
"sets": [
{
"setNumber": 1,
"setType": "N",
"displayNumber": 1,
"displayLabel": "1",
"previous": "12 × 22kg",
"reps": 10,
"weight": 22,
"timeSeconds": null,
"distanceMeters": null,
"rpe": null,
"completed": false
}
],
"exerciseCount": 2,
"rounds": 4,
"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"
}
]
}
],
"session": {
"id": "67f1234567890abcdef1234",
"status": "in_progress",
"startedAt": "2026-04-12T10:00:00.000Z",
"programmeScheduleItemId": "67f1234567890abcdef1234",
"plannedDate": "2026-09-08"
},
"resumeState": "continue",
"requiresResumePrompt": true,
"requiresConfirmation": false,
"confirmationToken": null,
"confirmationTokenExpiresAt": null
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}