cURL
curl -X POST "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/workout-history/search" \
-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({search: 'fitness'})
};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/workout-history/search', 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/search"
payload = { "search": "fitness" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"search": "string",
"workoutPlans": [
{
"planId": "67f1234567890abcdef1234",
"name": "Fitness Strength Program",
"scheduleMode": "recurring",
"status": "in_progress",
"programmeEndDate": "string",
"averageRating": 3.2,
"ratedDayCount": 5,
"dayCount": 8,
"days": [
{
"date": "2026-07-14",
"weekday": 1,
"dayNumber": 1,
"isRestDay": true,
"itemCount": 1,
"items": [
{
"_id": "67f1234567890abcdef1234",
"order": 1,
"startTime": "08:30",
"plannedDurationMinutes": 45,
"status": "today",
"plannedDate": "2026-09-08",
"scheduledDate": "2026-09-08",
"source": "programme",
"clientAdjustment": {
"action": "moved",
"occurrenceDate": "2026-09-08",
"scheduledDate": "2026-09-08",
"changedAt": null
},
"canClientRestore": true,
"type": "workout",
"planMomentId": "67f1234567890abcdef1234"
}
],
"exercises": [
{
"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"
}
],
"workouts": [
{
"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"
}
]
}
]
}
],
"exercises": [
{
"exerciseId": "67f1234567890abcdef1234",
"name": "Lat Pulldown",
"thumbnail": "string",
"primaryMuscle": "Chest",
"sets": 12,
"reps": 120,
"volume": 5400,
"timeSeconds": 0,
"distanceMeters": 0,
"timesPerformed": 4,
"lastPerformedAt": "2026-04-12T10:00:00.000Z",
"hasHistory": true
}
],
"activities": [
{
"activityPerformanceId": "67f1234567890abcdef1234",
"programmeScheduleItemId": "67f1234567890abcdef1234",
"activityType": "running",
"name": "Fitness & Stretching Power",
"description": "Example description",
"status": "completed",
"plannedDate": "2026-09-30",
"planned": {
"startTime": "string",
"durationMinutes": 1,
"distanceMeters": 1
},
"results": {
"durationMinutes": 1,
"distanceMeters": 1,
"rpe": 1
},
"notes": "string"
}
],
"pagination": {
"workoutPlans": {
"page": 1,
"limit": 1,
"totalItems": 1,
"totalAvailableItems": 1,
"totalPages": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"nextPage": 1,
"previousPage": 1
},
"exercises": {
"page": 1,
"limit": 1,
"totalItems": 1,
"totalAvailableItems": 1,
"totalPages": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"nextPage": 1,
"previousPage": 1
},
"activities": {
"page": 1,
"limit": 1,
"totalItems": 1,
"totalAvailableItems": 1,
"totalPages": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"nextPage": 1,
"previousPage": 1
}
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
},
"idempotency": {
"replayed": false
}
}
}History
Workout History search (workoutPlans / exercises / activities)
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.
POST
/
public
/
v1
/
workout
/
clients
/
{clientId}
/
plans
/
workout-history
/
search
cURL
curl -X POST "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/workout-history/search" \
-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({search: 'fitness'})
};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/plans/workout-history/search', 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/search"
payload = { "search": "fitness" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"search": "string",
"workoutPlans": [
{
"planId": "67f1234567890abcdef1234",
"name": "Fitness Strength Program",
"scheduleMode": "recurring",
"status": "in_progress",
"programmeEndDate": "string",
"averageRating": 3.2,
"ratedDayCount": 5,
"dayCount": 8,
"days": [
{
"date": "2026-07-14",
"weekday": 1,
"dayNumber": 1,
"isRestDay": true,
"itemCount": 1,
"items": [
{
"_id": "67f1234567890abcdef1234",
"order": 1,
"startTime": "08:30",
"plannedDurationMinutes": 45,
"status": "today",
"plannedDate": "2026-09-08",
"scheduledDate": "2026-09-08",
"source": "programme",
"clientAdjustment": {
"action": "moved",
"occurrenceDate": "2026-09-08",
"scheduledDate": "2026-09-08",
"changedAt": null
},
"canClientRestore": true,
"type": "workout",
"planMomentId": "67f1234567890abcdef1234"
}
],
"exercises": [
{
"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"
}
],
"workouts": [
{
"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"
}
]
}
]
}
],
"exercises": [
{
"exerciseId": "67f1234567890abcdef1234",
"name": "Lat Pulldown",
"thumbnail": "string",
"primaryMuscle": "Chest",
"sets": 12,
"reps": 120,
"volume": 5400,
"timeSeconds": 0,
"distanceMeters": 0,
"timesPerformed": 4,
"lastPerformedAt": "2026-04-12T10:00:00.000Z",
"hasHistory": true
}
],
"activities": [
{
"activityPerformanceId": "67f1234567890abcdef1234",
"programmeScheduleItemId": "67f1234567890abcdef1234",
"activityType": "running",
"name": "Fitness & Stretching Power",
"description": "Example description",
"status": "completed",
"plannedDate": "2026-09-30",
"planned": {
"startTime": "string",
"durationMinutes": 1,
"distanceMeters": 1
},
"results": {
"durationMinutes": 1,
"distanceMeters": 1,
"rpe": 1
},
"notes": "string"
}
],
"pagination": {
"workoutPlans": {
"page": 1,
"limit": 1,
"totalItems": 1,
"totalAvailableItems": 1,
"totalPages": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"nextPage": 1,
"previousPage": 1
},
"exercises": {
"page": 1,
"limit": 1,
"totalItems": 1,
"totalAvailableItems": 1,
"totalPages": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"nextPage": 1,
"previousPage": 1
},
"activities": {
"page": 1,
"limit": 1,
"totalItems": 1,
"totalAvailableItems": 1,
"totalPages": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"nextPage": 1,
"previousPage": 1
}
}
},
"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.
Required string length:
1 - 200Example:
"booking-create-20260714-001"
Path Parameters
Body
application/json