List incidents

List all incidents with the option to filter incidents by monitor.

GET https://incidents.betterstack.com/api/v3/incidents

Query parameters

team_name
string
from
date
to
date
monitor_id
integer
heartbeat_id
integer
resolved
bool
acknowledged
bool
metadata
nested
page
integer
per_page
integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "25",
      "type": "incident",
      "attributes": {
        "name": "uptime homepage",
        "url": "https://uptime.betterstack.com/",
        "http_method": "get",
        "cause": "Status 404",
        "incident_group_id": null,
        "started_at": "2020-03-09T17:37:56.662Z",
        "acknowledged_at": null,
        "acknowledged_by": null,
        "resolved_at": null,
        "resolved_by": null,
        "status": "Started",
        "team_name": "Testing team",
        "response_content": "\n404 Not Found\n\nNot Found\nThe requested URL /fail was not found on this server.\n",
        "response_options": "{}",
        "regions": [
          "us",
          "eu",
          "as",
          "au"
        ],
        "response_url": null,
        "screenshot_url": null,
        "origin_url": null,
        "escalation_policy_id": null,
        "call": true,
        "sms": true,
        "email": true,
        "push": true,
        "critical_alert": false,
        "slack_channels": [
          "inc-20-03-09-uptime-homepage-not-found"
        ],
        "metadata": {
          "Origin": [
            {
              "type": "String",
              "value": "Monitor"
            }
          ],
          "Request duration": [
            {
              "type": "String",
              "value": "0.036304"
            }
          ],
          "Response code": [
            {
              "type": "String",
              "value": "404"
            }
          ]
        }
      },
      "relationships": {
        "monitor": {
          "data": {
            "id": "2",
            "type": "monitor"
          }
        }
      }
    },
    {
      "id": "23",
      "type": "incident",
      "attributes": {
        "name": "disk usage monitoring",
        "url": null,
        "http_method": null,
        "cause": "Disk space usage high",
        "incident_group_id": null,
        "started_at": "2020-03-04T13:30:45.583Z",
        "acknowledged_at": "2020-03-04T13:32:14.121Z",
        "acknowledged_by": "John Smith",
        "resolved_at": "2020-03-04T14:21:17.137Z",
        "resolved_by": "John Smith",
        "status": "Resolved",
        "team_name": "Testing team",
        "response_content": null,
        "response_options": null,
        "regions": null,
        "response_url": null,
        "screenshot_url": null,
        "origin_url": null,
        "escalation_policy_id": null,
        "call": false,
        "sms": false,
        "email": true,
        "push": true,
        "critical_alert": false,
        "slack_channels": [],
        "metadata": {
          "Origin": [
            {
              "type": "String",
              "value": "Datadog integration"
            }
          ]
        }
      },
      "relationships": {
        "webhook_integration": {
          "data": {
            "id": "30579",
            "type": "webhook_integration"
          }
        }
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v3/incidents?page=1",
    "last": "https://incidents.betterstack.com/api/v3/incidents?page=4",
    "prev": null,
    "next": "https://incidents.betterstack.com/api/v3/incidents?page=2"
  }
}

Response attributes

id
string
type
string
attributes.name
string
attributes.url
string or null
attributes.http_method
string or null
attributes.cause
string or null
attributes.incident_group_id
integer or null
attributes.started_at
string or null
attributes.acknowledged_at
string or null
attributes.acknowledged_by
string or null
attributes.resolved_at
string or null
attributes.resolved_by
string or null
attributes.status
string
attributes.team_name
string
attributes.response_content
string or null
attributes.response_options
string or null
attributes.regions
array or null
attributes.response_url
string or null
attributes.screenshot_url
string or null
attributes.origin_url
string or null
attributes.escalation_policy_id
integer or null
attributes.call
boolean
attributes.sms
boolean
attributes.email
boolean
attributes.push
boolean
attributes.critical_alert
boolean
attributes.slack_channels
array
attributes.metadata
object
attributes.metadata.*[].type
string
attributes.metadata.*[].value
string
attributes.metadata.*[].item_id
integer
attributes.metadata.*[].name
string
attributes.metadata.*[].email
string
attributes.shared
boolean
attributes.ssl_certificate_expires_at
string
attributes.domain_expires_at
string
relationships.monitor.data.id
string
relationships.heartbeat.data.id
string
relationships.webhook_integration.data.id
string
pagination.first
string
pagination.last
string
pagination.prev
string or null
pagination.next
string or null

Example cURL

Time range Active incidents Metadata
curl --request GET \
  --url "https://incidents.betterstack.com/api/v3/incidents" \
  --data-urlencode "from=2024-12-24" \
  --data-urlencode "to=2024-12-31" \
  --header 'Authorization: Bearer $TOKEN'
curl --request GET \
  --url "https://incidents.betterstack.com/api/v3/incidents" \
  --data-urlencode "resolved=false" \
  --header 'Authorization: Bearer $TOKEN'
curl --request GET \
  --url "https://incidents.betterstack.com/api/v3/incidents" \
  --data-urlencode "metadata[Group][][value]=HTTP checks" \
  --data-urlencode "metadata[Response code][][value]=500" \
  --data-urlencode "metadata[Response code][][value]=502" \
  --header 'Authorization: Bearer $TOKEN'