v1
latestOpenAPI 3.0.02026-07-2673188210.8 KBmember-host
Get available host sessions
get/api/v2/member/host/sessions
Query parameters
pageinteger required
Starts at 0
pageSizeinteger required
Example:10
sortOrder'ASC' | 'DESC'
sortBy'name' | 'startsAt' | 'endsAt'
Field to sort by
includeCancelledboolean
also include cancelled sessions
typesstring[]
only return specified session types
teacherIdinteger
locationIdinteger
includeChildLocationsboolean
when filtering by location, include the locations child locations
startAfterstring
startBeforestring
endAfterstring
endBeforestring
Response
Example response
{
"pagination": {
"pageSize": 10,
"totalCount": 1
},
"payload": [
{
"id": 3,
"name": "Stretching with John",
"type": "fitness",
"description": "Our stretching class is a great way to start your day.",
"startsAt": "2021-01-01T05:00:00Z",
"endsAt": "2021-01-01T06:00:00Z",
"durationInMinutes": 60,
"capacity": 10,
"participants": 1,
"waitlistEnabled": true,
"waitlistCapacity": 5,
"salesCutoffInMinutes": 10,
"priceType": "fixed-price",
"fixedTicketPrice": 955,
"teacher": {
"id": 1,
"firstName": "John",
"lastName": "Doe",
"pictureUrl": "https://example.com/picture.jpg"
},
"originalTeacher": {
"id": 1,
"firstName": "John",
"lastName": "Doe",
"pictureUrl": "https://example.com/picture.jpg"
},
"additionalTeachers": [
{
"id": 1,
"firstName": "John",
"lastName": "Doe",
"pictureUrl": "https://example.com/picture.jpg"
}
],
"inPersonLocation": {
"id": 1,
"name": "Main Studio"
},
"bannerImageUrl": "https://example.com/image.jpg",
"hostPhotoUrl": "https://example.com/image.jpg",
"onlineStreamUrl": "https://example.com/online-stream",
"onlineStreamPassword": "password123"
}
]
}