GET
/
v1
/
shifts
curl --request GET \
  --url https://api.rootly.com/v1/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "9e5a868a-d682-46ab-a7d0-f33ee2bf3598",
      "type": "shifts",
      "attributes": {
        "schedule_id": "e3431ca0-a993-40b4-94d3-f6645bccc934",
        "rotation_id": "4a459bec-8a31-4466-b232-7ed74dc461a8",
        "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": "449",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "b35690aa-5204-4db8-86b3-fad922e3e93a",
      "type": "shifts",
      "attributes": {
        "schedule_id": "e3431ca0-a993-40b4-94d3-f6645bccc934",
        "rotation_id": "155645f1-5408-4296-9dd1-b5319ed48a51",
        "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": "449",
            "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.