cURL
curl -X GET "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/library" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/library', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"isFilterApplied": true,
"categories": [
{
"_id": "67f1234567890abcdef1234",
"name": "Example name",
"templates": [
{
"_id": "67f1234567890abcdef1234",
"name": "4-Day Strength Block",
"description": "Progressive upper/lower split.",
"thumbnail": "https://cdn.example.com/workouts/plan-cover.jpg",
"difficulty": "Intermediate",
"intensity": "High",
"category": "Strength",
"scheduleMode": "recurring"
}
],
"totalTemplates": 1
}
],
"filteredData": [
{
"_id": "67f1234567890abcdef1234",
"name": "4-Day Strength Block",
"description": "Progressive upper/lower split.",
"thumbnail": "https://cdn.example.com/workouts/plan-cover.jpg",
"difficulty": "Intermediate",
"intensity": "High",
"category": "Strength",
"scheduleMode": "recurring"
}
],
"availableFilters": {
"favourites": [
true,
false
],
"muscleGroups": [
"Quadriceps",
"Hamstrings",
"Chest"
],
"equipments": [
{
"value": "barbell",
"label": "Barbell"
}
],
"categories": [
"Strength",
"Cardio",
"Flexibility"
],
"levels": [
"Beginner",
"Intermediate",
"Advance"
],
"coaches": [
{
"id": "67f1234567890abcdef1234",
"name": "Alex Jansen",
"image": "https://cdn.example.com/coaches/alex.jpg"
}
]
},
"selectedFilters": {
"favourites": false,
"muscleGroups": [],
"equipments": [],
"categories": [],
"levels": [],
"coaches": [],
"search": ""
},
"pagination": {
"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
}
}
}Library and favourites
Get workout library home (GET)
Returns the same data as the POST /public/v1/workout/clients//library endpoint. Supports filters via query parameters.
Read collections default to 10 records. limit accepts 1 through 100; larger values use 100. Continue with page using the returned pagination metadata. Shared or mixed catalogue browsing supports pages 1 through 10. Own-record and explicit company-only scopes have no page ceiling. pagination.totalItems describes the accessible browse window; pagination.totalAvailableItems gives the full matching count for bounded catalogues.
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.
GET
/
public
/
v1
/
workout
/
clients
/
{clientId}
/
library
cURL
curl -X GET "https://api.fitsociety.io/public/v1/workout/clients/{clientId}/library" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/clients/{clientId}/library', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"isFilterApplied": true,
"categories": [
{
"_id": "67f1234567890abcdef1234",
"name": "Example name",
"templates": [
{
"_id": "67f1234567890abcdef1234",
"name": "4-Day Strength Block",
"description": "Progressive upper/lower split.",
"thumbnail": "https://cdn.example.com/workouts/plan-cover.jpg",
"difficulty": "Intermediate",
"intensity": "High",
"category": "Strength",
"scheduleMode": "recurring"
}
],
"totalTemplates": 1
}
],
"filteredData": [
{
"_id": "67f1234567890abcdef1234",
"name": "4-Day Strength Block",
"description": "Progressive upper/lower split.",
"thumbnail": "https://cdn.example.com/workouts/plan-cover.jpg",
"difficulty": "Intermediate",
"intensity": "High",
"category": "Strength",
"scheduleMode": "recurring"
}
],
"availableFilters": {
"favourites": [
true,
false
],
"muscleGroups": [
"Quadriceps",
"Hamstrings",
"Chest"
],
"equipments": [
{
"value": "barbell",
"label": "Barbell"
}
],
"categories": [
"Strength",
"Cardio",
"Flexibility"
],
"levels": [
"Beginner",
"Intermediate",
"Advance"
],
"coaches": [
{
"id": "67f1234567890abcdef1234",
"name": "Alex Jansen",
"image": "https://cdn.example.com/coaches/alex.jpg"
}
]
},
"selectedFilters": {
"favourites": false,
"muscleGroups": [],
"equipments": [],
"categories": [],
"levels": [],
"coaches": [],
"search": ""
},
"pagination": {
"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
}
}
}