Headers
Bearer $TOKEN
application/json
Body parameters
Required if using a global API token to specify the team which should own the resource.
The name of the outgoing e-mail integration that you can see in the dashboard.
The addresses that receive incident e-mails. At least one recipient is required. Each entry is either a plain e-mail string, or an object with an email key plus your own custom attribute keys, which you can insert into templates with $RECIPIENT.<key>.
Whether to send an e-mail when an incident starts. Defaults to true.
Whether to send an e-mail when an incident is acknowledged. Defaults to true.
Whether to send an e-mail when an incident is resolved. Defaults to true.
Whether to send an e-mail when an incident is reopened. Defaults to true.
Whether to send an e-mail when a new comment is added to an incident. Defaults to true. At least one of the on_incident_* triggers must be enabled.
Whether to notify recipients alongside the primary responder when no escalation policy is configured. Defaults to true.
Per-event message templates. Each entry is an object that customizes the e-mail for one incident stage. Leave a field empty to use the default copy for that stage. Insert incident details with variables such as $NAME, $STATUS, $CAUSE, and $INCIDENT_URL, recipient attributes with $RECIPIENT.<key>, and incident metadata with $METADATA.Key or $METADATA_ARRAY. The incidents API documentation lists every available variable.
incident_stage is one of started, acknowledged, resolved, reopened, comment. The array is declarative: stages you include are created or updated, stages you omit from the array are removed, and omitting the templates parameter entirely leaves existing templates untouched.