> ## 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.

# Regularization detail + forensic trail/timeline

> Regularization detail + forensic trail/timeline



## OpenAPI

````yaml /api-reference/openapi.json get /api/regularizations/{id}
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/regularizations/{id}:
    get:
      tags:
        - Regularization
      summary: Regularization detail + forensic trail/timeline
      description: Regularization detail + forensic trail/timeline
      operationId: getApiRegularizationsById
      parameters:
        - in: path
          name: id
          schema:
            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)$
          required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    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)$
                  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)$
                  employeeName:
                    type: string
                  employeeCode:
                    type: string
                  department:
                    type: string
                  managerName:
                    anyOf:
                      - type: string
                      - type: 'null'
                  date:
                    type: string
                  type:
                    type: string
                    enum:
                      - MissingPunchIn
                      - MissingPunchOut
                      - OffZone
                      - ManualEntry
                      - WrongLocation
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                  requestedChange:
                    anyOf:
                      - type: string
                      - type: 'null'
                  status:
                    type: string
                    enum:
                      - AwaitingManager
                      - ManagerApprovedAwaitingHR
                      - Approved
                      - Rejected
                  requiresHrApproval:
                    type: boolean
                  managerDecisionBy:
                    anyOf:
                      - 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)$
                      - type: 'null'
                  managerDecisionName:
                    anyOf:
                      - type: string
                      - type: 'null'
                  managerDecidedAt:
                    anyOf:
                      - type: string
                      - type: 'null'
                  hrDecisionBy:
                    anyOf:
                      - 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)$
                      - type: 'null'
                  hrDecisionName:
                    anyOf:
                      - type: string
                      - type: 'null'
                  hrDecidedAt:
                    anyOf:
                      - type: string
                      - type: 'null'
                  decisionNote:
                    anyOf:
                      - type: string
                      - type: 'null'
                  createdAt:
                    type: string
                  ageHours:
                    type: number
                  urgent:
                    type: boolean
                  timeline:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          enum:
                            - submitted
                            - manager
                            - hr
                            - final
                        label:
                          type: string
                        state:
                          type: string
                          enum:
                            - done
                            - current
                            - pending
                            - rejected
                        actorName:
                          anyOf:
                            - type: string
                            - type: 'null'
                        at:
                          anyOf:
                            - type: string
                            - type: 'null'
                        note:
                          anyOf:
                            - type: string
                            - type: 'null'
                      required:
                        - key
                        - label
                        - state
                        - actorName
                        - at
                        - note
                  trail:
                    type: array
                    items:
                      type: object
                      properties:
                        time:
                          type: string
                        kind:
                          type: string
                          enum:
                            - bio
                            - gps
                            - self
                            - web
                            - gap
                            - form
                            - claim
                        what:
                          type: string
                        detail:
                          type: string
                        tone:
                          type: string
                          enum:
                            - neutral
                            - accent
                            - ok
                            - warn
                            - bad
                            - info
                            - claim
                      required:
                        - time
                        - kind
                        - what
                        - detail
                        - tone
                  decision:
                    type: object
                    properties:
                      loggedMinutes:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      claimedMinutes:
                        anyOf:
                          - type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          - type: 'null'
                      netImpactLabel:
                        type: string
                      otTrigger:
                        type: string
                      payrollCycle:
                        type: string
                    required:
                      - loggedMinutes
                      - claimedMinutes
                      - netImpactLabel
                      - otTrigger
                      - payrollCycle
                  priorRegs90d:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  patternCheck:
                    type: array
                    items:
                      type: object
                      properties:
                        label:
                          type: string
                        value:
                          type: string
                        ok:
                          type: boolean
                      required:
                        - label
                        - value
                  policy:
                    type: array
                    items:
                      type: object
                      properties:
                        label:
                          type: string
                        value:
                          type: string
                        ok:
                          type: boolean
                      required:
                        - label
                        - value
                  evidence:
                    type: array
                    items:
                      type: object
                      properties:
                        label:
                          type: string
                        sub:
                          type: string
                        kind:
                          type: string
                          enum:
                            - selfie
                            - map
                            - doc
                            - empty
                        tone:
                          type: string
                          enum:
                            - neutral
                            - accent
                            - ok
                            - warn
                            - bad
                            - info
                        href:
                          anyOf:
                            - type: string
                            - type: 'null'
                        meta:
                          anyOf:
                            - type: string
                            - type: 'null'
                      required:
                        - label
                        - sub
                        - kind
                        - tone
                        - href
                        - meta
                  discussion:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        senderId:
                          anyOf:
                            - 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)$
                            - type: 'null'
                        who:
                          type: string
                        role:
                          type: string
                          enum:
                            - employee
                            - manager
                            - hr
                            - auto
                        when:
                          type: string
                        text:
                          type: string
                        mine:
                          type: boolean
                      required:
                        - id
                        - senderId
                        - who
                        - role
                        - when
                        - text
                        - mine
                required:
                  - id
                  - employeeId
                  - employeeName
                  - employeeCode
                  - department
                  - managerName
                  - date
                  - type
                  - reason
                  - requestedChange
                  - status
                  - requiresHrApproval
                  - managerDecisionBy
                  - managerDecisionName
                  - managerDecidedAt
                  - hrDecisionBy
                  - hrDecisionName
                  - hrDecidedAt
                  - decisionNote
                  - createdAt
                  - ageHours
                  - urgent
                  - timeline
                  - trail
                  - decision
                  - priorRegs90d
                  - patternCheck
                  - policy
                  - evidence
                  - discussion
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.

````