Skip to content

List rotations

GET
/v1/rotations
curl --request GET \
--url https://api.roundrobinbot.eu/v1/rotations \
--header 'Authorization: Bearer <token>'

The workspace’s rotations, a page at a time, narrowed to the ones this key may reach. Add code to find the one rotation answering to a short code. No ETag: a page is assembled from many rotations, and no single version stands behind it.

page
integer format: int32

Page number, starting at 1. Defaults to 1.

pageSize
integer format: int32

Rows per page, from 1 to 100. Defaults to 25.

sort
string

The field and direction, name|asc or createdAt|desc. Fields are name, createdAt and updatedAt. Defaults to name|asc.

q
string

Narrows the list to rotations whose name contains this text.

code
string

Narrows the list to the rotation whose short code is this value, matched whole and without regard to case. A blank value matches nothing.

enabled
boolean

Narrows the list to rotations that are switched on (true) or off (false).

mode
string

Narrows the list to one rotation mode: manual, auto or external.

OK

Media typeapplication/json

The envelope every /v1 collection comes back in.

object
data
Array<object>

A rotation: the grid of duties it runs, who is in it, and who holds each place right now.

object
cells

Every lane crossed with every window, and whoever holds each one.

Array<object>

A lane crossed with a window: one place somebody can be on duty.

object
holder
One of:
null
id
string
laneId
string
rosterId

Which list this place is dealt from, matching an entry in the rotation’s rosters.

null | string
stopped

Whether this place is defined but not running, because the workspace is not on a paid plan.

boolean
windowId
string
channelSettings

Every channel this rotation uses, each saying what Round Robin does in it. Write one with PUT /v1/rotations/{rotationId}/channels/{channelId}.

Array<object>

One Slack channel a rotation uses, and what Round Robin does in it.

object
channelId

The Slack channel id, for example C0123456789.

string
postsMessages

Whether hand-overs, reminders and mentions of this rotation are posted in this channel.

boolean
syncsTopic

Whether this channel’s topic is rewritten with whoever is on duty when duty changes hands. Reported as false on every channel when enableTopic is off, whatever the channel itself holds, so a reader never has to combine two fields to know whether a topic is written.

boolean
channels

The channels this rotation posts in: the same facts as channelSettings, flattened to the ids that receive duty messages.

Array<string>
code

The short code the rotation answers to in Slack.

null | string
createdAt
string format: date-time
description
null | string
doubleCover

Whether one person may hold two places at once when the list behind them is too short to fill both.

boolean
enableTopic

Whether the rotation keeps channel topics pointed at whoever is on duty. The switch for the whole rotation: with it off, no channel’s topic is written whatever its own syncsTopic says.

boolean
enabled
boolean
heldSeats

How many places on this rotation have somebody on call right now.

integer format: int32
id
string
isGrid

Whether this rotation has more than one place to be on duty at once.

boolean
lanes

The rows of the grid: the kinds of duty this rotation runs.

Array<object>

A row of the grid: a kind of duty, such as primary or backend.

object
id
string
name

What the customer calls this lane, and absent until they name it.

null | string
members

Everybody in the rotation: the union across every list it draws on.

object
userGroups

Members that came in through a Slack user group, listed under the group they came from. Add or remove somebody in Slack’s group and the rotation follows.

Array<object>

A Slack user group in the rotation, and the people currently in it.

object
userGroupId
string
users
Array<object>

One member of a rotation.

object
sequenceNumber

Where the member sits in the order the lists are built from.

integer format: int32
userId
string
users

Members added individually.

Array<object>

One member of a rotation.

object
sequenceNumber

Where the member sits in the order the lists are built from.

integer format: int32
userId
string
mode

manual, auto or external.

string
name
string
onCall

The on-call resource, embedded, so the common question needs no second call.

object
externalAssignments
One of:
null
nextOnCall

