Get an on-call rotation
Get an on-call schedule's rotation, the order people are on call in and when shifts change.
ID of the on-call schedule. Also accepts default, your team's default schedule. Get the ID via List on-call schedules.
Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.
Bearer $TOKEN
{
"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"
}
{
"errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
{
"errors": "Couldn't find the specified on_call_rotation"
}
Returns the on-call rotation.
The API token is missing or invalid.
Your role doesn't allow viewing this, or the token can't be used for this API.
The schedule has no rotation, or no longer follows it.
The schedule is synced from an external calendar URL.
The ID of the on-call rotation.
E-mail addresses of users in the rotation, in shift order. Each must be a responder in the schedule's team.
How long each shift lasts, in rotation_interval units. A whole number of at least 1.
Unit for rotation_length. Possible values: hour, day, week.
When the rotation schedule starts. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
When the rotation schedule ends. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
Time zone for working_hours and for handovers across daylight saving changes. A new rotation with working_hours defaults to UTC.
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.
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.
The day of the week the window is on. Possible values: sunday, monday, tuesday, wednesday, thursday, friday, saturday.
When the window starts, as HH:MM in 24-hour time.
When the window ends, as HH:MM in 24-hour time.
Team of the rotation's on-call schedule, such as t123.
Example cURL