Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Get sick days history

Returns a paginated list of all sick day records for the current employee.

What is returned:

  • Start and end dates of sick periods
  • Comments/notes about the illness
  • Attached medical certificate file IDs (if provided)

Note: This endpoint is only available for employee accounts. Supports server-side pagination, sorting, and filtering via grid query parameters.

GET/account/employee/sick-days
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Query parameters
pagenumber
Page number (1-based)
pageSizenumber
Number of items per page
viewIdstring
View identifier for saved grid configurations
filtersstring
JSON string containing filter configuration. **Available Fields:** - **id** (string): Sickness entry ID - **dateFrom** (date): Sick leave start date - **dateTo** (date): Sick leave end date - **employeeId** (string): Employee ID **Filter Structure:** ```json [ { "type": "string|number|date|set|boolean|array|task_status|task_type", "fieldName": "field_name", "value": { "comparison": "comparison_type", "value": "filter_value" } } ] ``` **Group Filters (AND/OR Combinations):** ```json [ { "type": "group", "fieldName": "group0.18807479823070028", "value": { "type": "or", "filters": [ { "type": "string", "fieldName": "fileName", "value": { "comparison": "contain", "value": "aa" } }, { "type": "number", "fieldName": "rowCount", "value": { "comparison": ">=", "value": 33 } } ] } } ] ``` **Available Comparison Operators:** - **id** (string): Sickness entry ID (string filter). Available comparisons: contain, not_contain, equal, starts_with, ends_with, is_empty, is_not_empty - **dateFrom** (date): Sick leave start date (date filter). Available comparisons: equal, not_equal, >, <, >=, <=, between, lastMonth, thisMonth, is_empty, is_not_empty - **dateTo** (date): Sick leave end date (date filter). Available comparisons: equal, not_equal, >, <, >=, <=, between, lastMonth, thisMonth, is_empty, is_not_empty - **employeeId** (string): Employee ID (string filter). Available comparisons: contain, not_contain, equal, starts_with, ends_with, is_empty, is_not_empty **Note:** Use `quickSearch` parameter for simple text search instead of adding it to filters.
sortstring
JSON array of sort objects. **Sortable Fields:** - **id**: Sickness entry ID - **dateFrom**: Sick leave start date - **dateTo**: Sick leave end date - **employeeId**: Employee ID **Sort Structure:** ```json [ { "field": "field_name", "direction": "asc|desc" } ] ``` **Default Sort:** dateFrom (desc)
fieldsToReturnany[]
Comma-separated list of field names to include in response items. If not provided, all fields are returned. **Available Fields:** id, dateFrom, dateTo, employeeId, comment, attachedFilesIds
Responses
200
itemsSicknessRowResponse[]required
Show properties
Array of SicknessRowResponse
attachedFilesIdsstring[]required
commentstring | nullrequired
dateFromstringrequired
dateTostringrequired
employeeIdstringrequired
idstringrequired
pagenumberrequired
pageSizenumberrequired
totalnumberrequired
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404Employee not found
Request
curl -X GET "https://leadtime.app/api/public/account/employee/sick-days" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "items": [
    {
      "attachedFilesIds": [
        "file1.pdf",
        "file2.jpg"
      ],
      "comment": "Flu symptoms",
      "dateFrom": "2024-06-01T00:00:00.000Z",
      "dateTo": "2024-06-03T00:00:00.000Z",
      "employeeId": "123e4567-e89b-12d3-a456-426614174001",
      "id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "page": 1,
  "pageSize": 10,
  "total": 15
}