List incidents

List your incidents, newest first. Incidents other teams escalated to your team are included and marked as shared. Lists only confirmed incidents. By default, incidents are sorted by started_at descending, then by id descending.

GET https://incidents.betterstack.com/api/v7/incidents
from string

Only incidents that started on or after this day. Accepts an ISO 8601 date like 2024-12-24, now, or a time relative to now like now-1h, now-2h45m or now-7d. A time is read as its day in UTC, and the day starts at midnight UTC.

to string

Only incidents that started by the end of this day in UTC, in the same forms as from. Send from with it.

monitor_id string

Only incidents raised by this monitor.

heartbeat_id string

Only incidents raised by this heartbeat.

webhook_integration_id string

Only incidents raised by this vendor webhook integration.

email_integration_id string

Only incidents raised by this e-mail integration.

incoming_webhook_id string

Only incidents raised by this incoming webhook.

amazon_sns_integration_id string

Only incidents raised by this Amazon SNS integration.

slack_integration_id string

Only incidents raised from this Slack integration.

microsoft_teams_webhook_id string

Only incidents raised from this Microsoft Teams integration.

call_routing_id string

Only incidents raised by this call routing number.

incident_group_id string

Only incidents in this incident group.

resolved boolean

true for only resolved incidents, false for only unresolved ones, such as resolved=false for ongoing incidents. Leave it out to list both.

acknowledged boolean

true for only incidents with an acknowledgement, false for only those without one. Escalating an incident removes its acknowledgement. Leave it out to list both.

status array of strings

Only incidents in one of these states, each ongoing, acknowledged or resolved. Repeat it as status[]= for several.

cause string

Only incidents whose cause contains this text, ignoring case. A hyphen or a run of spaces in the text matches any run of whitespace.

escalation_policy_ids array of strings

Only incidents escalated through one of these escalation policies. Repeat it as escalation_policy_ids[]= for several.

on_call_user_ids array of strings

Only incidents that alerted one of these on-call users, each as u123 or their e-mail. Get the user ID via List team members. Repeat it as on_call_user_ids[]= for several.

has_comments boolean

true for only incidents with comments, false for only those without.

has_postmortem boolean

true for only incidents with a postmortem comment, false for only those without.

has_linear_task boolean

true for only incidents with a linked Linear issue, false for only those without.

has_jira_task boolean

true for only incidents with a linked Jira work item, false for only those without.

has_halo_psa_ticket boolean

true for only incidents with a linked HaloPSA ticket, false for only those without.

min_duration_minutes integer

Only incidents that have lasted at least this many minutes.

max_duration_minutes integer

Only incidents that have lasted at most this many minutes.

metadata object

Only incidents matching this metadata, as nested query parameters written as metadata[key]=value or metadata[key][]=value. A user reference accepts u123 or the user's e-mail, and a team reference accepts t123. Get the user ID via List team members. Either one without its prefix is refused. Accepts any keys.

sort string

Sort by started_at, resolved_at or created_at. Put - before the field for descending order, like -created_at. Any other value is ignored.

page integer

Page to return, starting at 1.

per_page integer default: 10

Results per page. Maximum 50.

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

Returns the list of incidents.

