Rightwork OG Image
Browse API documentation
API docsWorkforce API v1

Published schedules

Get published shifts assigned to employees within a date range.

Request

GET /api/external/v1/schedules

Required scope: schedules: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/schedules?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-000000000301",
      "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",
      "role_name": "Server",
      "business_date": "2026-09-17",
      "starts_at": "2026-09-17T09:00:00-07:00",
      "ends_at": "2026-09-17T17:00:00-07:00",
      "timezone": "America/Los_Angeles",
      "unpaid_meal_breaks": [
        {
          "starts_at": "2026-09-17T12:00:00-07:00",
          "ends_at": "2026-09-17T12:30:00-07:00",
          "is_paid": false
        }
      ],
      "scheduled_work_minutes": 450
    }
  ],
  "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,
    "publication_history": [
      {
        "location_id": "00000000-0000-4000-8000-000000000010",
        "role_type_filter": null,
        "date_from": "2026-09-14",
        "date_to": "2026-09-21",
        "published_at": "2026-09-11T17:00:00+00:00"
      }
    ]
  }
}

An eight-hour shift with a 30-minute unpaid meal has scheduled_work_minutes: 450. This is planned time by the local clock. The response includes up to two unpaid meal breaks. Paid rest breaks, open shifts, archived shifts, and draft edits are excluded.

meta.publication_history shows when a schedule was published and which roles it covered. A published period can contain zero assigned shifts. Overnight shifts include the next day’s date and UTC offset. If a local shift time is ambiguous or does not exist during a clock change, the API returns HTTP 409.

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
role_namestring or null
business_datestringdate
starts_atstringdate-time
ends_atstringdate-time
timezonestring
unpaid_meal_breaksarray of objects
unpaid_meal_breaks[].starts_atstringdate-time
unpaid_meal_breaks[].ends_atstringdate-time
unpaid_meal_breaks[].is_paidboolean
scheduled_work_minutesnumber

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