GET
/
v1
/
shifts
curl --request GET \
  --url https://api.rootly.com/v1/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "26d492aa-b6b4-4e9d-b8f0-9e2fcf9169ed",
      "type": "shifts",
      "attributes": {
        "schedule_id": "764e5840-a5b8-40fc-a4a1-c0e741443c6e",
        "rotation_id": "dd3804f4-dc69-483f-9838-587d0205869f",
        "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": "451",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "98884dba-394d-4bf4-a237-648283798b7c",
      "type": "shifts",
      "attributes": {
        "schedule_id": "764e5840-a5b8-40fc-a4a1-c0e741443c6e",
        "rotation_id": "371ba9a9-00dd-4349-9ff0-1e13baf320a2",
        "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": "451",
            "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

200
application/vnd.api+json
success

The response is of type object.