200 OK
{
  "data": [
    {
      "id": "123456789",
      "type": "incident",
      "attributes": {
        "name": "uptime homepage",
        "call": true,
        "sms": true,
        "email": true,
        "push": true,
        "critical_alert": false,
        "cause": "Status 404",
        "status": "Started",
        "shared": false,
        "escalation_policy_id": "123",
        "incident_group_id": "98765",
        "url": "https://uptime.betterstack.com/",
        "http_method": "get",
        "regions": [
          "us",
          "eu",
          "as",
          "au"
        ],
        "response_content": "\n404 Not Found\n\nNot Found\nThe requested URL /fail was not found on this server.\n",
        "response_options": "{}",
        "response_url": "https://example.com/incidents/25/response.html",
        "screenshot_url": "https://example.com/incidents/25/screenshot.png",
        "origin_url": "https://example.com/alerts/25",
        "slack_channels": [
          "inc-20-03-09-uptime-homepage-not-found"
        ],
        "started_at": "2020-03-09T17:37:56.662Z",
        "acknowledged_at": null,
        "acknowledged_by": null,
        "resolved_at": null,
        "resolved_by": null,
        "domain_expires_at": "2026-12-31T00:00:00Z",
        "ssl_certificate_expires_at": "2026-12-31T00:00:00Z",
        "metadata": {
          "Affected Services": [
            {
              "type": "String",
              "value": "Homepage"
            },
            {
              "type": "String",
              "value": "Login"
            }
          ]
        },
        "team_id": "t123",
        "team_name": "Testing team"
      },
      "relationships": {
        "monitor": {
          "data": {
            "id": "2",
            "type": "monitor"
          }
        },
        "heartbeat": {
          "data": {
            "id": "3",
            "type": "heartbeat"
          }
        }
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v7/incidents?page=1",
    "last": "https://incidents.betterstack.com/api/v7/incidents?page=1",
    "prev": null,
    "next": null,
    "total_count": 1
  }
}
401

The API token is missing or invalid.

401 Unauthorized
{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
403

Your role doesn't include View on Incidents, or the token can't be used for this API.

422

A filter value can't be read, such as a date, an ID, a boolean, the status or the shape of metadata. A date range is refused when to is sent without from, from is after today or to is before from. errors lists the messages, each naming the filter and what to send.

422 Unprocessable Content
{
  "errors": [
    "The \"from\" filter can't be read. Send \"from\" as a date like 2026-12-03, or relative to now like now, now-1h or now-2d. The day is read in UTC."
  ]
}
422

A list filter was sent as JSON text, such as status=["ongoing"]. Send each value as its own status[]=.

422 Unprocessable Content
{
  "errors": [
    "The \"status\" filter was sent as JSON text. Send each value as its own status[]=, like status[]=ongoing."
  ]
}
422

The on_call_user_ids parameter or a user or team reference in metadata lacks its u or t prefix.

422 Unprocessable Content
{
  "errors": "Sorry, these attributes have unsupported values",
  "allowed_values": {
    "on_call_user_ids": "Send a user ID such as u123. Get it via List team members, or send their e-mail."
  }
}
id string

The ID of the incident.

type string

Always incident.

name string or null

Incident name.

call boolean

Whether to notify by phone call. When your plan doesn't include phone calls, we skip the call and note it in the incident's timeline.

sms boolean

Whether to notify by SMS. When your plan doesn't include SMS, we skip the SMS and note it in the incident's timeline.

email boolean

Whether to notify by e-mail.

push boolean

Whether to send a push notification. When your plan doesn't include push notifications, we skip the push notification and note it in the incident's timeline.

critical_alert boolean

Whether to send a critical alert, a push notification that bypasses silent mode. A phone that has Critical alerts turned off and Push notifications on in the Better Stack app gets an ordinary push notification instead. When your plan doesn't include push notifications, we skip the critical alert and note it in the incident's timeline.

cause string or null

What triggered the incident, such as Status 500 or Missed heartbeat. For a manual incident, the cause is its summary. null when no cause was given or extracted.

status string

The incident's state. Listing returns only confirmed incidents.
Valid values:
Started: The incident is open and nobody has acknowledged it yet.
Acknowledged: Someone acknowledged the incident and it isn't resolved yet.
Resolved: The incident is resolved.
Validating: The check or alert has recovered and the recovery period runs.
Unconfirmed: The failure is still being confirmed.

shared boolean

Whether this incident belongs to another team and was escalated here.

escalation_policy_id string or null

The escalation policy for this incident. An escalation policy from another team returns a 404 error.

incident_group_id string or null

Incident group this incident is in.

url string or null

The URL the monitor checked. null for incidents a monitor didn't raise.

http_method string or null

The HTTP method of the monitor's check, such as get, post or head. null for incidents a monitor didn't raise.

regions array of strings or null

The regions the monitor was set to check from when the incident opened, any of us, eu, as and au.

response_content string or null

The text of the response that triggered the incident, with HTML removed, when it's shorter than 500 characters. Longer bodies are linked in response_url instead.

response_options string or null

Details of the check that triggered the incident, as a JSON string, such as its timings, response code and response headers.

response_url string or null

A link to the full response body that triggered the incident, when its text is 500 characters or longer.

screenshot_url string or null

URL of the screenshot we captured when the check failed.

origin_url string or null

URL to the third-party alert this incident originated from, if any.

slack_channels array of strings

Slack channels notified about the incident.

started_at datetime or null

When the incident started. null while the incident is Unconfirmed. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

acknowledged_at datetime or null

When the incident was acknowledged. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

acknowledged_by object or null

Who acknowledged the incident. null while nobody has.

acknowledged_by.name string

Full name of the team member, or the free-text attribution.

acknowledged_by.email string or null

E-mail of the team member. null when no team member acknowledged it, such as for a free-text attribution, API or Slack.

resolved_at datetime or null

When the incident was resolved. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

resolved_by object or null

Who resolved the incident. null while nobody has.

resolved_by.name string

Full name of the team member, or the free-text attribution.

resolved_by.email string or null

E-mail of the team member. null when no team member resolved it, such as for a free-text attribution, API or Slack.

relationships.monitor.data object or null

The monitor that raised the incident, for an incident a monitor raised.

relationships.monitor.data.id string

ID of the linked monitor.

relationships.monitor.data.type string

Always monitor.

relationships.heartbeat.data object or null

The heartbeat that raised the incident, for an incident a heartbeat raised.

relationships.heartbeat.data.id string

ID of the linked heartbeat.

relationships.heartbeat.data.type string

Always heartbeat.

domain_expires_at datetime

When the domain that opened this incident expires. Returned only for an incident about an expiring domain. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

ssl_certificate_expires_at datetime

When the TLS certificate that opened this incident expires. Returned only for an incident about an expiring certificate. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

metadata object

Custom metadata. Each key holds a list of values. A value is a string, written as {type: "String", value}, or a catalog reference, written as {type, item_id, name}, plus email for a User. User references are returned as u123 and team references as t123. Get a user's ID via List team members, and a team's ID via List teams. To write metadata, give each key one value or a list of values. A value can be a plain string, {value}, or a reference as {type, item_id}, {type, name} or {type, email}. An update replaces all of the incident's metadata, including keys Better Stack added such as Origin, and {} removes it all.

team_id string

Team that owns the incident, such as t123.

team_name string

Name of the team that owns the incident.

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

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