List shifts
curl --request GET \
--url https://api.rootly.com/v1/shifts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "666df95d-244d-45a1-b199-41f33efb8c57",
"type": "shifts",
"attributes": {
"schedule_id": "09ac7586-58ce-43ef-a141-886e968bd539",
"rotation_id": "f67eca12-d029-4e2b-b484-c8e6ffaa8586",
"user_id": 1006,
"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": "1006",
"type": "users"
}
}
}
},
{
"id": "71507d35-ab31-5b58-97e7-3f6d34bc6c0e",
"type": "shifts",
"attributes": {
"schedule_id": "09ac7586-58ce-43ef-a141-886e968bd539",
"rotation_id": "36fb8284-e717-45db-9183-2c81e294e092",
"user_id": 1006,
"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": "1006",
"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": "666df95d-244d-45a1-b199-41f33efb8c57",
"type": "shifts",
"attributes": {
"schedule_id": "09ac7586-58ce-43ef-a141-886e968bd539",
"rotation_id": "f67eca12-d029-4e2b-b484-c8e6ffaa8586",
"user_id": 1006,
"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": "1006",
"type": "users"
}
}
}
},
{
"id": "71507d35-ab31-5b58-97e7-3f6d34bc6c0e",
"type": "shifts",
"attributes": {
"schedule_id": "09ac7586-58ce-43ef-a141-886e968bd539",
"rotation_id": "36fb8284-e717-45db-9183-2c81e294e092",
"user_id": 1006,
"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": "1006",
"type": "users"
}
}
}
}
]
}