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

# List Holidays

> List holidays for a tenant with optional business-hours filter, pagination, sorting, and search



## OpenAPI

````yaml https://api.voxo.co/v2/docs/openapi.json get /v2/admin/holidays/
openapi: 3.1.0
info:
  title: VOXO API
  description: VOXO Communication Platform API
  version: 2.0.0
servers:
  - url: https://api.voxo.co
security:
  - bearerAuth: []
paths:
  /v2/admin/holidays/:
    get:
      tags:
        - Holidays
      summary: List Holidays
      description: >-
        List holidays for a tenant with optional business-hours filter,
        pagination, sorting, and search
      parameters:
        - schema:
            default: 1
            type: integer
            minimum: 0
            maximum: 1
          in: query
          name: paginated
          required: false
          description: 1 = paginated response, 0 = full list
        - schema:
            type: number
          in: query
          name: page
          required: false
          description: Page number
        - schema:
            type: number
          in: query
          name: recordsPerPage
          required: false
          description: Records per page
        - schema:
            type: string
            maxLength: 50
          in: query
          name: sortBy
          required: false
          description: Sort column
        - schema:
            type: string
            enum:
              - asc
              - desc
          in: query
          name: sortDirection
          required: false
          description: Sort direction
        - schema:
            type: string
            pattern: ^[1-9]\d*$
          in: query
          name: tenantId
          required: true
        - schema:
            type: string
            pattern: ^[1-9]\d*$
          in: query
          name: businessHoursId
          required: false
        - schema:
            type: string
          in: query
          name: query
          required: false
          description: Search by name
      responses:
        '200':
          description: Paginated holidays
          content:
            application/json:
              schema:
                type: object
                properties:
                  records:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                          description: Holiday ID
                        tenantId:
                          type: number
                          description: Tenant ID
                        name:
                          type: string
                          description: Holiday name
                        isRecurring:
                          type: boolean
                          description: Whether the holiday recurs
                        startDate:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: Start date (non-recurring)
                        endDate:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: End date (non-recurring)
                        isClosed:
                          type: boolean
                          description: Whether closed for the whole day
                        month:
                          anyOf:
                            - type: number
                            - type: 'null'
                          description: Recurrence month (1-12)
                        day:
                          anyOf:
                            - type: number
                            - type: 'null'
                          description: Recurrence day (1-31)
                        dayOfWeek:
                          anyOf:
                            - type: number
                            - type: 'null'
                          description: Recurrence day of week (0-6)
                        weekOfMonth:
                          anyOf:
                            - type: number
                            - type: 'null'
                          description: Recurrence week of month (1-5)
                        operatingHours:
                          anyOf:
                            - {}
                            - type: 'null'
                          description: Operating hours or null
                        notifyDaysBefore:
                          anyOf:
                            - type: number
                            - type: 'null'
                          description: Notify days before
                        businessHours:
                          anyOf:
                            - type: object
                              properties:
                                id:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                name:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                              required:
                                - id
                                - name
                              additionalProperties: {}
                            - type: 'null'
                          description: Associated business hours profile
                        mediaFile:
                          anyOf:
                            - type: object
                              properties:
                                id:
                                  anyOf:
                                    - type: number
                                    - type: 'null'
                                name:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                              required:
                                - id
                                - name
                              additionalProperties: {}
                            - type: 'null'
                          description: Associated media file
                      required:
                        - id
                        - tenantId
                        - name
                        - isRecurring
                        - startDate
                        - endDate
                        - isClosed
                        - month
                        - day
                        - dayOfWeek
                        - weekOfMonth
                        - operatingHours
                        - notifyDaysBefore
                        - businessHours
                        - mediaFile
                      additionalProperties: false
                  page:
                    type: number
                  maxPage:
                    type: number
                  totalRecords:
                    type: number
                required:
                  - records
                  - page
                  - maxPage
                  - totalRecords
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````