Get an on-call calendar rotation

Returns the currently used on-call rotation for a single on-call calendar.

GET https://uptime.betterstack.com/api/v2/on-calls/{calendar_id}/rotation

URL parameters

calendar_id
required string

Headers

Authorization
required string
200

Response body

{
  "rotation_length": 8,
  "rotation_interval": "hour",
  "start_rotations_at": "2025-02-01T07:00:00.000Z",
  "end_rotations_at": "2027-02-01T07:00:00.000Z",
  "users": [
    "bob@betterstack.com",
    "alice@betterstack.com"
  ]
}
404

Example cURL

Example
curl --request GET \
  --url "https://uptime.betterstack.com/api/v2/on-calls/default/rotation" \
  --header "Authorization: Bearer $TOKEN"