Object Overview

The Time Record Object

A time record represents a single clock-in / clock-out entry for an employee. Records have a type of either "work" or "break", and an active record (currently clocked in) has a null end timestamp.


Variants

ShapeReturned byExtra fields
List itemGET /time-records
DetailGET /time-records/:time_record_id, POST /time-records/clock-in, POST /time-records/clock-outstart_coordinates, end_coordinates, expires_at, note_img_url, end_note_img_url, employee

The detail shape is a superset of the list shape.


Field Reference

Core fields

FieldTypeDescription
time_record_idintegerUnique time record identifier.
typestringType of time record: "work" or "break".
startdate-timeClock-in timestamp.
enddate-time | nullClock-out timestamp. Null if the employee is still clocked in.
missed_clockoutbooleanWhether this record missed its automatic clock-out window.

Source fields

FieldTypeDescription
clockin_sourcestring | nullHow the employee clocked in (e.g. "partner_api", "web", "mobile").
clockout_sourcestring | nullHow the employee clocked out.
start_locationstringHuman-readable label for the clock-in location.
end_locationstring | nullHuman-readable label for the clock-out location.

Note fields

FieldTypeDescription
notestring | nullClock-in note.
end_notestring | nullClock-out note.

Association fields

FieldTypeDescription
employee_idintegerThe employee this record belongs to.
customer_idinteger | nullThe customer/job associated with this record.
project_idinteger | nullThe project associated with this record.
customerobject | nullCustomer summary with customer_id and name.
projectobject | nullProject summary with project_id and name.

Detail-only fields

FieldTypeDescription
start_coordinatesstring | null(Detail only) GPS coordinates at clock-in (e.g. "40.7128,-74.0060").
end_coordinatesstring | null(Detail only) GPS coordinates at clock-out.
expires_atdate-time | null(Detail only) Auto clock-out expiration time.
note_img_urlstring | null(Detail only) Image URL attached to clock-in note.
end_note_img_urlstring | null(Detail only) Image URL attached to clock-out note.
employeeobject(Detail only) Employee summary with employee_id, first_name, last_name.

Example: List Item

{
  "time_record_id": 1042,
  "type": "work",
  "start": "2026-03-05T09:00:00.000Z",
  "end": "2026-03-05T17:00:00.000Z",
  "clockin_source": "partner_api",
  "clockout_source": "partner_api",
  "start_location": "Partner API",
  "end_location": "Partner API",
  "note": "Starting morning shift",
  "end_note": null,
  "missed_clockout": false,
  "employee_id": 25,
  "customer_id": null,
  "project_id": null,
  "customer": null,
  "project": null
}

Example: Detail

{
  "time_record_id": 1042,
  "type": "work",
  "start": "2026-03-05T09:00:00.000Z",
  "end": "2026-03-05T17:00:00.000Z",
  "clockin_source": "partner_api",
  "clockout_source": "partner_api",
  "start_location": "Partner API",
  "end_location": "Partner API",
  "note": "Starting morning shift",
  "end_note": null,
  "missed_clockout": false,
  "employee_id": 25,
  "customer_id": null,
  "project_id": null,
  "customer": null,
  "project": null,
  "start_coordinates": null,
  "end_coordinates": null,
  "expires_at": "2026-03-06T00:00:00.000Z",
  "note_img_url": null,
  "end_note_img_url": null,
  "employee": {
    "employee_id": 25,
    "first_name": "John",
    "last_name": "Doe"
  }
}

Related