Skip to content

Connector configuration

Configuration

This guide presents the connector configuration for the generic HTTPS destination type.
UI labelAPI field nameTypeRequiredNotification source type overridesAllowed valuesDefault valueDescription
URLurlUrltruetruen/an/aThe endpoint that receives requests. The system sends test notifications to this endpoint using POST.
Additional body fieldsadditionalBodyFieldsJSONObjecttruetruen/a{}Custom static fields included in the JSON body of the request and used to provide additional data. Use standard JSON format (for example, {"api_key":"aq7..."}). This overrides any top-level field with the same name in the request.
HeadersadditionalHeadersKeyValuePairstruetruen/a{}Represents a JSON object where each key maps to a string value. Defines headers included in each request. Use this to provide authentication data. This overrides an existing request header.
Dynamic URLdynamicURLUrlfalsetruen/an/aThe URL can include dynamic values. Use templating to personalize webhook endpoints per alert. This overrides the defined URL.
Dynamic body fieldsdynamicBodyFieldsJSONObjectfalsetruen/a{}Add fields to the JSON body using dynamic content from the alert payload. This overrides the static body fields.
Dynamic headersdynamicHeadersKeyValuePairsfalsetruen/a{}Insert dynamic values in HTTP headers based on alert content. Use this to pass runtime data such as tokens or custom identifiers. This overrides an existing request header.

Templating for dynamic routing

The dynamic fields support dynamic templating. This allows data-driven routing by inserting variables into the notification configuration.

Here are some customization examples:

Dynamic URL

{% if alert.status == 'Triggered' %} https://api.opsgenie.com/v2/alerts
{% else %}https://api.opsgenie.com/v2/alerts/{{alert.groupingKey}}/close?identifierType=alias
{% endif%}

Dynamic body fields

{% if alert.highestPriority == 'P1' %}
  {% set routing_key = "<critical_routing_key>"%}
{% elif alert.highestPriority == 'P2' %}
  {% set routing_key = "<error_routing_key>"%}
{% endif %}
{
  "routing_key": "{{routing_key | default(value = "<default_routing_key>")}}"
}

Dynamic headers

"Service-Name" : "{{alert.groups['service_name'] | default(value = "N/A")}}"