List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "7211a1d9-4633-489e-9521-63b757093f35",
"type": "shifts",
"attributes": {
"schedule_id": "f9a44efc-d21a-4d25-a9f9-171936b93775",
"rotation_id": "e84bd0bb-4ab8-4b00-aa81-f41c4e962865",
"user_id": 1032,
"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": "1032",
"type": "users"
}
}
}
},
{
"id": "ba2a3035-8699-5ad7-9c40-ed7d1e24f41f",
"type": "shifts",
"attributes": {
"schedule_id": "f9a44efc-d21a-4d25-a9f9-171936b93775",
"rotation_id": "e853dd2f-9cfc-4efe-8dce-552a608d154e",
"user_id": 1032,
"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": "1032",
"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": "7211a1d9-4633-489e-9521-63b757093f35",
"type": "shifts",
"attributes": {
"schedule_id": "f9a44efc-d21a-4d25-a9f9-171936b93775",
"rotation_id": "e84bd0bb-4ab8-4b00-aa81-f41c4e962865",
"user_id": 1032,
"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": "1032",
"type": "users"
}
}
}
},
{
"id": "ba2a3035-8699-5ad7-9c40-ed7d1e24f41f",
"type": "shifts",
"attributes": {
"schedule_id": "f9a44efc-d21a-4d25-a9f9-171936b93775",
"rotation_id": "e853dd2f-9cfc-4efe-8dce-552a608d154e",
"user_id": 1032,
"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": "1032",
"type": "users"
}
}
}
}
]
}