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

# List lembur

> Mengambil daftar event lembur (start/end) dan sesi terpasang dengan durasi (jam & menit). Filter tanggal dan optional unique_employee_id.



## OpenAPI

````yaml openapi.json get /api/v1/overtimes
openapi: 3.0.3
info:
  title: Emplicon API
  description: >-
    API publik Emplicon untuk integrasi: absensi, lembur (overtime), dan data
    karyawan.


    **Autentikasi:** API Key. Wajib mengirim dua header:

    - `X-Client-ID`: Client ID perusahaan (emp_cl_...)

    - `X-Api-Key`: API Secret Key (emp_sk_...)


    Keduanya didapat dari **Pengaturan → Perusahaan** di dashboard Emplicon.


    ---


    **Callback (webhook) yang tersedia saat ini:**

    - **Flip** — Inquiry Rekening: `POST
    https://api.emplicon.com/v1/webhooks/flip/inquiry`

    - **Flip** — Disbursement: `POST
    https://api.emplicon.com/v1/webhooks/flip/disbursement`


    URL callback didaftarkan di dashboard provider (Flip, dll). Emplicon
    menerima request GET (verifikasi URL) dan POST (payload).
  version: 1.0.0
servers:
  - url: https://api.emplicon.com
    description: Production
  - url: https://api-demo.emplicon.com
    description: Demo
security:
  - apiKeyAuth: []
    clientId: []
tags:
  - name: Attendances
    description: Absensi (clock in/out)
  - name: Overtimes
    description: Lembur (overtime start/end)
  - name: Employees
    description: Data karyawan
paths:
  /api/v1/overtimes:
    get:
      tags:
        - Overtimes
      summary: List lembur
      description: >-
        Mengambil daftar event lembur (start/end) dan sesi terpasang dengan
        durasi (jam & menit). Filter tanggal dan optional unique_employee_id.
      parameters:
        - name: date_from
          in: query
          schema:
            type: string
            format: date
          description: Tanggal awal (YYYY-MM-DD)
        - name: date_to
          in: query
          schema:
            type: string
            format: date
          description: Tanggal akhir (YYYY-MM-DD)
        - name: unique_employee_id
          in: query
          schema:
            type: string
          description: Filter by Unique ID karyawan (e.g. MULIA-1234567)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  overtimes:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        employee_id:
                          type: string
                          format: uuid
                        unique_employee_id:
                          type: string
                        date:
                          type: string
                        event_type:
                          type: string
                          enum:
                            - start
                            - end
                        event_time:
                          type: string
                        event_time_display:
                          type: string
                        notes:
                          type: string
                  sessions:
                    type: array
                    items:
                      type: object
                      properties:
                        employee_id:
                          type: string
                          format: uuid
                        unique_employee_id:
                          type: string
                        date:
                          type: string
                        start_time:
                          type: string
                        end_time:
                          type: string
                        duration_minutes:
                          type: integer
                        duration_hours:
                          type: integer
                        duration_mins:
                          type: integer
        '401':
          description: Missing or invalid API Key
      security:
        - apiKeyAuth: []
          clientId: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API Secret Key (emp_sk_...). Wajib dikirim bersama header
        **X-Client-ID** (Client ID perusahaan). Keduanya didapat dari Pengaturan
        → Perusahaan di dashboard.
    clientId:
      type: apiKey
      in: header
      name: X-Client-ID
      description: Client ID perusahaan (emp_cl_...). Wajib dikirim bersama **X-Api-Key**.

````