cURL
curl -X GET "https://api.fitsociety.io/public/v1/workout/sessions" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/sessions', 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/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"items": [
{
"id": "67f1234567890abcdef1234",
"kind": "client_session",
"origin": "client",
"openMode": "readonly",
"runId": null,
"sessionId": null,
"title": "Upper Body - Day 2",
"source": "auto_assigned_plan",
"status": "in_progress",
"calendarEventId": null,
"manualSessionKey": "",
"startedAt": null,
"endedAt": null,
"updatedAt": null,
"provenance": {
"origin": "coach",
"startedByActorType": "coach",
"startedByClientId": null,
"startedByCoachId": null,
"executedByCoachId": null,
"completedByActorType": "",
"completedByClientId": null,
"completedByCoachId": null,
"endedByActorType": "",
"endedByClientId": null,
"endedByCoachId": null,
"lastUpdatedByActorType": "coach",
"lastUpdatedByClientId": null,
"lastUpdatedByCoachId": null
},
"participantCount": 1,
"statusCounts": {
"in_progress": 1
},
"participants": [
{
"clientId": "67f1234567890abcdef1234",
"sessionId": null,
"sessionStatus": "planned",
"workoutSource": "auto_assigned_plan",
"sourceLabel": "Upper Body - Day 2",
"templateId": null,
"planMomentId": null,
"startedAt": null,
"endedAt": null,
"member": {
"clientId": "67f1234567890abcdef1234",
"firstName": "Joseph",
"lastName": "Quin",
"fullName": "Joseph Quin",
"email": "joseph@example.com",
"image": "https://cdn.example.com/avatar.jpg",
"isActive": true,
"tags": [
{
"_id": "67f1234567890abcdef1234",
"id": "67f1234567890abcdef1234",
"name": "VIP",
"label": "VIP",
"color": "#105DFB"
}
],
"memberships": [
{
"_id": "67f1234567890abcdef1234",
"id": "67f1234567890abcdef1234",
"membershipId": null,
"storeModuleMembershipId": null,
"productName": "Premium Monthly",
"name": "Premium Monthly",
"status": "Active",
"startDate": null,
"endDate": null,
"expiresAt": null,
"nextBillingDate": null,
"autoRenewCheck": false
}
],
"activeMembership": {
"_id": "67f1234567890abcdef1234",
"id": "67f1234567890abcdef1234",
"membershipId": null,
"storeModuleMembershipId": null,
"productName": "Premium Monthly",
"name": "Premium Monthly",
"status": "Active",
"startDate": null,
"endDate": null,
"expiresAt": null,
"nextBillingDate": null,
"autoRenewCheck": false
},
"membershipExpiresAt": null,
"remainingCredits": 23,
"creditBalance": 23,
"nextTrainingAt": null,
"nextTrainingBookingId": null,
"groupWorkoutSession": {
"sessionId": null,
"sessionStatus": "paused",
"workoutSource": "auto_assigned_plan",
"sourceLabel": "Assigned plan",
"startedAt": null,
"endedAt": null
}
}
}
]
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 42,
"totalPages": 3,
"hasNextPage": true
},
"filters": {
"completedSince": null
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}
Start and manage sessions
List unified coach and client workout sessions
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_sessions:read scope and the corresponding Workout features and permissions.
GET
/
public
/
v1
/
workout
/
sessions
cURL
curl -X GET "https://api.fitsociety.io/public/v1/workout/sessions" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/sessions', 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/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"items": [
{
"id": "67f1234567890abcdef1234",
"kind": "client_session",
"origin": "client",
"openMode": "readonly",
"runId": null,
"sessionId": null,
"title": "Upper Body - Day 2",
"source": "auto_assigned_plan",
"status": "in_progress",
"calendarEventId": null,
"manualSessionKey": "",
"startedAt": null,
"endedAt": null,
"updatedAt": null,
"provenance": {
"origin": "coach",
"startedByActorType": "coach",
"startedByClientId": null,
"startedByCoachId": null,
"executedByCoachId": null,
"completedByActorType": "",
"completedByClientId": null,
"completedByCoachId": null,
"endedByActorType": "",
"endedByClientId": null,
"endedByCoachId": null,
"lastUpdatedByActorType": "coach",
"lastUpdatedByClientId": null,
"lastUpdatedByCoachId": null
},
"participantCount": 1,
"statusCounts": {
"in_progress": 1
},
"participants": [
{
"clientId": "67f1234567890abcdef1234",
"sessionId": null,
"sessionStatus": "planned",
"workoutSource": "auto_assigned_plan",
"sourceLabel": "Upper Body - Day 2",
"templateId": null,
"planMomentId": null,
"startedAt": null,
"endedAt": null,
"member": {
"clientId": "67f1234567890abcdef1234",
"firstName": "Joseph",
"lastName": "Quin",
"fullName": "Joseph Quin",
"email": "joseph@example.com",
"image": "https://cdn.example.com/avatar.jpg",
"isActive": true,
"tags": [
{
"_id": "67f1234567890abcdef1234",
"id": "67f1234567890abcdef1234",
"name": "VIP",
"label": "VIP",
"color": "#105DFB"
}
],
"memberships": [
{
"_id": "67f1234567890abcdef1234",
"id": "67f1234567890abcdef1234",
"membershipId": null,
"storeModuleMembershipId": null,
"productName": "Premium Monthly",
"name": "Premium Monthly",
"status": "Active",
"startDate": null,
"endDate": null,
"expiresAt": null,
"nextBillingDate": null,
"autoRenewCheck": false
}
],
"activeMembership": {
"_id": "67f1234567890abcdef1234",
"id": "67f1234567890abcdef1234",
"membershipId": null,
"storeModuleMembershipId": null,
"productName": "Premium Monthly",
"name": "Premium Monthly",
"status": "Active",
"startDate": null,
"endDate": null,
"expiresAt": null,
"nextBillingDate": null,
"autoRenewCheck": false
},
"membershipExpiresAt": null,
"remainingCredits": 23,
"creditBalance": 23,
"nextTrainingAt": null,
"nextTrainingBookingId": null,
"groupWorkoutSession": {
"sessionId": null,
"sessionStatus": "paused",
"workoutSource": "auto_assigned_plan",
"sourceLabel": "Assigned plan",
"startedAt": null,
"endedAt": null
}
}
}
]
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 42,
"totalPages": 3,
"hasNextPage": true
},
"filters": {
"completedSince": null
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}