> ## Documentation Index
> Fetch the complete documentation index at: https://hilo.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Time

> Clock in and out, see who's working, add and fix time entries, and read the schedule.

> [!NOTE]
>
> Paths are relative to `https://www.hiloscheduling.com/api/partner/v1`. "Needs" is the scope your key needs; Hilo must also have turned on the matching permission for your partner account. `{id}` is the business's Hilo id.

A time entry looks like this:

```json theme={null}
{
  "id": "a41c…",
  "shiftCode": "SH-1043",
  "employeeId": "0f5e…",
  "locationId": "…",
  "clockIn": "2026-11-24T15:58:02.000Z",
  "clockOut": null,
  "onBreak": false,
  "unpaidBreakMinutes": 0,
  "workedMinutes": 182,
  "source": "api",
  "edited": false,
  "version": 1
}
```

`edited` means it was added or changed by hand rather than clocked live. `version` goes up with every change.

## POST /organizations/\{id}/time/clock

Clock in, clock out, or start or end a break, right now. Needs `time:write`.

| Field | Required | |
| - | - | - |
| `employeeId` or `externalEmployeeId` | yes | Who |
| `action` | yes | `clock_in`, `clock_out`, `start_break` or `end_break` |
| `performedBy` | yes | Who pressed the button (often the employee) |
| `requestId` | no, but recommended | Your id for this tap. Sending it again returns the first result. |
| `locationId` | no | Defaults to their first location |

Hilo never throws away worked time. A clock-out without a clock-in is still saved and flagged for a manager. Clocking in twice is refused with `already_clocked_in`.

## GET /organizations/\{id}/time/clocked-in

Everyone on the clock now: `employeeId`, `displayName`, `since`, `onBreak`, `locationId` and `punchId`. Needs `time:read`.

## GET /organizations/\{id}/time/entries

Time entries by work date. `from` and `to` (default: the last 7 days, at most 62 days), `employee_id` and `location_id`. Needs `time:read`.

## POST /organizations/\{id}/time/entries

Add an entry for a shift that wasn't clocked. Needs `time:write`. Send `employeeId` (or `externalEmployeeId`), `date`, `clockIn` and/or `clockOut` (like `09:00`), and `performedBy`. Optional: `outDate` (for overnight shifts), `unpaidBreakMinutes`, `locationId` and `note`. Entries in a pay period that's already approved can't be added (`period_locked`).

## PATCH /organizations/\{id}/time/entries/\{entryId}

Fix an entry. Send only what changes (`clockIn`, `clockOut`, `date`, `outDate`, `unpaidBreakMinutes`, `locationId`), plus `reason` (required) and `performedBy`. Send the entry's `version` to make sure nobody else changed it since you read it (`version_conflict` if they did). Needs `time:write`.

## GET /organizations/\{id}/shifts

The published schedule: `id`, `employeeId`, `locationId`, `positionId`, `start` and `end`. `from` and `to` (default: today and the next 6 days, at most 62 days), `location_id` and `employee_id`. Drafts the manager hasn't published aren't included. Needs `time:read`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.