List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "72f863d6-5e4e-4f54-ab7d-432980ffac5f",
"type": "shifts",
"attributes": {
"schedule_id": "77a8b01f-0029-4a8d-86b5-77da3328325c",
"rotation_id": "1c72b377-68d0-486b-9c3d-eccef28ee591",
"user_id": 923,
"starts_at": "2024-07-02T21:00:00.000-07:00",
"ends_at": "2024-07-02T23:00:00.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "923",
"type": "users"
}
}
}
},
{
"id": "f1ed85d4-1f83-505e-aa7e-5d1f9f38df2f",
"type": "shifts",
"attributes": {
"schedule_id": "77a8b01f-0029-4a8d-86b5-77da3328325c",
"rotation_id": "28f5f961-a32e-43d7-b68d-82544fd1f582",
"user_id": 923,
"starts_at": "2024-07-02T19:00:00.000-07:00",
"ends_at": "2024-07-02T21:00:00.000-07:00",
"is_override": false
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "923",
"type": "users"
}
}
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
comma separated if needed. eg: shift_override,user. Note: user is deprecated, use assignee instead.
shift_override, user, assignee Start range for shifts in ISO-8601 format (e.g., 2025-01-01T00:00:00Z or 2025-01-01T00:00:00+00:00)
End range for shifts in ISO-8601 format (e.g., 2025-01-01T00:00:00Z or 2025-01-01T00:00:00+00:00)
success
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "72f863d6-5e4e-4f54-ab7d-432980ffac5f",
"type": "shifts",
"attributes": {
"schedule_id": "77a8b01f-0029-4a8d-86b5-77da3328325c",
"rotation_id": "1c72b377-68d0-486b-9c3d-eccef28ee591",
"user_id": 923,
"starts_at": "2024-07-02T21:00:00.000-07:00",
"ends_at": "2024-07-02T23:00:00.000-07:00",
"is_override": true
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "923",
"type": "users"
}
}
}
},
{
"id": "f1ed85d4-1f83-505e-aa7e-5d1f9f38df2f",
"type": "shifts",
"attributes": {
"schedule_id": "77a8b01f-0029-4a8d-86b5-77da3328325c",
"rotation_id": "28f5f961-a32e-43d7-b68d-82544fd1f582",
"user_id": 923,
"starts_at": "2024-07-02T19:00:00.000-07:00",
"ends_at": "2024-07-02T21:00:00.000-07:00",
"is_override": false
},
"relationships": {
"shift_override": {
"data": null
},
"user": {
"data": {
"id": "923",
"type": "users"
}
}
}
}
]
}