Skip to main content
GET
/
v1
/
shifts
List shifts
curl --request GET \
  --url https://api.rootly.com/v1/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "6db41624-6652-5f01-8b52-b21052bf9264",
      "type": "shifts",
      "attributes": {
        "schedule_id": "28771a58-2c60-4062-918a-60b839403d99",
        "rotation_id": "f73423a5-9bae-4ff0-8415-c29da1a0dca3",
        "user_id": 577,
        "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": "577",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "7890b759-aaaa-504d-9445-17711633aef0",
      "type": "shifts",
      "attributes": {
        "schedule_id": "28771a58-2c60-4062-918a-60b839403d99",
        "rotation_id": "28394677-4fc3-412f-9879-cb40e4c1fc70",
        "user_id": 577,
        "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": "577",
            "type": "users"
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

include
enum<string>

comma separated if needed. eg: shift_override,user. Note: user is deprecated, use assignee instead.

Available options:
shift_override,
user,
assignee
to
string

Start range for shifts

from
string

End range for shifts

user_ids[]
integer[]
schedule_ids[]
string[]

Response

success

data
object[]
required