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

# Day report: timeline bands, KPIs, anomalies, source split

> Day report: timeline bands, KPIs, anomalies, source split



## OpenAPI

````yaml /api-reference/openapi.json get /api/attendance/day/{date}
openapi: 3.1.0
info:
  title: ontime API
  description: APIs for ontime.v2
  version: 1.0.0
servers:
  - url: https://app.ontime.hosai.app
    description: Production
security:
  - apiKey: []
paths:
  /api/attendance/day/{date}:
    get:
      tags:
        - Attendance
      summary: 'Day report: timeline bands, KPIs, anomalies, source split'
      description: 'Day report: timeline bands, KPIs, anomalies, source split'
      operationId: getApiAttendanceDayByDate
      parameters:
        - in: path
          name: date
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  date:
                    type: string
                  weekday:
                    type: string
                  kpis:
                    type: object
                    properties:
                      present:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      expected:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      onTime:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      late:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      halfDay:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      absent:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      netHours:
                        type: number
                      overtimeHours:
                        type: number
                    required:
                      - present
                      - expected
                      - onTime
                      - late
                      - halfDay
                      - absent
                      - netHours
                      - overtimeHours
                  timeline:
                    type: array
                    items:
                      type: object
                      properties:
                        employeeId:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        name:
                          type: string
                        code:
                          type: string
                        shiftCode:
                          anyOf:
                            - type: string
                              enum:
                                - G
                                - M
                                - E
                                - 'N'
                                - F
                            - type: 'null'
                        bands:
                          type: array
                          items:
                            type: object
                            properties:
                              startMin:
                                type: integer
                                minimum: -9007199254740991
                                maximum: 9007199254740991
                              endMin:
                                type: integer
                                minimum: -9007199254740991
                                maximum: 9007199254740991
                              open:
                                type: boolean
                            required:
                              - startMin
                              - endMin
                              - open
                        shiftTargetStartMin:
                          anyOf:
                            - type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            - type: 'null'
                        shiftTargetEndMin:
                          anyOf:
                            - type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            - type: 'null'
                        workedMinutes:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        status:
                          type: string
                          enum:
                            - Present
                            - Absent
                            - Leave
                            - Half
                            - WeeklyOff
                            - Holiday
                        lateMinutes:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                      required:
                        - employeeId
                        - name
                        - code
                        - shiftCode
                        - bands
                        - shiftTargetStartMin
                        - shiftTargetEndMin
                        - workedMinutes
                        - status
                        - lateMinutes
                  anomalies:
                    type: array
                    items:
                      type: object
                      properties:
                        employeeId:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        name:
                          type: string
                        when:
                          type: string
                        kind:
                          type: string
                        detail:
                          type: string
                        tone:
                          type: string
                          enum:
                            - neutral
                            - accent
                            - ok
                            - warn
                            - bad
                            - info
                      required:
                        - employeeId
                        - name
                        - when
                        - kind
                        - detail
                        - tone
                  sources:
                    type: array
                    items:
                      type: object
                      properties:
                        source:
                          type: string
                          enum:
                            - MobileGPS
                            - SelfieGPS
                            - Biometric
                            - Web
                        count:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                      required:
                        - source
                        - count
                required:
                  - date
                  - weekday
                  - kpis
                  - timeline
                  - anomalies
                  - sources
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: ont_ API key
      description: >-
        Issue keys in Settings → API. Send them as `Authorization: Bearer ont_…`
        (an `X-Api-Key: ont_…` header is also accepted). Session-cookie routes
        are used by the OnTime web apps and are shown for completeness.

````