Skip to content

Fetch class slots

Request

Returns the upcoming sessions of a class (a service of type CLASS) with their seat availability, grouped by day. Public counterpart of the class inventory.

A class that has no upcoming sessions, including one that has no sessions yet, returns 200 with an empty days map. 404 is returned only when the id is not an active class of your account: it is unknown, deleted, a service rather than a class, or belongs to another account.

Security
BearerAuth
Path
class-keystringrequired

Id of the class.

Example:svc_123456
Query
timezonestring

Time zone used to group sessions into days. Session times are always returned in UTC (Z); this only decides which day each session is listed under.

Default:"UTC"
Example:timezone=America/New_York
curl -i -X GET \
  'https://developer.setmore.com/api/v2/slots/class/svc_123456?timezone=America%2FNew_York' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Class slots fetched.

Bodyapplication/json
dataobject(ClassSlots)

Upcoming sessions of a class, grouped by day.

Response
{ "data": { "days": { … } } }