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": "ee647d3f-ade8-5d64-b67c-1713d2e8eec2",
      "type": "shifts",
      "attributes": {
        "schedule_id": "0686dc68-3891-459e-83d9-5e5f944eb323",
        "rotation_id": "ac7bf53f-4445-4eb5-93ee-de898d11cda5",
        "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": "513",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "57ed5e4b-dbcc-574f-a15b-2542876d56a8",
      "type": "shifts",
      "attributes": {
        "schedule_id": "0686dc68-3891-459e-83d9-5e5f944eb323",
        "rotation_id": "bc6ab336-a716-4b52-96d2-ccd1ecbf153d",
        "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": "513",
            "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
I