Clock in an employee

Start a new time record for an employee. For employee and contractor records only: an admin record has no hours or shifts. An employee's open record is an open shift (type: work) or an open break (type: break), as GET /time-records with active=true shows. type: work (the default) starts a shift when the employee has no open record, and on an open break it returns the employee to work: the break record is closed and a new work record starts. type: break starts a break on an open shift: the work record is closed and a break record starts. Ending a break means returning the employee to work with this endpoint and type: work; it requires an open break. With no open break, the employee is not on a break and there is nothing to end: on an open shift they are already working (type: work returns 409, and clock-out would end the shift), and with no open record type: work would start a shift. If the employee already has an active record of a different type (e.g. switching from work to break), the existing record is automatically clocked out first. Use type "switch" to replace the current work record (e.g. changing customer/project) — this auto-clocks out the existing record and creates a new "work" record. Returns 409 if the employee already has an active record of the same type (response may include code: "TIMELINE_ALREADY_CLOCKED_IN" and a conflicts list). Returns 400 if the company requires a customer or project and neither is provided. Returns 400 if the specified customer or project is disabled. Returns 400 if job geofencing applies but start_coordinates is missing or invalid, or if coordinates are outside the allowed perimeter. Returns 429 with code: "TIMELINE_LOCK_NOT_ACQUIRED" if a concurrent clock-in is already being processed for this employee. The auto clock-out expiration is set based on the company's daily cut-off time. Also emits the same live admin websocket update as internal clock-in. Made by a signed-in Friday admin rather than an API key, it is the admin dashboard's clock-in: no start_coordinates are required, and the record is stamped as clocked in by that admin. Webhooks: emits time_record.created plus a dedicated live-clock event — time_record.clocked_in for a work record or job switch, time_record.break_started for a break. If an open record is auto-closed first, that record emits time_record.updated, plus time_record.break_ended when the closed record was a break. No time_record.clocked_out is emitted when a work record is closed by a break start or job switch — the employee is still on shift.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required

ID of the employee to clock in

string
enum

Type of time record. "work" and "break" are standard types. "switch" auto-clocks out the current work record and starts a new one (e.g. switching customer/project). Stored as "work" internally. Defaults to "work".

Allowed:
string

Optional clock-in note

integer

Optional customer/job to associate with this record

integer

Optional project to associate with this record

string

Device GPS as latitude,longitude (e.g. "40.7128,-74.0060"). Required when job geofencing applies for this employee and customer/project (same rules as the Friday mobile app); optional otherwise. Configure fences in the Friday web app.

string
length ≤ 500

Optional human-readable label for the clock-in location (used in notifications and reports).

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json