Query parameters
Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.
Headers
Bearer $TOKEN
application/json
Body parameters
The name of the incoming webhook shown in the dashboard.
ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.
Whether the integration is paused. A paused integration opens no incidents.
Whether to call the on-call person. Ignored while an escalation policy is set.
Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.
Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.
Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.
Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.
Seconds to wait before escalating to the whole team. 0 alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.
How long to wait after a resolving request before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while resolved_rule_type isn't unused. Possible values: 0, 60, 180, 300, 900, 1800, 3600, 7200.
When requests open an incident. Every value other than unused needs at least one rule. When started_alert_id_field finds an alert ID that matches an open incident, the request goes to that incident instead of opening a new one.
Valid values:unused: Every request that doesn't acknowledge or resolve an incident opens one.any: A request opens an incident when at least one of started_rules matches.all: A request opens an incident when all of started_rules match.
When requests acknowledge an incident. Any value other than unused needs started_alert_id_field, acknowledged_alert_id_field and at least one rule.
Valid values:unused: Requests never acknowledge an incident.any: A request acknowledges an incident when at least one of acknowledged_rules matches.all: A request acknowledges an incident when all of acknowledged_rules match.
When requests resolve an incident. Any value other than unused needs started_alert_id_field, resolved_alert_id_field and at least one rule. Each request is checked against the resolve rules first, then the acknowledge rules, then the open rules. A request that matches no open incident can still open one.
Valid values:unused: Requests never resolve an incident.any: A request resolves an incident when at least one of resolved_rules matches.all: A request resolves an incident when all of resolved_rules match.
How to extract the incident cause from the request that starts an incident. When it's missing or extracts nothing, the cause is Unknown cause.
The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.
The built-in role of this field. null for a custom field.
Valid values:alert_id: Extracts the alert ID that ties later requests to the same incident.cause: Extracts the incident cause.title: Extracts the incident title.
Part of the payload this field reads.
Valid values:query_string: A parameter in the request's query string.header: A request header.body: The whole request body, as plain text.json: A value in the request body, read as JSON.xml: An element in the request body, read as XML.sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.
Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.
What to extract.
Valid values:match_before: Extracts the text before content.match_after: Extracts the text after content.match_between: Extracts the text between content_before and content_after.match_regex: Extracts the match of the regular expression in content, or its capture group.match_everything: Extracts the whole value.
The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.
The start delimiter for match_between.
Where extraction stops for match_between. Leave it empty to extract to the end.
Field that extracts the incident title, with the same keys as cause_field.
How to extract the alert ID from the request that starts an incident, with the same keys as cause_field. Later requests acknowledge or resolve the open incident with the same alert ID. Required when acknowledged_rule_type or resolved_rule_type isn't unused.
How to extract the alert ID from a request that acknowledges an incident, with the same keys as cause_field. Required when acknowledged_rule_type isn't unused.
How to extract the alert ID from a request that resolves an incident, with the same keys as cause_field. Required when resolved_rule_type isn't unused.
Custom fields extracted from the request that opens an incident, saved as incident metadata.
The metadata key to save the extracted value under. Required, and must be unique within the array.
The built-in role of this field. null for a custom field.
Valid values:alert_id: Extracts the alert ID that ties later requests to the same incident.cause: Extracts the incident cause.title: Extracts the incident title.
Part of the payload this field reads.
Valid values:query_string: A parameter in the request's query string.header: A request header.body: The whole request body, as plain text.json: A value in the request body, read as JSON.xml: An element in the request body, read as XML.sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.
Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.
What to extract.
Valid values:match_before: Extracts the text before content.match_after: Extracts the text after content.match_between: Extracts the text between content_before and content_after.match_regex: Extracts the match of the regular expression in content, or its capture group.match_everything: Extracts the whole value.
The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.
The start delimiter for match_between.
Where extraction stops for match_between. Leave it empty to extract to the end.
Custom fields extracted from a request that acknowledges an incident.
The metadata key to save the extracted value under. Required, and must be unique within the array.
The built-in role of this field. null for a custom field.
Valid values:alert_id: Extracts the alert ID that ties later requests to the same incident.cause: Extracts the incident cause.title: Extracts the incident title.
Part of the payload this field reads.
Valid values:query_string: A parameter in the request's query string.header: A request header.body: The whole request body, as plain text.json: A value in the request body, read as JSON.xml: An element in the request body, read as XML.sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.
Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.
What to extract.
Valid values:match_before: Extracts the text before content.match_after: Extracts the text after content.match_between: Extracts the text between content_before and content_after.match_regex: Extracts the match of the regular expression in content, or its capture group.match_everything: Extracts the whole value.
The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.
The start delimiter for match_between.
Where extraction stops for match_between. Leave it empty to extract to the end.
Custom fields extracted from a request that resolves an incident.
The metadata key to save the extracted value under. Required, and must be unique within the array.
The built-in role of this field. null for a custom field.
Valid values:alert_id: Extracts the alert ID that ties later requests to the same incident.cause: Extracts the incident cause.title: Extracts the incident title.
Part of the payload this field reads.
Valid values:query_string: A parameter in the request's query string.header: A request header.body: The whole request body, as plain text.json: A value in the request body, read as JSON.xml: An element in the request body, read as XML.sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.
Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.
What to extract.
Valid values:match_before: Extracts the text before content.match_after: Extracts the text after content.match_between: Extracts the text between content_before and content_after.match_regex: Extracts the match of the regular expression in content, or its capture group.match_everything: Extracts the whole value.
The text to extract around for match_before and match_after, or the regular expression for match_regex. Required with match_before, match_after and match_regex.
The start delimiter for match_between.
Where extraction stops for match_between. Leave it empty to extract to the end.
The conditions started_rule_type checks. At least one rule is required when the type is any or all.
Part of the payload this rule matches.
Valid values:query_string: A parameter in the request's query string.header: A request header.body: The whole request body, as plain text.json: A value in the request body, read as JSON.xml: An element in the request body, read as XML.sns_envelope: A value of the SNS envelope, which only Amazon SNS integrations receive.
Which value to read. Accepts a dot-separated path such as alert.id for json and query_string, a header name for header, or a CSS selector for xml. Not used with body.
How to compare the value with content.
Valid values:contains: Matches when the value contains content.contains_not: Matches when the value doesn't contain content.matches_regex: Matches when the value matches the regular expression in content.matches_regex_not: Matches when the value doesn't match the regular expression in content.equals: Matches when the value equals content.equals_not: Matches when the value doesn't equal content.
The value to compare with. Must be a valid regular expression for matches_regex and matches_regex_not.
The conditions acknowledged_rule_type checks, with the same keys as started_rules. At least one is required when the type is any or all.
The conditions resolved_rule_type checks, with the same keys as started_rules. At least one is required when the type is any or all.
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, email}. 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. A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, {} removes it all, and leaving metadata out keeps it.
String, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source.
The text of a String value.
ID of the referenced item. For a user it's u123 or their e-mail. For a team it's t123, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via List team members, and a team's ID via List teams.
Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of item_id.
Referenced user's e-mail, returned for a User. A user can also be found by e-mail.