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

# List resource schedule blocks

> Returns the availability schedule blocks for calendar resources within a date range. The blocks are sorted by datetime in ascending order.

A **resource schedule block** represents a time window during which a calendar resource (e.g., a veterinarian) is available for appointments. Use this endpoint to determine when resources are available for scheduling.



## OpenAPI

````yaml get /ext/v2/resource-schedule-blocks/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/resource-schedule-blocks/:
    get:
      tags:
        - Scheduler
      summary: List resource schedule blocks
      description: >-
        Returns the availability schedule blocks for calendar resources within a
        date range. The blocks are sorted by datetime in ascending order.


        A **resource schedule block** represents a time window during which a
        calendar resource (e.g., a veterinarian) is available for appointments.
        Use this endpoint to determine when resources are available for
        scheduling.
      operationId: resource_schedule_blocks_list
      parameters:
        - description: >-
            Required. The ID of the calendar to fetch resource schedule blocks
            for
          in: query
          name: calendar_id
          required: true
          schema:
            description: >-
              Required. The ID of the calendar to fetch resource schedule blocks
              for
            title: Calendar Id
            type: integer
        - description: >-
            Required. Start date for fetching resource schedule blocks. This
            will be translated to a datetime representing the start of the day
            in the clinic's timezone. Must be no more than 30 days before
            `end_datetime__lte`. Format: YYYY-MM-DD
          in: query
          name: start_datetime__gte
          required: true
          schema:
            description: >-
              Required. Start date for fetching resource schedule blocks. This
              will be translated to a datetime representing the start of the day
              in the clinic's timezone. Must be no more than 30 days before
              `end_datetime__lte`. Format: YYYY-MM-DD
            title: Start Datetime  Gte
            type: string
        - description: >-
            Required. End date for fetching resource schedule blocks. This will
            be translated to a datetime representing the end of the day in the
            clinic's timezone. Must be no more than 30 days after
            `start_datetime__gte`. Format: YYYY-MM-DD
          in: query
          name: end_datetime__lte
          required: true
          schema:
            description: >-
              Required. End date for fetching resource schedule blocks. This
              will be translated to a datetime representing the end of the day
              in the clinic's timezone. Must be no more than 30 days after
              `start_datetime__gte`. Format: YYYY-MM-DD
            title: End Datetime  Lte
            type: string
        - description: Optional. The ID of the calendar resource to fetch event blocks for
          in: query
          name: calendar_resource_id
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              Optional. The ID of the calendar resource to fetch event blocks
              for
            title: Calendar Resource Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalResourceScheduleBlockSchemaList'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ExternalResourceScheduleBlockSchemaList:
      properties:
        data:
          description: A single page of data contained within this list.
          items:
            $ref: '#/components/schemas/ExternalResourceScheduleBlockSchema'
          title: Data
          type: array
        has_more:
          default: false
          description: Whether there are more pages or data in this list.
          title: Has More
          type: boolean
        next_page:
          description: A URL linking to the next page of this list.
          title: Next Page
          type: string
        type:
          default: list
          description: Type of this object. Always `list`.
          title: Type
          type: string
      required:
        - data
        - next_page
      title: ExternalResourceScheduleBlockSchemaList
      type: object
    ExternalResourceScheduleBlockSchema:
      properties:
        resource_id:
          description: The ID of the resource this schedule block belongs to.
          title: Resource Id
          type: integer
        time_blocks:
          description: The time blocks of this schedule block.
          items:
            $ref: '#/components/schemas/ResourceScheduleBlockTimeRange'
          title: Time Blocks
          type: array
      required:
        - resource_id
        - time_blocks
      title: ExternalResourceScheduleBlockSchema
      type: object
    ResourceScheduleBlockTimeRange:
      properties:
        end_datetime:
          description: The ending datetime of this schedule block, in UTC.
          format: date-time
          title: End Datetime
          type: string
        start_datetime:
          description: The starting datetime of this schedule block, in UTC.
          format: date-time
          title: Start Datetime
          type: string
      required:
        - start_datetime
        - end_datetime
      title: ResourceScheduleBlockTimeRange
      type: object
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````