Who takes each seat next, one entry per running seat of a native rotation, earliest start first, ties in window order and then lane order. A seat whose window is shut lists the person who comes back when it opens (comingBack); otherwise the person its next hand-over deals. Absences are not resolved, since the scheduler skips somebody who is away only when it deals. Empty for a randomised rotation, which draws at the hand-over, for a switched-off rotation, and for a provider-owned one (read externalAssignments).

Array<object> | null

The person who takes one seat next, and when.

object
cellId

Cell the person takes.

string
comingBack

Whether this is the seat’s holder resuming when a shut window opens, rather than a new person being dealt. Read since as a hand-over only where this is false.

boolean
laneId

Lane containing the cell.

string
laneName

Lane name, when available.

null | string
since

When the person takes the seat in UTC: the window’s next hand-over, or the moment it opens where the same person is coming back. Null where the window has no computed firing (a manual one).

null | string format: date-time
turn

Their position in the native turn order.

integer format: int32
turnEnds

When their turn ends in UTC, where the window has a hand-over after that.

null | string format: date-time
userId

Slack user ID of the person who takes the seat.

string
windowId

Window containing the cell.

string
windowName

Window name, when available.

null | string
nobodyOnCallReason

Why nobody is on call: nobody-on-call-unplanned when a running place is open and has nobody in it, nobody-on-call-as-arranged when every running place is shut by its hours. The two spellings the duty history uses. Absent while any place is live, even if another lane has no one: an empty onCall with no reason here is a person with no Slack identity, so read externalAssignments or unmappedExternalDuty. Places a downgrade stopped count for neither.

null | string
onCall

Current mapped Slack assignments. An empty list does not establish a coverage gap: check externalAssignments or unmappedExternalDuty.

Array<object>

One current mapped Slack assignment. A user can appear more than once when they hold multiple assignments.

object
cellId

Cell holding this assignment.

null | string
coveredUntil

Exclusive end in UTC of this stretch of cover: the window closing, or the turn ending if that comes first. Null while nothing bounds the stretch.

null | string format: date-time
laneId

Lane containing the cell. Lanes for external assignments do not identify provider roles.

null | string
laneName

Lane name, when available.

null | string
since

Assignment start in UTC, when known.

null | string format: date-time
skippedForAbsence

Members skipped for absence when this assignment began.

Array<object>

A member skipped because of an absence at assignment time.

object
from

Absence start in UTC, when known.

null | string format: date-time
source

Absence source: googleCalendar or internalAvailability. Null when the source is unknown.

null | string
until

Absence end in UTC, when known.

null | string format: date-time
userId

Slack user ID of the skipped member.

string
turn

Position in the native turn order. External assignments have no native turn order.

integer format: int32
turnEnds

When this person’s turn ends in UTC: the next hand-over of the seat, which can be later than coveredUntil when the window closes first. Null where nothing hands the seat over.

null | string format: date-time
userId

Slack user ID of the person on duty.

string
windowId

Window containing the cell. External assignment windows do not define provider recurrence.

null | string
windowName

Window name, when available.

null | string
rotationId

Rotation ID.

string
unmappedExternalDuty
One of:
null
users

Directory records for current mapped Slack users and skipped members when ?expand=users is requested. Null otherwise. Expansion disables ETag validation.

Array<object> | null

A Slack user, as Round Robin knows them.

object
avatarUrl

The person’s Slack avatar, at 192px.

null | string
displayName
null | string
email

Null when the install was never granted users:read.email, not only when unknown.

null | string
id

The Slack user id.

string
isDeleted

Deactivated in Slack, or gone from the workspace. These people are still answered rather than hidden, so an id a rotation still names resolves to something you can render.

boolean
isExternal

A Slack Connect person: visible through a shared channel, never a member of the workspace.

boolean
isGuest
boolean
realName
null | string
teamId

The workspace that owns this person’s directory entry, which under Enterprise Grid can differ from the calling key’s workspace.

string
timeZone

The person’s Slack time zone, as an IANA identifier (Europe/Rome). Absent when Round Robin has not seen one for them.

null | string
onDutyUserGroupId

