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

# List absenteeism days

> Absenteeism dates per employee of the company, paginated by employee. A day is absenteeism when the employee had pending theoretical time and worked nothing: vacations, full-day absences and holidays remove theoretical time, and absences that count as worked time count as worked, so none of them are absenteeism; a partial absence without clocking in the rest of the workday, or a holiday with an assigned shift without clocking in, is. Queried in arrears: `to` must be a day already over in every timezone (earlier than today at UTC-12). Results reflect the current computation, so a later recalculation (e.g. an absence registered afterwards) can remove a date.

<div className="endpoint-versions" data-nav-page="/api-reference-v2/schedule/v4/absenteeism-days-get" data-nav-group="Absenteeism">
  <span className="endpoint-versions-label">Version:</span>
  <span data-version="v4" data-current>v4</span>
</div>


## OpenAPI

````yaml openapi-v2.json GET /schedule/v4/absenteeism-days
openapi: 3.0.0
info:
  title: Sesame Public API v2
  description: >-
    Public API v2 — additive surface `/public/{context}/v{N}`,
    endpoint-versioned from v4
  version: 1.0.0
servers:
  - url: https://api.sesamehr.com
    description: Production
security:
  - Bearer: []
paths:
  /schedule/v4/absenteeism-days:
    get:
      tags:
        - Absenteeism
      summary: List absenteeism days
      description: >-
        Absenteeism dates per employee of the company, paginated by employee. A
        day is absenteeism when the employee had pending theoretical time and
        worked nothing: vacations, full-day absences and holidays remove
        theoretical time, and absences that count as worked time count as
        worked, so none of them are absenteeism; a partial absence without
        clocking in the rest of the workday, or a holiday with an assigned shift
        without clocking in, is. Queried in arrears: `to` must be a day already
        over in every timezone (earlier than today at UTC-12). Results reflect
        the current computation, so a later recalculation (e.g. an absence
        registered afterwards) can remove a date.
      operationId: ListAbsenteeismDays
      parameters:
        - name: from
          in: query
          description: First day of the range (Y-m-d), inclusive.
          required: true
          schema:
            type: string
            format: date
        - name: to
          in: query
          description: >-
            Last day of the range (Y-m-d), inclusive. Earlier than today at
            UTC-12 and earlier than `from` + 1 year.
          required: true
          schema:
            type: string
            format: date
        - name: employeeIds[]
          in: query
          description: Employee ids. Ids that do not belong to the company are ignored.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: officeIds[]
          in: query
          description: Office ids. Returns employees assigned to any of them.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: departmentIds[]
          in: query
          description: Department ids. Returns employees assigned to any of them.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: entityGroupIds[]
          in: query
          description: Employee group ids. Returns employees that belong to any of them.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: status
          in: query
          description: >-
            Current status of the employee. Deleted employees are never
            returned.
          required: false
          schema:
            type: string
            default: active
            enum:
              - active
              - inactive
              - all
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          description: Employees per page.
          required: false
          schema:
            type: integer
            default: 20
            maximum: 500
      responses:
        '200':
          description: >-
            One entry per employee of the page, with an empty `dates` when the
            employee has no absenteeism.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAbsenteeismDaysResponse'
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  schemas:
    ListAbsenteeismDaysResponse:
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/EmployeeAbsenteeismDaysEntry'
        meta:
          $ref: '#/components/schemas/PaginationMetaEntry'
      type: object
    EmployeeAbsenteeismDaysEntry:
      properties:
        employee:
          $ref: '#/components/schemas/EmployeeEntry2'
        dates:
          description: >-
            Absenteeism dates (Y-m-d), ascending. Empty when the employee has
            none in the range.
          type: array
          items:
            type: string
            format: date
      type: object
    PaginationMetaEntry:
      properties:
        currentPage:
          description: Current page number (1-based).
          type: integer
        lastPage:
          description: Last available page number.
          type: integer
        total:
          description: Total number of items across all pages.
          type: integer
        perPage:
          description: Number of items per page.
          type: integer
      type: object
    EmployeeEntry2:
      properties:
        id:
          type: string
          format: uuid
        firstName:
          type: string
        lastName:
          type: string
        secondLastName:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        imageProfileURL:
          type: string
          nullable: true
        workStatus:
          type: string
          nullable: true
        workCheckTypeColor:
          type: string
          nullable: true
        workCheckTypeName:
          type: string
          nullable: true
        workCheckTypeIcon:
          type: string
          nullable: true
      type: object
  securitySchemes:
    Bearer:
      type: http
      description: 'Sesame Public API consumer token (Authorization: Bearer <token>)'
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.