Skip to content
bookingActivitySlotsQuery
bookingActivitySlots(activity: ID!, from: DateTime!, to: DateTime!): [AppointmentSlot!]!

Open, bookable increments for a structure: booking activity within the [from, to] window — the activity's weekly windows minus the assigned resource's commitments, honoring its booking notice + advance window. Each slot is one increment; customers compose a longer booking from a contiguous run (bounded by minIncrements/maxIncrements). Empty when the activity isn't bookable or the appointments feature is off.

Arguments

activityID!

Returns

[AppointmentSlot!]!

See AppointmentSlot for the full shape.

Try it

Example
Query
query BookingActivitySlots($activity: ID!, $from: DateTime!, $to: DateTime!) {
  bookingActivitySlots(activity: $activity, from: $from, to: $to) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql
bookingActivitySlots