URL parameters
The ID of the incoming e-mail integration to update.
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 e-mail integration 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 e-mail 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 e-mails 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 e-mail goes to that incident instead of opening a new one.
Valid values:unused: Every e-mail that doesn't acknowledge or resolve an incident opens one.any: An e-mail opens an incident when at least one of started_rules matches.all: An e-mail opens an incident when all of started_rules match.
When e-mails 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: E-mails never acknowledge an incident.any: An e-mail acknowledges an incident when at least one of acknowledged_rules matches.all: An e-mail acknowledges an incident when all of acknowledged_rules match.
When e-mails resolve an incident. Any value other than unused needs started_alert_id_field, resolved_alert_id_field and at least one rule. Each e-mail is checked against the resolve rules first, then the acknowledge rules, then the open rules. An e-mail that matches no open incident can still open one.
Valid values:unused: E-mails never resolve an incident.any: An e-mail resolves an incident when at least one of resolved_rules matches.all: An e-mail resolves an incident when all of resolved_rules match.
How to extract the incident cause from the e-mail that starts an incident. Defaults to the whole subject.
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 e-mails to the same incident.cause: Extracts the incident cause.title: Extracts the incident title.
Part of the e-mail this field reads.
Valid values:from_email: The sender's e-mail address.subject: The e-mail's subject.body: The e-mail's 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 e-mail that starts an incident, with the same keys as cause_field. Later e-mails 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 an e-mail 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 an e-mail that resolves an incident, with the same keys as cause_field. Required when resolved_rule_type isn't unused.
Custom fields extracted from the e-mail 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 e-mails to the same incident.cause: Extracts the incident cause.title: Extracts the incident title.
Part of the e-mail this field reads.
Valid values:from_email: The sender's e-mail address.subject: The e-mail's subject.body: The e-mail's 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 an e-mail 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 e-mails to the same incident.cause: Extracts the incident cause.title: Extracts the incident title.
Part of the e-mail this field reads.
Valid values:from_email: The sender's e-mail address.subject: The e-mail's subject.body: The e-mail's 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 an e-mail 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 e-mails to the same incident.cause: Extracts the incident cause.title: Extracts the incident title.
Part of the e-mail this field reads.
Valid values:from_email: The sender's e-mail address.subject: The e-mail's subject.body: The e-mail's 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 e-mail this rule matches.
Valid values:from_email: The sender's e-mail address.subject: The e-mail's subject.body: The e-mail's 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.