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

# Incident.io integration

> Connect Incident.io to Devin to trigger automations and Devin Oncall from Incident.io alerts and incidents.

Connect Incident.io so Devin can start working as soon as an alert fires or an incident opens. Incident.io alerts and incidents trigger Devin [automations](https://docs.devin.ai/product-guides/automations.md) and [Devin Oncall](https://docs.devin.ai/product-guides/devin-oncall.md).

## Setting up the integration

1. In Incident.io, create an API key that can view data, create and manage on-call resources, and edit incidents. Add "act in private incidents" if you route private incidents.
2. In Devin, go to [Settings > Connections > Incident.io](https://app.devin.ai/settings/connections/incident-io), click "Connect", and paste the key.
3. In the **Webhook** section, copy the webhook URL.
4. In Incident.io, go to **Settings > Webhooks**, create a webhook with that URL, and subscribe to the events listed in the **Webhook** section.
5. Paste the webhook's signing secret into Devin and click "Save".

> [!NOTE]
>
> Disconnecting stops alert and incident events. Connecting again creates a new webhook URL, so set up the webhook in Incident.io again.

## Triggering Devin from Incident.io

In an [automation](https://docs.devin.ai/product-guides/automations.md), add a trigger, choose **Incident.io**, and pick an event:

| Event | Conditions |
| - | - |
| Incident created, status changed, severity changed, follow-up created | Team, severity, status, incident type |
| Alert created, alert resolved | Alert source, alert priority, title |

Private alerts and incidents never match unless you turn on **Include private alerts** or **Include private incidents**. Only an Incident.io admin or owner can turn these on.

> [!NOTE]
>
> To save an Incident.io trigger, your Devin email must belong to a user in the connected Incident.io workspace.

## Devin Oncall

* **Responders** investigate Incident.io alerts or incidents. See [triggers](https://docs.devin.ai/product-guides/devin-oncall.md#triggers).
* **Incidents** start from the Slack channels Incident.io creates. See [incidents](https://docs.devin.ai/product-guides/devin-oncall.md#incidents).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.