# Webhook to Incident

Source: https://instatus.com/help/integrations/custom-service-webhook

1. Go to [Instatus](https://instatus.com), under Integrations, select Webhook to Incident
2. Copy your page's webhook URL

3. If you want to open a new incident, send a POST request to the URL with the following body Encode it as JSON with the `Content-Type: application/json` header, and be sure to include the templates.

```json
{
  "trigger": "down",
  "createTemplate": "cl8hrdsdsasu232441sv26yq",
  "status": "PARTIALOUTAGE"
}
```

Status is optional

4. If you want to resolve an incident, send a POST request to the URL with the following body

```json
{
  "trigger": "up",
  "resolveTemplate": "cl8hrdsdsasu232342441sv26yq"
}
```

We're done! 👏
