GET
/
v1
/
shifts
List shifts
curl --request GET \
  --url https://api.rootly.com/v1/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "cf104acf-6f47-4c44-838d-f623ec83e84f",
      "type": "shifts",
      "attributes": {
        "schedule_id": "839c49ea-130b-4ac7-b252-75f155bf6775",
        "rotation_id": "7f212a13-2bfd-484a-81b8-823f46ea1f73",
        "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": "478",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "f5b2318c-83f1-43dc-b65e-fbf887fc4adb",
      "type": "shifts",
      "attributes": {
        "schedule_id": "839c49ea-130b-4ac7-b252-75f155bf6775",
        "rotation_id": "73cd8e44-f657-4969-a357-fafa6e28970b",
        "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": "478",
            "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

Available options:
shift_override,
user
to
string

Start range for shifts

from
string

End range for shifts

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

Response

success

data
object[]
required