v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
Attendance > Shift

Reads all Shifts

Reads all Shifts

get/api/2026-07-01/resources/attendance/shifts

Query parameters

employee_ids[]string[]

filter by employee ids.

filter by employee ids.

[
  "1",
  "2",
  "3"
]
start_onstring

filter by shift that starts after or including this date.

Example:2023-09-30

filter by shift that starts after or including this date.

end_onstring

filter by shift that ends before or including this date.

Example:2023-10-01

filter by shift that ends before or including this date.

ids[]string[]

filter by ids.

filter by ids.

[
  "1",
  "2",
  "3"
]
half_dayboolean required

Flag to filter half day shifts

Flag to filter half day shifts

workableboolean

Flag to filter shifts in workable days

Example:true

Flag to filter shifts in workable days

latest_shiftboolean

Flag to filter only the latest shift for each employee

Example:true

Flag to filter only the latest shift for each employee

sort_created_at_ascboolean required

Flag to sort by created_at asc

Example:true

Flag to sort by created_at asc

breaks_with_time_configurationboolean

Flag to include breaks with time configuration

Example:true

Flag to include breaks with time configuration

last_working_shiftboolean

Filter by last working shift

Example:true

Filter by last working shift

updated_atstring

Filter shifts by the date they were last updated

Example:2023-10-01

Filter shifts by the date they were last updated

Response

OK

Example response

{
  "data": [
    {
      "id": "1",
      "employee_id": "1",
      "date": "2023-10-01",
      "reference_date": "2023-09-30",
      "clock_in": "08:30",
      "clock_out": "12:30",
      "in_source": "automatic",
      "out_source": "automatic",
      "observations": "Employee arrived late due to traffic",
      "location_type": "office",
      "half_day": "beginning_of_day",
      "in_location_latitude": 37.7749,
      "in_location_longitude": -122.419,
      "in_location_accuracy": 5,
      "out_location_latitude": 37.7749,
      "out_location_longitude": -122.419,
      "out_location_accuracy": 5.7,
      "workable": true,
      "created_at": "2023-10-01T08:00:00.000Z",
      "workplace_id": "1",
      "time_settings_break_configuration_id": "1",
      "company_id": "1",
      "updated_at": "2023-10-01T08:00:00.000Z",
      "minutes": 240,
      "clock_in_with_seconds": "08:30:15"
    }
  ]
}