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": "5e9cfa0a-413a-51df-a45e-f80ea051446e",
      "type": "shifts",
      "attributes": {
        "schedule_id": "9a6d1bb0-8196-4a5a-9d38-262f38f78d4a",
        "rotation_id": "c16e35ba-ceaa-4ea7-a6df-d9096121cf09",
        "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": "504",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "da43a2a9-972f-52e8-9b70-c24ad5ec411d",
      "type": "shifts",
      "attributes": {
        "schedule_id": "9a6d1bb0-8196-4a5a-9d38-262f38f78d4a",
        "rotation_id": "1a4b2ff5-7b2f-4288-a3ef-317a0e59e8db",
        "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": "504",
            "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