List on-call schedules
List your on-call schedules. Each also says who is on call, now or from from to to.
List who is on call from this time, as an ISO 8601 time. Defaults to now. on_call_users then lists who is on call at this time.
List who is on call until this time, at most 31 days after from. Defaults to from, which lists only the shift running at that moment. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
Page to return, starting at 1.
Results per page. Maximum 250.
Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.
Bearer $TOKEN
Results are paginated
Use pagination.next and pagination.prev to move through pages or jump to a specific one using page and per_page. See Pagination.
{
"data": [
{
"id": "123456789",
"type": "on_call_schedule",
"attributes": {
"name": "Primary on-call",
"default_schedule": true,
"slack_group_handle": "production-oncall",
"use_existing_slack_group": false,
"slack_groups": [
{
"slack_workspace_id": "T0123ABCD",
"slack_workspace_name": "Better Stack",
"status": "active",
"error": null
}
],
"shifts": [
{
"starts_at": "2026-10-26T08:00:00Z",
"ends_at": "2026-10-26T17:00:00Z",
"override": true,
"override_id": "12345",
"users": [
{
"id": "u2345",
"first_name": "Tomas",
"last_name": "Hromada",
"email": "tomas@example.com",
"phone_numbers": [
"+420737123456"
],
"on_holiday": false,
"holiday_ends_at": null
}
]
}
],
"team_id": "t123",
"team_name": "Production"
},
"relationships": {
"on_call_users": {
"data": [
{
"id": "u2345",
"type": "user"
}
]
}
}
}
],
"included": [
{
"id": "u2345",
"type": "user",
"attributes": {
"first_name": "Tomas",
"last_name": "Hromada",
"email": "tomas@example.com",
"phone_numbers": [
"+420737123456"
]
}
}
],
"pagination": {
"first": "https://incidents.betterstack.com/api/v3/on-call-schedules?page=1",
"last": "https://incidents.betterstack.com/api/v3/on-call-schedules?page=1",
"prev": null,
"next": null,
"total_count": 1
}
}
{
"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": {
"to": [
"must be at most 31 days after from"
]
}
}
Returns the list of on-call schedules.
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 from or to parameter isn't an ISO 8601 time, to is before from or more than 31 days after it, or the request sent date instead of from.
The ID of the on-call schedule.
Always on_call_schedule.
Schedule name. null only on a primary schedule without a name of its own.
Whether this is your team's default on-call schedule.
The handle of a Slack user group that always holds whoever is on call, without the @, or null when there's none. A handle for a new group can have up to 80 characters. Slack can still refuse a handle after it's saved, and slack_groups then shows why.
Whether slack_group_handle names a user group that already exists in your connected Slack workspace, instead of a new group we create. An existing group keeps its other members. A handle that one of your Slack user groups already uses is refused unless this is true, and a handle no group uses is refused when it's true. Sent without slack_group_handle, the setting applies to the current handle.
The state of the handle's user group in each connected Slack workspace.
ID of the Slack workspace.
Name of the Slack workspace.
The group's state in the workspace. When the group doesn't follow who's on call, error says why.
Valid values:pending: The group is being set up.active: The group follows who's on call.permission_denied: The Slack workspace lets only admins manage user groups.plan_required: User groups need a paid Slack plan.name_conflict: Another Slack user group already uses the handle.failed: The group couldn't be synced with Slack.no_slack_users: Nobody on call has connected Slack, so the group tags nobody from this schedule.reinstall_required: The Slack integration was connected before user groups were supported. Reinstall the integration to set the group up.
What's wrong and what to do about it. null when status is active or pending.
The on-call users the group doesn't include. Present only when you get a single schedule.
The user's ID as u123.
The user's first name, or null when it isn't set.
The user's last name, or null when it isn't set.
The user's e-mail address.
Users on call now, or at from when you send it. Each user's entry under relationships also has a meta object with email, on_holiday and holiday_ends_at.
ID of the linked user.
Always user.
Who is on call from from to to, oldest first. Each entry is one part of a shift and the people on call during it. Where an override covers part of a shift, the override's entry replaces that part. Without from and to, shifts holds only the shift running now. Returned when you get or list schedules.
When this part of the shift starts. Can be before from. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
When this part of the shift ends. Can be after to. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
Whether an override puts these people on call instead of the rotation.
The ID of the override's on-call event, to use with Delete an on-call event, or null for a shift from the rotation.
The people on call.
The person's ID as u123.
The person's first name, or null when it isn't set.
The person's last name, or null when it isn't set.
The person's e-mail address.
The person's phone numbers, sorted.
Whether the person is on holiday during part of this shift. For a shift running now, only the rest of the shift counts. Escalations skip someone on holiday.
When that holiday ends, or null. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
Team that owns the schedule, such as t123.
Name of the team that owns the schedule.
Each linked user, with its id, type and attributes.
ID of the linked user.
Always user.
The person's first name, or null when it isn't set.
The person's last name, or null when it isn't set.
The person's e-mail address.
The person's phone numbers, such as +420737123456, sorted.
The URL of the first page of results.
The URL of the last page of results.
The URL of the previous page, or null on the first page.
The URL of the next page, or null on the last page.
How many results the whole list holds, across every page.
Example cURL