Skip to main content
GET
/
v1
/
schedules
/
{id}
/
shifts
Retrieves a schedule shifts
curl --request GET \
  --url https://api.rootly.com/v1/schedules/{id}/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "2a7157d7-41b7-470a-acc6-71dcb2d26b6a",
      "type": "shifts",
      "attributes": {
        "schedule_id": "ba559aec-65ac-42ea-973b-4e499a8ef9f4",
        "rotation_id": "a19e3878-2c7f-4520-a900-62887489ec1c",
        "user_id": 564,
        "starts_at": "2025-12-24T07:28:08.000-08:00",
        "ends_at": "2025-12-24T11:28:08.000-08:00",
        "is_override": true
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "564",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "44733336-63c2-5ccc-8953-20507308b012",
      "type": "shifts",
      "attributes": {
        "schedule_id": "ba559aec-65ac-42ea-973b-4e499a8ef9f4",
        "rotation_id": "ce19984a-037c-4bfb-866f-9e4fc50afbd7",
        "user_id": 568,
        "starts_at": "2025-12-24T12:28:08.000-08:00",
        "ends_at": "2025-12-24T16:28:08.000-08:00",
        "is_override": false
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "568",
            "type": "users"
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Query Parameters

to
string
from
string

Response

schedule shifts found

data
object[]
required