> ## 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 calendar event blocks

> Returns the calendar event blocks for a clinic's calendar within a date range. The blocks are sorted by datetime in ascending order.

A **calendar event block** represents a non-appointment event on the calendar (e.g., a staff meeting, lunch break, or clinic closure) that may block appointment scheduling.



## OpenAPI

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


        A **calendar event block** represents a non-appointment event on the
        calendar (e.g., a staff meeting, lunch break, or clinic closure) that
        may block appointment scheduling.
      operationId: calendar_event_blocks_list
      parameters:
        - description: Required. The ID of the calendar to fetch event blocks for
          in: query
          name: calendar_id
          required: true
          schema:
            description: Required. The ID of the calendar to fetch event blocks for
            title: Calendar Id
            type: integer
        - description: >-
            Required. Start date for fetching event 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_date`.
            Format: YYYY-MM-DD
          in: query
          name: start_date
          required: true
          schema:
            description: >-
              Required. Start date for fetching event 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_date`.
              Format: YYYY-MM-DD
            title: Start Date
            type: string
        - description: >-
            Required. End date for fetching event 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_date`.
            Format: YYYY-MM-DD
          in: query
          name: end_date
          required: true
          schema:
            description: >-
              Required. End date for fetching event 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_date`. Format: YYYY-MM-DD
            title: End Date
            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/ExternalCalendarEventBlockSchemaList'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ExternalCalendarEventBlockSchemaList:
      properties:
        data:
          description: A single page of data contained within this list.
          items:
            $ref: '#/components/schemas/ExternalCalendarEventBlockSchema'
          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: ExternalCalendarEventBlockSchemaList
      type: object
    ExternalCalendarEventBlockSchema:
      properties:
        calendar_resource_ids:
          description: >-
            The ID's of the calendar resources for this event block.
            `is_applicable_to_all_resources` takes precedence over this field.
          items:
            type: integer
          title: Calendar Resource Ids
          type: array
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: The description of this event block.
          title: Description
        end_datetime:
          description: The end datetime for this event block, in UTC.
          format: date-time
          title: End Datetime
          type: string
        is_applicable_to_all_resources:
          description: Whether this event block is applicable to all calendar resources.
          title: Is Applicable To All Resources
          type: boolean
        kind_id:
          description: The ID of the calendar event kind for this event block.
          title: Kind Id
          type: integer
        should_block_appointments:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Whether appointments can be scheduled over this event block.
          title: Should Block Appointments
        start_datetime:
          description: The start datetime for this event block, in UTC.
          format: date-time
          title: Start Datetime
          type: string
      required:
        - calendar_resource_ids
        - is_applicable_to_all_resources
        - kind_id
        - description
        - should_block_appointments
        - start_datetime
        - end_datetime
      title: ExternalCalendarEventBlockSchema
      type: object
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````