Get on-call schedule

Returns a single on-call schedule by ID.

GET https://incidents.betterstack.com/api/v2/on-calls/{schedule_id}

URL parameters

schedule_id
required string

Query parameters

date
string

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "12345",
    "type": "on_call_calendar",
    "attributes": {
      "name": null,
      "default_calendar": true,
      "team_name": "Production"
    },
    "relationships": {
      "on_call_users": {
        "data": [
          {
            "id": "2345",
            "type": "user",
            "meta": {
              "email": "tomas@uptime.betterstack.com",
              "on_holiday": true,
              "holiday_ends_at": "2026-10-26T14:00:00Z"
            }
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "2345",
      "type": "user",
      "attributes": {
        "first_name": "Tomas",
        "last_name": "Hromada",
        "email": "tomas@uptime.betterstack.com",
        "phone_numbers": [
          "+420737123456"
        ]
      }
    }
  ]
}

Response attributes

id
string
type
string
attributes.name
string or null
attributes.default_calendar
boolean
attributes.team_name
string
relationships.on_call_users.data
array
relationships.on_call_users.data[].id
string
relationships.on_call_users.data[].type
string
relationships.on_call_users.data[].meta.email
string
relationships.on_call_users.data[].meta.on_holiday
boolean
relationships.on_call_users.data[].meta.holiday_ends_at
string or null
included
array
included[].id
string
included[].type
string
included[].attributes.first_name
string or null
included[].attributes.last_name
string or null
included[].attributes.email
string
included[].attributes.phone_numbers
array

Example cURL

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