The Slack user group kept in sync with whoever is on call.

null | string
openSeats

How many places on this rotation have nobody on them at all.

integer format: int32
owners
Array<string>
public

Whether every member of the workspace can see the rotation.

boolean
rosters

The lists this rotation deals from, each in the order this rotation deals it.

Array<object>

A list this rotation deals from, in the order this rotation deals it.

object
name

The list’s name. Absent when the list could not be read.

null | string
nextTurn

The turn the next handover deals from.

integer format: int32
order

The turn order: who is dealt, and in what order.

Array<object>

One position in a turn order.

object
turn
integer format: int32
userGroupId

Set when the member is in the order by way of a user group.

null | string
userId
string
rosterId

The list this order belongs to. Absent on a rotation whose people are not on a shared list yet.

null | string
runningLanes

How many lanes are running, which is how many people hold the shift at once.

integer format: int32
skipsAreOffTime

Whether days the cadence skips (weekends, national holidays) count as time the rotation is not covered. One switch for the whole rotation, read into every window’s own reading.

boolean
topicTemplate

The template the topic is written from, or null to use Round Robin’s own wording. Shares its placeholders with the message templates, which are not part of this version.

null | string
updatedAt
string format: date-time
windows

The columns of the grid: covered hours, a time zone, and a handover cadence.

Array<object>

A column of the grid: when the rotation is covered, and how often duty changes hands there.

object
alwaysOpen

Whether the window restricts nothing: open the whole week, every week.

boolean
cadence

How often duty changes hands in this column.

object
countryCodes

The countries whose weekends and holidays the skips are read from.

Array<string>
dayOfMonth

Set for dayOfMonth.

null | integer format: int32
dayOfWeek

Set for dayOfWeek and nthWeekdayOfMonth.

null | string
daysOfWeek

Set for daysOfWeekList.

Array<string> | null
nextEvents

The next hand-overs this window has already scheduled. For anything further out, ask for a window from GET /v1/rotations/{rotationId}/schedule.

Array<string>
partner

Set for external: which partner drives the rotation. One of pagerDuty, jsm for Jira Service Management, or none when the rotation is external but no partner is linked yet.

null | string
period

How many units of the cadence’s own kind sit between two hand-overs.

integer format: int32
skipNationalHolidays
boolean
skipWeekends
boolean
startsAt

When the cadence starts, in its own time zone.

string format: date-time
timeZone

The time zone the cadence was configured with, as its own identifier (Europe/Rome). Never rewritten to the tzdb canonical name a linked city shares.

string
times

Set for daily: the times of day it hands over at.

Array<string> | null
type

One of dayOfWeek, daysOfWeekList, dayOfMonth, nthWeekdayOfMonth, daily, workday, manual or external. Fields that mean nothing for the type are absent rather than defaulted, so test for presence rather than for a zero.

string
weeksInMonth

Set for nthWeekdayOfMonth: which occurrences in the month, 1 through 5.

Array<integer> | null
coverage

The repeating week this window is open for, as stored. Empty means the whole week.

Array<object>

One stretch of the coverage week, which may run past midnight into the next day.

object
endDay
string
endTime
string
startDay

A weekday name, monday through sunday.

string
startTime

A time of day, HH:mm.

string
currentCoverage
One of:
null
id
string
name
null | string
nextCoverage
One of:
null
openNow

Whether the window is open at the moment of the response.

boolean
timeZone

The one zone this window’s covered hours are expressed in, as its own identifier (Europe/Rome). Never rewritten to the tzdb canonical name a linked city shares. Empty on a manual rotation, which has no cadence and so no zone to express one in.

