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": "45bd3916-7a02-4bdc-bfbd-d563472833d0",
      "type": "shifts",
      "attributes": {
        "schedule_id": "56f37204-b037-46d6-a732-3895832e3c37",
        "rotation_id": "8e2e8db4-f3fb-4c8a-9413-59ffe25985dd",
        "starts_at": "2025-08-28T12:04:53.000-07:00",
        "ends_at": "2025-08-28T16:04:53.000-07:00",
        "is_override": true
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "465",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "40d4668a-0ee9-4d57-9d29-05c99789c26c",
      "type": "shifts",
      "attributes": {
        "schedule_id": "56f37204-b037-46d6-a732-3895832e3c37",
        "rotation_id": "f667bd68-5987-4285-8c59-f13f938a030e",
        "starts_at": "2025-08-28T17:04:54.000-07:00",
        "ends_at": "2025-08-28T21:04:54.000-07:00",
        "is_override": false
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "469",
            "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

200
application/vnd.api+json

schedule shifts found

The response is of type object.