cURL
curl -X GET "https://api.fitsociety.io/public/v1/workout/groups/events/{eventId}/context" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/groups/events/{eventId}/context', 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/groups/events/{eventId}/context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"event": {
"eventId": "67f1234567890abcdef1234",
"startDate": null,
"endDate": null,
"lessonName": "Small Group Training",
"lessonType": "group"
},
"session": {
"runId": null,
"status": "paused",
"runStatus": "active",
"source": "calendar_event",
"calendarOccurrenceStartDate": null,
"startedAt": null,
"endedAt": null,
"timerStartedAt": null,
"timerPausedAt": null,
"timerElapsedMs": 120000,
"participantStatusCounts": {
"total": 4,
"active": 3,
"pending": 0,
"in_progress": 2,
"paused": 1,
"completed": 1,
"stopped": 0,
"cancelled": 0,
"error": 0
}
},
"members": [
{
"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
}
}
],
"counts": {
"members": 4,
"sessionStatuses": {
"total": 4,
"active": 3,
"pending": 0,
"in_progress": 2,
"paused": 1,
"completed": 1,
"stopped": 0,
"cancelled": 0,
"error": 0
}
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}Event context and start
Get calendar event participants for group workout start
Returns active event bookings and any existing group-workout run participants for the event, including terminal participants such as cancelled members, so member counts match the workout run state.
Requires the workout_groups:read scope and the corresponding Workout features and permissions.
GET
/
public
/
v1
/
workout
/
groups
/
events
/
{eventId}
/
context
cURL
curl -X GET "https://api.fitsociety.io/public/v1/workout/groups/events/{eventId}/context" \
-H "Authorization: Bearer <access_token>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/workout/groups/events/{eventId}/context', 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/groups/events/{eventId}/context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"event": {
"eventId": "67f1234567890abcdef1234",
"startDate": null,
"endDate": null,
"lessonName": "Small Group Training",
"lessonType": "group"
},
"session": {
"runId": null,
"status": "paused",
"runStatus": "active",
"source": "calendar_event",
"calendarOccurrenceStartDate": null,
"startedAt": null,
"endedAt": null,
"timerStartedAt": null,
"timerPausedAt": null,
"timerElapsedMs": 120000,
"participantStatusCounts": {
"total": 4,
"active": 3,
"pending": 0,
"in_progress": 2,
"paused": 1,
"completed": 1,
"stopped": 0,
"cancelled": 0,
"error": 0
}
},
"members": [
{
"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
}
}
],
"counts": {
"members": 4,
"sessionStatuses": {
"total": 4,
"active": 3,
"pending": 0,
"in_progress": 2,
"paused": 1,
"completed": 1,
"stopped": 0,
"cancelled": 0,
"error": 0
}
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1
}
}
}