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.
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
| Parameter | Required | How to use it |
|---|---|---|
page_size | No | Records per page (1–500, default 100). |
cursor | No | Pass the previous page’s meta.next_cursor with the same filters and page size. |
employee_id | No | Employee UUID. Choose this or payroll_external_id. |
payroll_external_id | No | Exact payroll ID as a string, including leading zeros. |
payroll_source | No | Use payroll_source_ukg or payroll_source_paylocity to narrow a payroll ID lookup. |
location_id | No | UUID of a location your key can access. |
date_from | Yes | First local business date to include (YYYY-MM-DD). |
date_to | Yes | First date to exclude (YYYY-MM-DD). Request up to 31 days. |
Example response
{
"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
| Field | Type | Format / values |
|---|---|---|
id | string | uuid |
employee_id | string | uuid |
payroll_external_id | string or null | |
payroll_source | string or null | |
mapping_status | string | mapped, missing, duplicate |
location_id | string | uuid |
role_id | string or null | uuid |
role_name | string or null | |
business_date | string | date |
starts_at | string | date-time |
ends_at | string | date-time |
timezone | string | |
unpaid_meal_breaks | array of objects | |
unpaid_meal_breaks[].starts_at | string | date-time |
unpaid_meal_breaks[].ends_at | string | date-time |
unpaid_meal_breaks[].is_paid | boolean | |
scheduled_work_minutes | number |
For multi-page results, follow the pagination and synchronization guide before updating your records.
