> For the complete documentation index, see [llms.txt](https://docs.incidenthub.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incidenthub.cloud/incidenthub-documentation/channels/webhook-integration.md).

# Webhook Integration

How to configure Webhooks in IncidentHub to receive alerts

You can integrate IncidentHub with your own webhook endpoint to get notified when incidents occur.

IncidentHub will send messages to your webhook when any of the following happens:

1. An incident or maintenance is triggered, updated, or resolved in any of your monitored services.
2. An upcoming maintenance reminder is triggered based on your chosen time interval.

## Webhook Event Format

The webhook request will be made in the following format

HTTP Method: POST

HTTP Headers

* Content-Type: application/json

Body:

```
"type": "triggered | updated" | "resolved",
"event": "incident | maintenance",
"timestamp": time as a string with time zone indicator,
"data": {
    "service": Service name,
    "statusPage": Link to official status page,
    "eventURL": Link to the event,
    "content": Content of the event,
    "title": Title of the event,
    "affectedComponents": An array (can be empty) of the affected components for the event,
}

```

Example payload:

```
{
    "type": "updated",
    "event": "incident",
    "timestamp": "2024-10-01T22:38:01.725-07:00",
    "data": {
        "service": "Twilio",
        "statusPage": "https://status.twilio.com/",
        "eventURL": "https://stspg.io/mjg3188vltfh",
        "content": "We are experiencing call dialling delays to Indosat Ooredoo Indonesia phone numbers. Our engineers are working with our carrier partner to resolve the issue. We will provide another update in 1 hour or as soon as more information becomes available.",
        "title": "Call Dialling Delays To Indosat Ooredoo Indonesia  Phone Numbers",
        "affectedComponents": [
            "CARRIER NETWORK (Voice, APAC)",
            "CARRIER NETWORK (Voice, EMEA)"
        ]
    }
}

```

## Payload Fields

**type**

triggered : Start of an incident.

updated : Intermediate update for an active incident.

resolved : End of an incident. Also sent for post-mortem updates after an incident "resolved" is sent.

**Important Note about "triggered":**

In some services, the first event "triggered" may not have components or regions that later show up as part of the incident in subsequent "updated" events. This can be due to one of two reasons:

* The components or regions were not affected at first, when the incident began.
* The components or regions were affected from the beginning but it was not discovered until later, so the status page APIs did not return those components in the trigger event.

This matters if you are maintaining state using the webhook. If you have chosen component A in your monitor configuration, and the trigger event does not have A, your webhook will not receive the trigger event. If a subsequent "updated" event has A, you will see updates to an incident without a trigger.

**event**

incident : Indicates an outage, an unplanned event.

maintenance: Indicates a planned maintenance.

**timestamp**

The timestamp when this event took place.

**data**

Information about the event. Fields inside data:

service: Name of the monitored service.

statusPage: A link to the service's official status page.

eventURL: A link to the event on the service's official status page.

content: More information about the event.

title: A summary of the event.

affectedComponents: An array of strings which indicate the components affected in the event. This can be empty.

## Steps

1. Go to your IncidentHub account and click on Channels -> Add -> Webhook.
2. Add a Name and Description.
3. Under "Webhook URL", paste your webhook URL.&#x20;
4. You can check if the endpoint is working by filling in the Webhook URL and clicking on the "Send a test message" button.
5. Click "Save".

<figure><img src="https://1097519083-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1UERJeGV9Jx1B0oddXCx%2Fuploads%2FDlQvqHf1aarnoxkejL8o%2FScreenshot%20from%202026-01-20%2022-48-57.png?alt=media&amp;token=917799c5-6f57-480c-8992-ffc6bd067360" alt=""><figcaption></figcaption></figure>

#### [<sup>Set up your Webhook now</sup>](https://incidenthub.cloud/#pricing)
