List on-call schedules

List your on-call schedules. Each also says who is on call, now or from from to to.

GET https://incidents.betterstack.com/api/v3/on-call-schedules
from datetime

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.

to datetime

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 integer

Page to return, starting at 1.

per_page integer default: 50

Results per page. Maximum 250.

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

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.

200 OK
{
  "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
  }
}

Returns the list of on-call schedules.

id string

The ID of the on-call schedule.

type string

Always on_call_schedule.

name string or null

Schedule name. null only on a primary schedule without a name of its own.

default_schedule boolean

Whether this is your team's default on-call schedule.

slack_group_handle string or null

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.

use_existing_slack_group boolean

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.

slack_groups array of objects

The state of the handle's user group in each connected Slack workspace.

slack_groups[].slack_workspace_id string

ID of the Slack workspace.

slack_groups[].slack_workspace_name string

Name of the Slack workspace.

slack_groups[].status string

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.

slack_groups[].error string or null

What's wrong and what to do about it. null when status is active or pending.

slack_groups[].unconnected_users array of objects

The on-call users the group doesn't include. Present only when you get a single schedule.

slack_groups[].unconnected_users[].id string

The user's ID as u123.

slack_groups[].unconnected_users[].first_name string or null

The user's first name, or null when it isn't set.

slack_groups[].unconnected_users[].last_name string or null

The user's last name, or null when it isn't set.

slack_groups[].unconnected_users[].email string

The user's e-mail address.

relationships.on_call_users.data array

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.

relationships.on_call_users.data[].id string

ID of the linked user.

relationships.on_call_users.data[].type string

Always user.

shifts array of objects

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.

shifts[].starts_at datetime

When this part of the shift starts. Can be before from. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

shifts[].ends_at datetime

When this part of the shift ends. Can be after to. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

shifts[].override boolean

Whether an override puts these people on call instead of the rotation.

shifts[].override_id string or null

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.

shifts[].users array of objects

The people on call.

shifts[].users[].id string

The person's ID as u123.

shifts[].users[].first_name string or null

The person's first name, or null when it isn't set.

shifts[].users[].last_name string or null

The person's last name, or null when it isn't set.

shifts[].users[].email string

The person's e-mail address.

shifts[].users[].phone_numbers array of strings

The person's phone numbers, sorted.

shifts[].users[].on_holiday boolean

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.

shifts[].users[].holiday_ends_at datetime or null

When that holiday ends, or null. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

team_id string

Team that owns the schedule, such as t123.

team_name string

Name of the team that owns the schedule.

included array

Each linked user, with its id, type and attributes.

included[].id string

ID of the linked user.

included[].type string

Always user.

included[].attributes.first_name string or null

The person's first name, or null when it isn't set.

included[].attributes.last_name string or null

The person's last name, or null when it isn't set.

included[].attributes.email string

The person's e-mail address.

included[].attributes.phone_numbers array of strings

The person's phone numbers, such as +420737123456, sorted.

pagination.first string

The URL of the first page of results.

pagination.last string

The URL of the last page of results.

pagination.prev string or null

The URL of the previous page, or null on the first page.

pagination.next string or null

The URL of the next page, or null on the last page.

pagination.total_count integer

How many results the whole list holds, across every page.

Example cURL

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