v1
latestOpenAPI 3.1.02026-07-26549156879.0 KBAttendance > Shift
Clocks in a shift
Records the start of a shift by setting the current time as the clock-in. The shift remains open and will not have a clock-out time until explicitly updated. If you need to clock out directly, consider using or subscribing to the clock-out endpoint
post/api/2026-07-01/resources/attendance/shifts/clock_in
Request body
Example request
{
"employee_id": "1",
"now": "2024-06-23T11:00:00.000+00:00",
"latitude": 52.377956,
"longitude": 4.89707,
"accuracy": 5,
"observations": "I clocked in 10 minutes before",
"location_type": "office",
"time_settings_break_configuration_id": "2",
"project_worker_id": "3",
"subproject_id": "4"
}Response
OK
Example response
{
"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"
}