List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "07f947c9-bc2d-4136-8bc9-082ae10afc06",
"type": "shifts",
"attributes": {
"schedule_id": "708cf2cf-32d0-4379-b2ef-45b1fac691bb",
"rotation_id": "257de624-e9c8-46c4-ad81-ddf9bb968b33",
"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": "192992fb-8e2c-542e-a041-5d8233676f88",
"type": "shifts",
"attributes": {
"schedule_id": "708cf2cf-32d0-4379-b2ef-45b1fac691bb",
"rotation_id": "d93b9787-4ac0-44c9-88b8-cdb3b6178f7e",
"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": "07f947c9-bc2d-4136-8bc9-082ae10afc06",
"type": "shifts",
"attributes": {
"schedule_id": "708cf2cf-32d0-4379-b2ef-45b1fac691bb",
"rotation_id": "257de624-e9c8-46c4-ad81-ddf9bb968b33",
"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": "192992fb-8e2c-542e-a041-5d8233676f88",
"type": "shifts",
"attributes": {
"schedule_id": "708cf2cf-32d0-4379-b2ef-45b1fac691bb",
"rotation_id": "d93b9787-4ac0-44c9-88b8-cdb3b6178f7e",
"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"
}
}
}
}
]
}