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

# Webhook

> Connect any Webhook to All Quiet using `cURL`

<Info>Setup time: 7 Min</Info>

Effortlessly integrate webhooks with All Quiet using `cURL` requests. This guide offers practical implementation steps for seamless data transfer between systems.

## Create Webhook Integration

1. Click on the `Inbound Integrations` tab.
2. Click on `+ Create`.

<img className="Webhook_Create" src="https://mintcdn.com/allquiet/P8t56GT-09l8Ew6U/images/webhook_inbound/01.png?fit=max&auto=format&n=P8t56GT-09l8Ew6U&q=85&s=556030ab55bee464fe002a11e747a578" width="2740" height="678" data-path="images/webhook_inbound/01.png" />

### Select UptimeRobot for the integration's type

1. Enter a `Display Name` for your integration, e.g. "Webhook".
2. Select a `Team`.
3. Select `Webhook` as the integration's type.
4. Click `Create Inbound Integration`.

<img className="Webhook_Select" src="https://mintcdn.com/allquiet/P8t56GT-09l8Ew6U/images/webhook_inbound/02.png?fit=max&auto=format&n=P8t56GT-09l8Ew6U&q=85&s=58c50e44ef84706a6ee620423ef323f7" width="2145" height="2250" data-path="images/webhook_inbound/02.png" />

### Get the All Quiet webhook URL

After creating the webhook integration on All Quiet

1. you can view and copy the URL of the newly generated webhook. You can now create All Quiet incidents by sending `cURL` and other requests to this unique URL.
2. you can generate and add a Bearer Token to make your Inbound Webhook integration even more secure.

<img className="Webhook_Get" src="https://mintcdn.com/allquiet/P8t56GT-09l8Ew6U/images/webhook_inbound/03.png?fit=max&auto=format&n=P8t56GT-09l8Ew6U&q=85&s=5f798bdd98f7a0be1cda911de3709800" width="2164" height="1320" data-path="images/webhook_inbound/03.png" />

## Send POST with cURL

The Webhook accepts all HTTP Verbs and supports the following values for the HTTP header `Content-Type` :

* `application/json` maps to property `jsonBody`
* `application/x-www-form-urlencoded` maps to property `formBody`
* `multipart/form-data` maps to property `formBody`
* `text/plain` maps to property `textBody`
* `text/xml`, `application/xml` and `application/xhtml+xml` map to property `xmlBody`

Use the CURL command below as an example to trigger the webhook.

```CURL theme={null}
curl -X POST 'https://allquiet.app/api/webhook/YOUR-WEBHOOK' \
-H 'Content-Type: application/json' \
-d '{"alertName": "Demo Alert", "alertStatus": "firing", "description": "This is a Demo Alert"}'
```

## Inspect your Webhook payload.

Once the cURL command has been executed, the corresponding payload will be visible on your integration's details page.

1. To view a specific payload, click the "Select" button next to the desired entry under "Latest payloads". This action will load the payload into the "Request Payload Example" section for review.
2. The "Selected Payload" field displays the actual payload generated by triggering the Webhook.

<Tip>The JSON content within the `Selected Payload` field can be temporarily edited to test different scenarios.</Tip>

<img className="Webhook_Inspect" src="https://mintcdn.com/allquiet/P8t56GT-09l8Ew6U/images/webhook_inbound/04.png?fit=max&auto=format&n=P8t56GT-09l8Ew6U&q=85&s=4e157d23b6e0d7ed4047c82b7f49d635" width="2197" height="2368" data-path="images/webhook_inbound/04.png" />

## Configure Attribute Mapping

If the payload has not been modified from the previous cURL example, the webhook's default attribute mapping should seamlessly translate the data into an All Quiet incident.

1. See how the mapping adds the `alert_desc` field from the payload to the All Quiet incident attribute `Description`.
2. Observe how the mapping transforms the whole selected payload into an All Quiet incident.

<img className="Webhook_Configure" src="https://mintcdn.com/allquiet/P8t56GT-09l8Ew6U/images/webhook_inbound/05.png?fit=max&auto=format&n=P8t56GT-09l8Ew6U&q=85&s=68d051ee6bbdeba02f0433dda22c4caf" width="2201" height="2352" data-path="images/webhook_inbound/05.png" />

### More about Payload Mapping

For detailed guidance on `Payload Mapping`, you may check out our [payload mapping documentation](/essentials/inbound#how-does-attribute-mapping-work).

<Tip>Using our Terraform provider? [Download](https://allquiet.app/api/integrations/terraform/default/Webhook.tf) the default mapping of the `allquiet_integration_mapping` resource for the Webhook integration. Simply copy the syntax to your .tf file and tailor the resource to your team's needs!</Tip>

<Check>Your webhook is now seamlessly integrated with All Quiet through `cURL`, optimizing automated data flow and system performance.</Check>
