v1
latestOpenAPI 3.1.02026-07-26549156879.0 KBReads all Shifts
Reads all Shifts
Query parameters
filter by employee ids.
filter by employee ids.
[ "1", "2", "3" ]
filter by shift that starts after or including this date.
filter by shift that starts after or including this date.
filter by shift that ends before or including this date.
filter by shift that ends before or including this date.
filter by ids.
filter by ids.
[ "1", "2", "3" ]
Flag to filter half day shifts
Flag to filter half day shifts
Flag to filter shifts in workable days
Flag to filter shifts in workable days
Flag to filter only the latest shift for each employee
Flag to filter only the latest shift for each employee
Flag to sort by created_at asc
Flag to sort by created_at asc
Flag to include breaks with time configuration
Flag to include breaks with time configuration
Filter by last working shift
Filter by last working shift
Filter shifts by the date they were last updated
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"
}
]
}