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": "0b60c03c-9404-55af-9d61-3e86227559ff",
      "type": "shifts",
      "attributes": {
        "schedule_id": "839f49f2-a312-4317-b7b2-f1f2262b5438",
        "rotation_id": "f89f4be0-8557-47b3-b055-fde5d60905b9",
        "starts_at": "2025-11-19T18:45:24.000-08:00",
        "ends_at": "2025-11-19T22:45:24.000-08:00",
        "is_override": true
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "515",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "27c2fa73-dbc1-5906-ad58-db3aab5d12b4",
      "type": "shifts",
      "attributes": {
        "schedule_id": "839f49f2-a312-4317-b7b2-f1f2262b5438",
        "rotation_id": "8ff4ed0e-1214-4b92-ac51-46aed32af0a5",
        "starts_at": "2025-11-19T23:45:25.000-08:00",
        "ends_at": "2025-11-20T03:45:25.000-08:00",
        "is_override": false
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "519",
            "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