> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omneo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Browse Available Appointment Slots over a Date Range

> A `POST` to the `/appointment-definitions/{appointmentDefinitionId}/available-slots-range`
endpoint returns all bookable slots in [start_date, end_date], sorted by
start time, paginated. Range is capped at 31 days by the form request.



## OpenAPI

````yaml post /v3/appointment-definitions/{appointmentDefinition}/available-slots-range
openapi: 3.1.0
info:
  title: Omneo
  version: 0.0.1
servers:
  - url: https://api.{tenant}.getomneo.com/api
    variables:
      tenant:
        default: example
security: []
paths:
  /v3/appointment-definitions/{appointmentDefinition}/available-slots-range:
    post:
      tags:
        - Appointment Availability
      summary: Browse Available Appointment Slots over a Date Range
      description: >-
        A `POST` to the
        `/appointment-definitions/{appointmentDefinitionId}/available-slots-range`

        endpoint returns all bookable slots in [start_date, end_date], sorted by

        start time, paginated. Range is capped at 31 days by the form request.
      operationId: appointmentAvailability.slotsRange
      parameters:
        - name: appointmentDefinition
          in: path
          required: true
          description: The appointment definition ID
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListAppointmentAvailableSlotsRange'
      responses:
        '200':
          description: '`AppointmentAvailableSlotsRangeResource`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppointmentAvailableSlotsRangeResource'
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    ListAppointmentAvailableSlotsRange:
      type: object
      description: >-
        Request payload for the range slots endpoint. Date window is capped at
        31

        days so a single call can't sweep an unbounded slot space.


        Reuses the same staff/location validation rules as the single-day
        endpoint

        (`ListAppointmentAvailableSlots`) so the range version inherits the same

        "is this combination actually bookable?" guarantees.
      properties:
        location_id:
          type: integer
        start_date:
          type: string
          format: date
        end_date:
          type: string
          format: date
        staff_id:
          type:
            - string
            - 'null'
        sort:
          type: string
          enum:
            - asc
            - desc
      required:
        - location_id
        - start_date
        - end_date
      title: ListAppointmentAvailableSlotsRange
    AppointmentAvailableSlotsRangeResource:
      type: object
      properties:
        data:
          type: array
          items:
            type: string
        meta:
          type: object
          properties:
            appointment_definition_id:
              type: integer
            location_id:
              type: integer
            timezone:
              type:
                - string
                - 'null'
            start_date:
              type: string
            end_date:
              type: string
            requires_staff:
              type: boolean
            customer_must_select_staff:
              type: boolean
            assigned_staff_required:
              type: boolean
            staff:
              type:
                - object
                - 'null'
              properties:
                id:
                  type: string
                first_name:
                  type: string
                last_name:
                  type: string
                email:
                  type: string
              required:
                - id
                - first_name
                - last_name
                - email
            slot_interval_minutes:
              type:
                - integer
                - 'null'
            duration_minutes:
              type: integer
            buffer_before_minutes:
              anyOf:
                - type: integer
                - type: integer
                  enum:
                    - 0
            buffer_after_minutes:
              anyOf:
                - type: integer
                - type: integer
                  enum:
                    - 0
            min_lead_minutes:
              anyOf:
                - type: integer
                - type: integer
                  enum:
                    - 0
            max_advance_days:
              type:
                - integer
                - 'null'
            max_concurrent_bookings:
              type:
                - integer
                - 'null'
            total:
              type: integer
          required:
            - appointment_definition_id
            - location_id
            - timezone
            - start_date
            - end_date
            - requires_staff
            - customer_must_select_staff
            - assigned_staff_required
            - staff
            - slot_interval_minutes
            - duration_minutes
            - buffer_before_minutes
            - buffer_after_minutes
            - min_lead_minutes
            - max_advance_days
            - max_concurrent_bookings
            - total
      required:
        - data
        - meta
      title: AppointmentAvailableSlotsRangeResource
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors

````