GET
/api/public/v1/time-clock-entries

List time clock entries

Hours actually worked, as opposed to hours scheduled. An entry with a null `clockOutAt` is somebody currently on the clock. `hr:admin` reads the whole company; anyone else reads their own, because a timesheet is personal until someone is responsible for payroll.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.

hr:read

Query Parameters

NameTypeRequiredDescription
limitnumberOptionalMaximum number of items to return (1-100).Default: 20
offsetnumberOptionalNumber of items to skip before starting to collect the result set.Default: 0
sortBystringOptionalField to sort by. Allowed values vary by endpoint.Default: createdAt
sortOrderstring
asc
desc
OptionalSort direction.Default: desc
searchstringOptionalFree-text search across the resource’s primary fields.
createdAfterstringOptionalISO 8601 timestamp — only return items created after this time.
createdBeforestringOptionalISO 8601 timestamp — only return items created before this time.
updatedAfterstringOptionalISO 8601 timestamp — only return items updated after this time.
employeeIdstringOptionalOne person’s timesheet. Needs `hr:admin` to reach anyone but yourself.
locationIdstringOptionalHours at one location.
openbooleanOptionalSet `true` for entries still on the clock.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/time-clock-entries" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "Time clock entries retrieved successfully!",
  "content": {
    "entries": [
      {
        "id": "tce_5a2b",
        "employeeId": "emp_44f1",
        "locationId": "loc_abc123",
        "shiftId": "shf_9911",
        "clockInAt": "2026-08-29T13:02:00.000Z",
        "clockOutAt": null,
        "createdAt": "2026-08-29T13:02:00.000Z",
        "updatedAt": "2026-08-29T13:02:00.000Z"
      }
    ],
    "pagination": {
      "total": 42,
      "limit": 20,
      "offset": 0,
      "hasMore": true
    }
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Sidebar → clock
/dashboard
  1. The clock control in the sidebar shows your current entry and today’s hours.