> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# incident.io

> This topic explains how to use the incident.io Alert Source integration to send LaunchDarkly observability alerts to incident.io.

**Developer**

**Federal docs**

**EU docs**

This topic explains how to use the incident.io Alert Source integration to send LaunchDarkly [observability alerts](https://launchdarkly.com/docs/home/observability/alerts.md) to incident.io. incident.io is an incident management and on-call platform.

If your team manages on-call rotations in incident.io, this integration lets incident.io handle your LaunchDarkly alerts for you. LaunchDarkly alerts open incident.io alerts, route them to the team that owns them, and close them when the LaunchDarkly alert resolves. Responders work from incident.io and don't need to watch LaunchDarkly for alerts or resolve them by hand.

When an alert with an incident.io destination fires, LaunchDarkly sends an alert event to an incident.io HTTP alert source. When the alert resolves, LaunchDarkly sends a resolved event that closes the same incident.io alert. If the alert has a maintainer team or tags, each event includes them. You can use them in incident.io alert routes to send the alert to the team that owns it.

## Prerequisites

To use the incident.io Alert Source integration, you need:

* An incident.io account with permission to create alert sources.
* A LaunchDarkly project with observability features enabled. To learn more, read [Observability](https://launchdarkly.com/docs/home/observability.md).
* A LaunchDarkly role that lets you create integration configurations and edit observability alerts.

## Create an HTTP alert source in incident.io

Each LaunchDarkly configuration connects to one incident.io HTTP alert source. To learn more about alert sources, read [Alert sources](https://docs.incident.io/alerts/alert-sources) in the incident.io documentation.

To create an HTTP alert source:

1. In incident.io, create a new alert source of type **HTTP**.
2. Choose the **Default** payload format.
3. Copy and save the alert source URL for use in the next section. It has the format `https://api.incident.io/v2/alert_events/http/<id>`.
4. Copy and save the alert source bearer token. incident.io shows the token when you create the alert source.

## Configure the integration in LaunchDarkly

You can add more than one configuration. For example, add a configuration for each incident.io alert source if you want different alerts to arrive in different sources.

To configure the incident.io Alert Source integration:

1. Click the **gear** icon in the left sidebar to view Organization settings.
2. Click **Integrations** and find "incident.io Alert Source."
3. Click **Add new**.
4. Enter a **Name** for the configuration. This name appears in the alert destination menu.
5. Paste the **Alert source URL** you copied from incident.io.
6. Paste the **Alert source bearer token** you copied from incident.io.
7. After reading the Terms and Conditions, check the **I have read and agree to the Integration Terms and Conditions** checkbox.
8. Click **Save configuration**.

LaunchDarkly stores the alert source URL and bearer token as secrets. If the URL does not match the format `https://api.incident.io/v2/alert_events/http/<id>`, LaunchDarkly rejects the configuration.

## Send alert notifications to incident.io

After you configure the integration, you can add incident.io as a notification destination for any observability alert. The destination menu lists only the incident.io Alert Source configurations that are turned on.

To add incident.io as an alert notification destination:

1. Click **Observability** > **Alerts** in the left sidebar.
2. Click **Create alert**, or select **Edit alert** from an existing alert's **three-dot** overflow menu.
3. Click **+ Add notification**.
4. Click **Add incident.io**. An "incident.io alert sources" section appears.
5. Select one or more configurations from the **Select alert sources** menu.
6. Click **Save**.

If you have not configured an alert source yet, click **+ Add alert source**. The incident.io Alert Source configuration page opens in a new tab and your changes to the alert stay in place. After you save the configuration, return to the alert and select the new alert source.

When you add an incident.io destination to a new alert, LaunchDarkly turns on **Notify on resolve** for the alert. Keep this setting on to have LaunchDarkly close the incident.io alert when the LaunchDarkly alert resolves. If you turn it off, incident.io alerts stay open until you resolve them in incident.io.

To learn more about creating and editing alerts, read [Alerts](https://launchdarkly.com/docs/home/observability/alerts.md).

## Alert event payload

LaunchDarkly sends each alert event to incident.io in the incident.io HTTP alert source format. The firing event and the resolved event for the same alert group share a `deduplication_key`. The resolved event closes the incident.io alert that the firing event opened. If the alert uses **Group by**, each group value produces a separate incident.io alert.

The event contains the following top-level fields:

* `title`: The alert name. If the alert uses grouping, the title also includes the group, such as `Request rate (service=checkout)`.
* `status`: Either `firing` or `resolved`.
* `deduplication_key`: A stable identifier for the alert and group.
* `description`: The alert's notification message. Resolved events contain a summary of the resolved value instead.
* `source_url`: A link to the alert in LaunchDarkly.
* `metadata`: Additional information about the alert, described below.

The `metadata` object includes the following fields:

* `payload_version`: The version of the payload format. The current version is `1`.
* `alert_id`, `alert_name`, `project_key`, and `project_name`: Identifiers for the alert and its LaunchDarkly project.
* `maintainer_team_key`: The key of the team that maintains the alert. LaunchDarkly includes this field only when a team maintains the alert.
* `tags`: The alert's tags, as a list of strings. The list is empty if the alert has no tags.
* `product_type`, `query`, `reason`, and `severity`: The data source, query, reason for the notification, and severity of the alert.
* `value`, `threshold_value`, `threshold_condition`, `threshold_type`, and `threshold_window_seconds`: The observed value and the threshold configuration.
* `group_by_keys`, `group_by_value`, and `groups`: The grouping keys and values for the series that triggered the alert.
* `started_at` and `timestamp`: When the alert started and when LaunchDarkly sent the event.

Here is an example of a firing event:

```json title="Example incident.io alert event" lines wrap theme={null}
{
  "title": "Request rate (tags.LoadBalancer=app/checkout-prod)",
  "status": "firing",
  "deduplication_key": "ldo11y-alert-1519-584314807ae43837",
  "description": "Metrics Sum for query **metric_name=ProcessedBytes tags.service=checkout** is _below or equal to_ the alert threshold.",
  "source_url": "https://app.launchdarkly.com/projects/default/alerts/1519",
  "metadata": {
    "alert_id": 1519,
    "alert_name": "Request rate",
    "group_by_keys": ["tags.LoadBalancer"],
    "group_by_value": "app/checkout-prod",
    "groups": {
      "tags.LoadBalancer": "app/checkout-prod"
    },
    "maintainer_team_key": "team-checkout",
    "payload_version": 1,
    "product_type": "Metrics",
    "project_key": "default",
    "project_name": "Checkout",
    "query": "metric_name=ProcessedBytes tags.service=checkout",
    "reason": "threshold_breached",
    "severity": "alert",
    "started_at": "2026-10-27T14:02:00Z",
    "tags": ["checkout", "tier-1"],
    "threshold_condition": "BelowOrEqual",
    "threshold_type": "Constant",
    "threshold_value": 100000000000,
    "threshold_window_seconds": 300,
    "timestamp": "2026-10-27T14:02:05Z",
    "value": 784
  }
}
```

## Route alerts to the owning team

Alert maintainer teams and tags are optional. If an alert has them, then its events also include them, and you can configure incident.io alert routes to send LaunchDarkly alerts to the right team without setting up routing for each alert.

For example, in your incident.io alert source, map `$.metadata.maintainer_team_key` or `$.metadata.tags` to an alert attribute, then use that attribute in your alert routes. To learn more, read [Alert attributes](https://docs.incident.io/on-call/alert-attributes) and [Alert routing](https://docs.incident.io/on-call/alert-routing) in the incident.io documentation.
