Get monitor

Returns a single monitor.

GET https://incidents.betterstack.com/api/v2/monitors/{monitor_id}

URL parameters

monitor_id
required string

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "123456789",
    "type": "monitor",
    "attributes": {
      "url": "https://uptime.betterstack.com",
      "pronounceable_name": "Uptime homepage",
      "auth_username": null,
      "auth_password": null,
      "monitor_type": "keyword",
      "monitor_group_id": 12345,
      "last_checked_at": "2020-09-01T14:17:46.000Z",
      "status": "up",
      "policy_id": null,
      "expiration_policy_id": null,
      "team_name": "Test team",
      "required_keyword": "We call you",
      "verify_ssl": true,
      "check_frequency": 30,
      "effective_check_frequency": 30,
      "effective_check_frequency_reason": null,
      "call": true,
      "sms": true,
      "email": true,
      "push": true,
      "critical_alert": false,
      "team_wait": null,
      "http_method": "get",
      "request_timeout": 15,
      "recovery_period": 0,
      "request_headers": [
        {
          "id": "123",
          "name": "Content-Type",
          "value": "application/xml"
        }
      ],
      "request_body": "",
      "follow_redirects": true,
      "remember_cookies": true,
      "paused_at": null,
      "created_at": "2020-02-18T13:38:16.586Z",
      "updated_at": "2020-09-08T13:10:20.202Z",
      "ssl_expiration": 7,
      "domain_expiration": 14,
      "regions": [
        "us",
        "eu",
        "as",
        "au"
      ],
      "maintenance_from": "01:02:00",
      "maintenance_to": "03:04:00",
      "maintenance_timezone": "Amsterdam",
      "maintenance_days": [
        "mon",
        "tue",
        "wed",
        "thu",
        "fri",
        "sat",
        "sun"
      ],
      "port": null,
      "confirmation_period": 120,
      "expected_status_codes": [],
      "environment_variables": {},
      "proxy_host": null,
      "proxy_port": null,
      "paused": false,
      "playwright_script": null,
      "ip_version": null,
      "checks_version": "v2"
    },
    "relationships": {
      "policy": {
        "data": null
      },
      "expiration_policy": {
        "data": null
      }
    }
  }
}
404

Response body

{
  "errors": "Resource with provided ID was not found"
}

Response attributes

id
string
type
string
attributes.url
string
attributes.pronounceable_name
string
attributes.monitor_type
string
attributes.monitor_group_id
integer or null
attributes.last_checked_at
string or null
attributes.status
string
attributes.policy_id
string or null
attributes.expiration_policy_id
integer or null
attributes.team_name
string
attributes.required_keyword
string or null
attributes.verify_ssl
boolean
attributes.call
boolean
attributes.sms
boolean
attributes.email
boolean
attributes.push
boolean
attributes.critical_alert
boolean
attributes.team_wait
integer or null
attributes.http_method
string
attributes.request_timeout
integer
attributes.recovery_period
integer
attributes.check_frequency
integer
attributes.effective_check_frequency
integer
attributes.effective_check_frequency_reason
string or null
attributes.request_headers
array
attributes.request_headers[].id
string
attributes.request_headers[].name
string
attributes.request_headers[].value
string
attributes.request_body
string or null
attributes.auth_username
string or null
attributes.auth_password
string or null
attributes.follow_redirects
boolean
attributes.remember_cookies
boolean
attributes.paused
boolean
attributes.paused_at
string or null
attributes.created_at
string
attributes.updated_at
string
attributes.ssl_expiration
integer or null
attributes.domain_expiration
integer or null
attributes.regions
array
attributes.port
string or null
attributes.confirmation_period
integer
attributes.expected_status_codes
array
attributes.maintenance_from
string or null
attributes.maintenance_to
string or null
attributes.maintenance_timezone
string or null
attributes.maintenance_days
array
attributes.environment_variables
object
attributes.playwright_script
string or null
attributes.scenario_name
string
attributes.proxy_host
string or null
attributes.proxy_port
integer or null
attributes.ip_version
string or null
attributes.checks_version
string
relationships.policy.data
object or null
relationships.expiration_policy.data
object or null


Example cURL

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