GET
/
v1
/
shifts
curl --request GET \
  --url https://api.rootly.com/v1/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "fb6a9288-0c71-458b-bc4b-1d21e1d9f59e",
      "type": "shifts",
      "attributes": {
        "schedule_id": "a749819b-69da-4519-b110-ae3fbbeb1b71",
        "rotation_id": "471d83de-cfd8-41d3-aa33-c1b77537c01e",
        "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": "461",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "23c899c2-f337-41cf-89c8-255003ae24ee",
      "type": "shifts",
      "attributes": {
        "schedule_id": "a749819b-69da-4519-b110-ae3fbbeb1b71",
        "rotation_id": "f15ec948-b6bb-46fb-982e-60a31b9b8d8b",
        "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": "461",
            "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.