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": "ba49ed84-fea8-4b88-a7ad-082808ae9db8",
      "type": "shifts",
      "attributes": {
        "schedule_id": "c15f0427-e414-45be-80ad-94a33d017f4b",
        "rotation_id": "1f7e93e0-bc8d-4f2d-939f-b263932a1d42",
        "user_id": 923,
        "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": "923",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "ecdc12e6-6fcd-5d51-b293-576245f70a1a",
      "type": "shifts",
      "attributes": {
        "schedule_id": "c15f0427-e414-45be-80ad-94a33d017f4b",
        "rotation_id": "b3cca737-409b-4a91-8fff-cd498fcafdf3",
        "user_id": 923,
        "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": "923",
            "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. Note: user is deprecated, use assignee instead.

Available options:
shift_override,
user,
assignee
from
string

Start range for shifts in ISO-8601 format (e.g., 2025-01-01T00:00:00Z or 2025-01-01T00:00:00+00:00)

to
string

End range for shifts in ISO-8601 format (e.g., 2025-01-01T00:00:00Z or 2025-01-01T00:00:00+00:00)

user_ids[]
integer[]
schedule_ids[]
string[]

Response

success

data
object[]
required