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": "1826f255-52d8-5b7e-adf4-11ed5a4a04dc",
      "type": "shifts",
      "attributes": {
        "schedule_id": "3c65ca0f-9df7-4c5e-aaad-e779b3c660f1",
        "rotation_id": "bdbd1dcb-2b5e-45bd-9468-7fc23e4208ae",
        "user_id": 577,
        "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": "577",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "e9e63ee0-2ccd-5446-9923-c12ebbdaacaf",
      "type": "shifts",
      "attributes": {
        "schedule_id": "3c65ca0f-9df7-4c5e-aaad-e779b3c660f1",
        "rotation_id": "bc9bf5b4-85f5-4ac7-adf2-aa1da30341f0",
        "user_id": 577,
        "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": "577",
            "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