Retrieves schedule shifts
curl --request GET \
--url https://api.rootly.com/v1/schedules/{id}/shifts \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "41bb2577-9eb3-496f-8fdd-e2c71483e15f",
"type": "shifts",
"attributes": {
"schedule_id": "5ce1b8ac-66da-476e-8aa5-d6b6225a1997",
"rotation_id": "208cfa0a-d882-4e0a-a254-e4264999f832",
"starts_at": "2025-08-08T07:16:18.000-07:00",
"ends_at": "2025-08-08T11:16:18.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "449",
"type": "users"
}
}
}
},
{
"id": "6e28fe04-5470-42b1-aa75-35e35fbfabb7",
"type": "shifts",
"attributes": {
"schedule_id": "5ce1b8ac-66da-476e-8aa5-d6b6225a1997",
"rotation_id": "543107e8-8167-4a36-b69a-90d6cab83735",
"starts_at": "2025-08-08T12:16:18.000-07:00",
"ends_at": "2025-08-08T16:16:18.000-07:00",
"is_override": false
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "453",
"type": "users"
}
}
}
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
schedule shifts found
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api.rootly.com/v1/schedules/{id}/shifts \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "41bb2577-9eb3-496f-8fdd-e2c71483e15f",
"type": "shifts",
"attributes": {
"schedule_id": "5ce1b8ac-66da-476e-8aa5-d6b6225a1997",
"rotation_id": "208cfa0a-d882-4e0a-a254-e4264999f832",
"starts_at": "2025-08-08T07:16:18.000-07:00",
"ends_at": "2025-08-08T11:16:18.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "449",
"type": "users"
}
}
}
},
{
"id": "6e28fe04-5470-42b1-aa75-35e35fbfabb7",
"type": "shifts",
"attributes": {
"schedule_id": "5ce1b8ac-66da-476e-8aa5-d6b6225a1997",
"rotation_id": "543107e8-8167-4a36-b69a-90d6cab83735",
"starts_at": "2025-08-08T12:16:18.000-07:00",
"ends_at": "2025-08-08T16:16:18.000-07:00",
"is_override": false
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "453",
"type": "users"
}
}
}
}
]
}