Skip to main content

Alert Webhooks

Alert webhooks

Beyond email and SMS notifications, alert monitors can be configured to send HTTP requests to webhook endpoints with customizable payloads. Alert webhooks enable integration with incident management systems like PagerDuty or OpsGenie, custom DevOps alert endpoints, or any HTTP-based alerting service.

Creating alert webhooks

To create or modify a webhook endpoint, navigate to the Settings page and select the Alert Webhooks tab. Click the + Add alert webhook button to configure the webhook name, URL, and payload template.

Alert webhooks are designed to be reusable across multiple alert monitors through configurable payload templates. In the Payload Template section, you can use predefined variables that are dynamically replaced when an alert monitor triggers:

  • $SUBJECT - The static string "Prismatic.io Alert"
  • $NAME - The name of the alert monitor that triggered
  • $INSTANCE - The name of the instance associated with the triggered alert monitor
  • $INSTANCE_ID - The global identifier of the instance (the SW5z.... portion of the instance URL)
  • $EXECUTION_ID - The global identifier of the execution
  • $CUSTOMER - The name of the customer to whom the instance is deployed
  • $CUSTOMER_EXTERNAL_ID - The external ID of the customer to whom the instance is deployed
  • $FLOW - The name of the flow that was executing when the alert monitor triggered
  • $TRIGGER - The name of the alert trigger (e.g., "Execution Failed")
  • $STEP - The name of the step within the integration that triggered the alert monitor
  • $URL - A direct link to the triggered alert monitor
Configure alert webhook in Prismatic app

After creating the alert webhook, you can update the name, URL, or payload template, and optionally configure HTTP headers. Headers are commonly used for authentication, such as passing an API token to the webhook endpoint.

Configure HTTP headers for alert webhook in Prismatic app

Editing existing alert webhooks

To modify an existing alert webhook, navigate to Settings in the left-hand sidebar and select the Alert Webhooks tab. Select the webhook to edit. You can update the webhook name by clicking the name at the top of the page. In the Details tab, you can modify the webhook template, payload template, or URL, and configure optional HTTP headers for authentication or other requirements.

Edit alert webhook configuration in Prismatic app

Deleting alert webhooks

To delete an alert webhook, navigate to the Settings page from the left-hand sidebar. Select the Alert Webhooks tab and choose the webhook to delete. On the webhook's page, click Delete Alert Webhook. Confirm the deletion by clicking Remove alert webhook.