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": "e95ca310-db5b-5f57-a303-f4512fb5f7a3",
      "type": "shifts",
      "attributes": {
        "schedule_id": "440bba83-9536-4925-a507-1e14db57b24b",
        "rotation_id": "848f833d-e077-48ea-94d1-a2fb59e59175",
        "user_id": 528,
        "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": "528",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "31a3d5a2-fe0f-510c-874b-b7a493ed39e9",
      "type": "shifts",
      "attributes": {
        "schedule_id": "440bba83-9536-4925-a507-1e14db57b24b",
        "rotation_id": "a5f891c4-ab84-46d8-9a87-b810e13ca7ce",
        "user_id": 528,
        "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": "528",
            "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