# Sick leave registration event

> **Webhook**, Dyflexis sends this `POST` request to a URL **you** host. See the [Webhooks guide](/guides/webhooks) for how to register your receiver and what it must return.

Sends a message when a sick leave registration is created or
recovered. Use the envelope field `type` to determine which
event you received:
- `sick_leave_created`, a new sick-leave registration has been
filed.
- `sick_leave_recovered`, an existing registration has been
closed because the employee recovered.

The webhook can't be registered with this API. Please register
this webhook in Dyflexis.

Endpoint: POST sickLeaveRegistration
Security: apiKey

## Request fields (application/json):

  - `type` (string, required)
    Webhook event type.
    Enum: "sick_leave_created", "sick_leave_recovered"

  - `timestamp` (string, required)
    Event timestamp in ISO 8601 UTC.
    Example: 2026-02-25T14:20:35Z

  - `payload` (object, required)

  - `payload.id` (string, required)
    The id of the sick leave registration.
    Example: 01GYS27FFVTP63WGPV34V1WR6P

  - `payload.employeeId` (integer, required)
    The id of the employee.
    Example: 12

  - `payload.employeeReference` (string | null, required)
    External employee reference used by payroll/customer APIs, or null if not available.
    Example: EMP-EXT-123

  - `payload.personnelNumber` (string | null, required)
    The personnel number of the employee or null if no personnel number exists.
    Example: 23V600

  - `payload.startDate` (string, required)
    Example: 2026-12-31

  - `payload.endDate` (string | null, required)
    The actual registered end date of sick leave in ISO 8601, or null if no end date has been specified.
    Example: 2026-12-31

  - `payload.remark` (string | null, required)
    The remark of the sick leave registration, or null if none was given.
    Example: sore throat

  - `payload.recovered` (boolean, required)
    Indicates whether the employee is recovered.
    Example: false

  - `payload.sickDays` (array, required)

  - `payload.sickDays.id` (string)
    The id of the sick leave registration day.
    Example: 01GYS27FFVTP63WGPV34V1WR6P

  - `payload.sickDays.hourType` (string)
    The specified hour type for that day.
    Example: standard sick leave

