Skip to content

Query

bookingActivitySlots

bookingActivitySlots(activity: EntityRef!, 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

activityEntityRef!

Returns

[AppointmentSlot!]!

See AppointmentSlot for the full shape.

Try it

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