string
page
integer format: int32
pageSize
integer format: int32
totalItems
integer format: int64
totalPages
integer format: int32
Examplegenerated
{
"data": [
{
"cells": [
{
"holder": {
"coveredUntil": "2026-04-15T12:00:00Z",
"externalUser": {
"email": "example",
"name": "example"
},
"since": "2026-04-15T12:00:00Z",
"skippedForAbsence": [
{
"from": "2026-04-15T12:00:00Z",
"source": "example",
"until": "2026-04-15T12:00:00Z",
"userId": "example"
}
],
"turn": 1,
"turnEnds": "2026-04-15T12:00:00Z",
"userId": "example",
"waiting": true
},
"id": "example",
"laneId": "example",
"rosterId": "example",
"stopped": true,
"windowId": "example"
}
],
"channelSettings": [
{
"channelId": "example",
"postsMessages": true,
"syncsTopic": true
}
],
"channels": [
"example"
],
"code": "example",
"createdAt": "2026-04-15T12:00:00Z",
"description": "example",
"doubleCover": true,
"enableTopic": true,
"enabled": true,
"heldSeats": 1,
"id": "example",
"isGrid": true,
"lanes": [
{
"id": "example",
"name": "example"
}
],
"members": {
"userGroups": [
{
"userGroupId": "example",
"users": [
{
"sequenceNumber": 1,
"userId": "example"
}
]
}
],
"users": [
{
"sequenceNumber": 1,
"userId": "example"
}
]
},
"mode": "example",
"name": "example",
"onCall": {
"externalAssignments": {
"asOfUtc": "2026-04-15T12:00:00Z",
"assignedAssignmentCount": 1,
"coverage": "example",
"current": [
{
"cellId": "example",
"externalAssignment": {
"memberKind": "example",
"originalEndUtc": "2026-04-15T12:00:00Z",
"originalStartUtc": "2026-04-15T12:00:00Z",
"overrideId": "example",
"participantId": "example",
"rotationId": "example",
"shiftId": "example",
"sourceType": "example"
},
"externalEmail": "example",
"externalName": "example",
"localAssignmentId": "example",
"sinceUtc": "2026-04-15T12:00:00Z",
"untilUtc": "2026-04-15T12:00:00Z",
"user": "example"
}
],
"distinctParticipantCount": 1,
"distinctResponderCount": 1,
"emptyAssignmentCount": 1,
"knownFromUtc": "2026-04-15T12:00:00Z",
"knownUntilUtc": "2026-04-15T12:00:00Z",
"lastReadFailure": "example",
"lastReadFailureUtc": "2026-04-15T12:00:00Z",
"lastSuccessfulReadUtc": "2026-04-15T12:00:00Z",
"nextChange": {
"atUtc": "2026-04-15T12:00:00Z",
"continuing": [
{
"cellId": "example",
"externalAssignment": {
"memberKind": "example",
"originalEndUtc": "2026-04-15T12:00:00Z",
"originalStartUtc": "2026-04-15T12:00:00Z",
"overrideId": "example",
"participantId": "example",
"rotationId": "example",
"shiftId": "example",
"sourceType": "example"
},
"externalEmail": "example",
"externalName": "example",
"localAssignmentId": "example",
"sinceUtc": "2026-04-15T12:00:00Z",
"untilUtc": "2026-04-15T12:00:00Z",
"user": "example"
}
],
"ending": [
{
"cellId": "example",
"externalAssignment": {
"memberKind": "example",
"originalEndUtc": "2026-04-15T12:00:00Z",
"originalStartUtc": "2026-04-15T12:00:00Z",
"overrideId": "example",
"participantId": "example",
"rotationId": "example",
"shiftId": "example",
"sourceType": "example"
},
"externalEmail": "example",
"externalName": "example",
"localAssignmentId": "example",
"sinceUtc": "2026-04-15T12:00:00Z",
"untilUtc": "2026-04-15T12:00:00Z",
"user": "example"
}
],
"starting": [
{
"cellId": "example",
"externalAssignment": {
"memberKind": "example",
"originalEndUtc": "2026-04-15T12:00:00Z",
"originalStartUtc": "2026-04-15T12:00:00Z",
"overrideId": "example",
"participantId": "example",
"rotationId": "example",
"shiftId": "example",
"sourceType": "example"
},
"externalEmail": "example",
"externalName": "example",
"localAssignmentId": "example",
"sinceUtc": "2026-04-15T12:00:00Z",
"untilUtc": "2026-04-15T12:00:00Z",
"user": "example"
}
]
},
"noAnswerReason": "example",
"requiredAssignmentCount": 1,
"state": "example",
"unmappedAssignmentCount": 1
},
"nextOnCall": [
{
"cellId": "example",
"comingBack": true,
"laneId": "example",
"laneName": "example",
"since": "2026-04-15T12:00:00Z",
"turn": 1,
"turnEnds": "2026-04-15T12:00:00Z",
"userId": "example",
"windowId": "example",
"windowName": "example"
}
],
"nobodyOnCallReason": "example",
"onCall": [
{
"cellId": "example",
"coveredUntil": "2026-04-15T12:00:00Z",
"laneId": "example",
"laneName": "example",
"since": "2026-04-15T12:00:00Z",
"skippedForAbsence": [
{
"from": "2026-04-15T12:00:00Z",
"source": "example",
"until": "2026-04-15T12:00:00Z",
"userId": "example"
}
],
"turn": 1,
"turnEnds": "2026-04-15T12:00:00Z",
"userId": "example",
"windowId": "example",
"windowName": "example"
}
],
"rotationId": "example",
"unmappedExternalDuty": {
"email": "example",
"name": "example",
"until": "2026-04-15T12:00:00Z"
},
"users": [
{
"avatarUrl": "example",
"displayName": "example",
"email": "example",
"id": "example",
"isDeleted": true,
"isExternal": true,
"isGuest": true,
"realName": "example",
"teamId": "example",
"timeZone": "example"
}
]
},
"onDutyUserGroupId": "example",
"openSeats": 1,
"owners": [
"example"
],
"public": true,
"rosters": [
{
"name": "example",
"nextTurn": 1,
"order": [
{
"turn": 1,
"userGroupId": "example",
"userId": "example"
}
],
"rosterId": "example"
}
],
"runningLanes": 1,
"skipsAreOffTime": true,
"topicTemplate": "example",
"updatedAt": "2026-04-15T12:00:00Z",
"windows": [
{
"alwaysOpen": true,
"cadence": {
"countryCodes": [
"example"
],
"dayOfMonth": 1,
"dayOfWeek": "example",
"daysOfWeek": [
"example"
],
"nextEvents": [
"2026-04-15T12:00:00Z"
],
"partner": "example",
"period": 1,
"skipNationalHolidays": true,
"skipWeekends": true,
"startsAt": "2026-04-15T12:00:00Z",
"timeZone": "example",
"times": [
"example"
],
"type": "example",
"weeksInMonth": [
1
]
},
"coverage": [
{
"endDay": "example",
"endTime": "example",
"startDay": "example",
"startTime": "example"
}
],
"currentCoverage": {
"endUtc": "2026-04-15T12:00:00Z",
"startUtc": "2026-04-15T12:00:00Z"
},
"id": "example",
"name": "example",
"nextCoverage": {
"endUtc": "2026-04-15T12:00:00Z",
"startUtc": "2026-04-15T12:00:00Z"
},
"openNow": true,
"timeZone": "example"
}
]
}
],
"page": 1,
"pageSize": 1,
"totalItems": 1,
"totalPages": 1
}

Bad Request

Media typeapplication/json
object
detail
null | string
instance
null | string
status
null | integer format: int32
title
null | string
type
null | string
Examplegenerated
{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}

Unauthorized

Media typeapplication/json
object
detail
null | string
instance
null | string
status
null | integer format: int32
title
null | string
type
null | string
Examplegenerated
{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}

Forbidden

Media typeapplication/json
object
detail
null | string
instance
null | string
status
null | integer format: int32
title
null | string
type
null | string
Examplegenerated
{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}

Not Found

Media typeapplication/json
object
detail
null | string
instance
null | string
status
null | integer format: int32
title
null | string
type
null | string
Examplegenerated
{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}