GET
/
v1
/
shifts
curl --request GET \
  --url https://api.rootly.com/v1/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "154face0-5b17-4492-92a0-357dc298087f",
      "type": "shifts",
      "attributes": {
        "schedule_id": "a7783895-17d4-4488-8550-f1b4b9a5649a",
        "rotation_id": "d9ec7cee-4ada-4cca-9f6c-56670e51b467",
        "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": "481",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "fba06876-4f30-4a30-99ab-f912d74a98a0",
      "type": "shifts",
      "attributes": {
        "schedule_id": "a7783895-17d4-4488-8550-f1b4b9a5649a",
        "rotation_id": "00a0bd77-fa54-4b2c-930a-a8a4838f0b0e",
        "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": "481",
            "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

200
application/vnd.api+json
success
data
object[]
required

Was this page helpful?