Skip to main content
GET
/
workers
/
{id}
/
shifts
Get Worker Shifts
curl --request GET \
  --url https://api.roostedhr.com/api/1_12/workers/{id}/shifts \
  --header 'X-API-KEY: <api-key>'
{
  "shifts": [
    {
      "id": "1443208",
      "erf_id": "2205987",
      "start": "2026-03-17 10:00:00",
      "end": "2026-03-17 20:00:00",
      "event_id": "98765",
      "event_uuid": "gH1f2w5xE3",
      "event_name": "Test TP",
      "location": "Arrowhead Stadium",
      "erfComments": null,
      "star_ranking": null,
      "late_for_work": null,
      "nocall_noshow": null,
      "role_title": "Bartender",
      "formattedStart": "Mar 17th 2026",
      "formattedTime": "10:00 am",
      "formattedEnd": "Mar 17th 2026",
      "formattedEndTime": "8:00 pm"
    }
  ],
  "total": 1
}
This endpoint supports pagination via items_per_page and page query parameters.
Use the type parameter to filter by past or future shifts. This can be combined with start_date and end_date for more specific date range filtering.

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
integer
required

Worker ID

Query Parameters

type
enum<string>

Filter by past or future shifts relative to current time. Defaults to future. Ignored when start_date or end_date is provided.

Available options:
past,
future
start_date
string<date>

Filter shifts starting on or after this date. When provided, type is ignored.

Example:

"2026-01-01"

end_date
string<date>

Filter shifts ending on or before this date. When provided, type is ignored.

Example:

"2026-12-31"

items_per_page
integer

Number of items per page.

Required range: 1 <= x <= 100
page
integer

Page number.

Required range: x >= 1

Response

OK

shifts
WorkerShift · object[]

List of worker shifts.

total
integer

Total number of shifts matching the filter criteria.

Example:

32