GET
/
v1
/
shifts
curl --request GET \
  --url https://api.rootly.com/v1/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "423e94de-8601-48bc-92b1-889ae9cb05ef",
      "type": "shifts",
      "attributes": {
        "schedule_id": "edc3f794-91a3-457f-9b9d-8e7f8e7ed0bf",
        "rotation_id": "428a8542-c977-407f-bc37-abe000f10150",
        "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": "449",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "bb394aa7-c51e-4b61-9660-6ad15b091b3f",
      "type": "shifts",
      "attributes": {
        "schedule_id": "edc3f794-91a3-457f-9b9d-8e7f8e7ed0bf",
        "rotation_id": "5cab0818-8f4d-49ea-9f06-bc9aa82f79c1",
        "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": "449",
            "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?