Get a single on-call calendar

Returns a single on-call calendar by ID.

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

URL parameters

calendar_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"
            }
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "2345",
      "type": "user",
      "attributes": {
        "first_name": "Tomas",
        "last_name": "Hromada",
        "email": "tomas@uptime.betterstack.com",
        "phone_numbers": [
          "+420737123456"
        ]
      }
    }
  ]
}

Example cURL

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