Get an on-call rotation

Get an on-call schedule's rotation, the order people are on call in and when shifts change.

GET https://incidents.betterstack.com/api/v3/on-call-schedules/{id}/rotation
id string required

ID of the on-call schedule. Also accepts default, your team's default schedule. Get the ID via List on-call schedules.

team_id string

Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.

Authorization string required

Bearer $TOKEN

200 OK
{
  "id": "123456789",
  "users": [
    "alice@example.com",
    "bob@example.com"
  ],
  "rotation_length": 1,
  "rotation_interval": "week",
  "start_rotations_at": "2026-01-05T09:00:00Z",
  "end_rotations_at": "2027-01-04T09:00:00Z",
  "timezone": "UTC",
  "effective_timezone": "UTC",
  "working_hours": [
    {
      "day": "monday",
      "start_time": "09:00",
      "end_time": "17:00"
    },
    {
      "day": "tuesday",
      "start_time": "09:00",
      "end_time": "17:00"
    }
  ],
  "team_id": "t123"
}

Returns the on-call rotation.

id string

The ID of the on-call rotation.

users array of strings

E-mail addresses of users in the rotation, in shift order. Each must be a responder in the schedule's team.

rotation_length integer

How long each shift lasts, in rotation_interval units. A whole number of at least 1.

rotation_interval string

Unit for rotation_length. Possible values: hour, day, week.

start_rotations_at datetime

When the rotation schedule starts. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

end_rotations_at datetime

When the rotation schedule ends. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

timezone string or null

Time zone for working_hours and for handovers across daylight saving changes. A new rotation with working_hours defaults to UTC.

effective_timezone string

The time zone working_hours are read in. Same as timezone when it's set, otherwise the schedule's default time zone, or UTC when neither is set.

working_hours array of objects

The times the rotation pages anyone, as up to 50 weekly windows in local time. Windows are returned as HH:MM, sorted by day. A window that ends at or before its start runs overnight, and one with the same start and end covers the whole day. Without working_hours, or with an empty list, the rotation pages around the clock. Order doesn't matter.

working_hours[].day string

The day of the week the window is on. Possible values: sunday, monday, tuesday, wednesday, thursday, friday, saturday.

working_hours[].start_time string

When the window starts, as HH:MM in 24-hour time.

working_hours[].end_time string

When the window ends, as HH:MM in 24-hour time.

team_id string

Team of the rotation's on-call schedule, such as t123.

Example cURL

Get an on-call rotation
curl --request GET \
  --url https://incidents.betterstack.com/api/v3/on-call-schedules/default/rotation \
  --header "Authorization: Bearer $TOKEN"