Rightwork OG Image
Browse API documentation
API docsWorkforce API v1

Time entries

Get Rightwork timecards and breaks for a range of clock-in business dates.

Request

GET /api/external/v1/time-entries

Required scope: time_entries:read. Set up your key and base URL before running this example.

Shell
curl --fail-with-body \
  -H "Authorization: Bearer $RIGHTWORK_API_KEY" \
  -H "Accept: application/json" \
  "$RIGHTWORK_BASE_URL/api/external/v1/time-entries?date_from=2026-09-01&date_to=2026-10-01"

Parameters

ParameterRequiredHow to use it
page_sizeNoRecords per page (1–500, default 100).
cursorNoPass the previous page’s meta.next_cursor with the same filters and page size.
employee_idNoEmployee UUID. Choose this or payroll_external_id.
payroll_external_idNoExact payroll ID as a string, including leading zeros.
payroll_sourceNoUse payroll_source_ukg or payroll_source_paylocity to narrow a payroll ID lookup.
location_idNoUUID of a location your key can access.
date_fromYesFirst local business date to include (YYYY-MM-DD).
date_toYesFirst date to exclude (YYYY-MM-DD). Request up to 31 days.

Example response

JSON
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000000501",
      "employee_id": "00000000-0000-4000-8000-000000000123",
      "payroll_external_id": "00123",
      "payroll_source": "payroll_source_ukg",
      "mapping_status": "mapped",
      "location_id": "00000000-0000-4000-8000-000000000010",
      "role_id": "00000000-0000-4000-8000-000000000020",
      "business_date": "2026-09-17",
      "timezone": "America/Los_Angeles",
      "status": "manual_approved",
      "clocked_in_at": "2026-09-17T09:00:00-07:00",
      "clocked_out_at": "2026-09-17T17:00:00-07:00",
      "elapsed_minutes": 480,
      "minutes_less_unpaid_breaks": 450,
      "breaks": [
        {
          "id": "00000000-0000-4000-8000-000000000601",
          "starts_at": "2026-09-17T12:00:00-07:00",
          "ends_at": "2026-09-17T12:30:00-07:00",
          "is_paid": false
        }
      ]
    }
  ],
  "meta": {
    "request_id": "00000000-0000-4000-8000-000000000901",
    "snapshot_id": "00000000-0000-4000-8000-000000000902",
    "as_of": "2026-09-18T18:00:00+00:00",
    "scope_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "next_cursor": null,
    "complete": true
  }
}

In this example, 480 elapsed minutes minus a 30-minute unpaid break leaves 450 minutes. Paid breaks count toward minutes_less_unpaid_breaks. An unfinished punch or break can leave the end time or affected duration null.

Results include pending and denied timecards. Check status before importing approved work. For daily payable hours and pay, including POS imports, use the actual labor report with reports_actual_labor:read and one approved location.

Response fields

FieldTypeFormat / values
idstringuuid
employee_idstringuuid
payroll_external_idstring or null
payroll_sourcestring or null
mapping_statusstringmapped, missing, duplicate
location_idstringuuid
role_idstring or nulluuid
business_datestringdate
timezonestring
statusstringpending, auto_approved, auto_flag, manual_approved, manual_denied, pay_period_published
clocked_in_atstringdate-time
clocked_out_atstring or nulldate-time
elapsed_minutesnumber or null
minutes_less_unpaid_breaksnumber or null
breaksarray of objects
breaks[].idstringuuid
breaks[].starts_atstringdate-time
breaks[].ends_atstring or nulldate-time
breaks[].is_paidboolean

For multi-page results, follow the pagination and synchronization guide before updating your records.