# Integrate Spike with Cloudflare

<figure><img src="/files/hnz59hvbf0YRhtMzjpqC" alt=""><figcaption></figcaption></figure>

## Overview

[Cloudflare](https://cloudflare.com) is a leading web infrastructure and website security company, offering services such as content delivery network (CDN), DDoS mitigation, internet security, and distributed domain name server (DNS) services. It helps improve the performance and security of your websites, applications, and APIs, ensuring they remain fast and secure globally.

### Incident alerts from Cloudflare

With Spike’s integration, you can receive real-time alerts from Cloudflare for a variety of incidents, such as:

* DDoS attacks detected and mitigated
* Web Application Firewall (WAF) events
* SSL/TLS certificate expiration warnings
* Network performance issues
* DNS changes and errors

{% hint style="success" %}
Auto-resolution is supported for this integration. Spike will also automatically group repeated incidents and suppress alerts while incident is open.
{% endhint %}

## Set up instructions

**Step 1**: To start, add a Cloudflare integration in Spike and copy the webhook URL.

{% content-ref url="/pages/-Ln3rb4wLUFeI-OAPcmq" %}
[Create integration and service on our dashboard](/integrations-guideline/create-integration-and-service-on-dashboard.md)
{% endcontent-ref %}

{% hint style="info" %}
This feature is only available if your Cloudflare account has at least one zone on a Professional or higher plan. For more information, visit [Cloudflare](https://developers.cloudflare.com/fundamentals/notifications/create-notifications/configure-webhooks/)
{% endhint %}

**Step 2:**

{% tabs %}
{% tab title="Setup on Cloudflare" %}

* **Navigate to Notifications**:
  * From the side menu in your Cloudflare dashboard, navigate to the **Notifications > new notification**
* **Choose Events to Monitor**:
  * Select the events for which you want to receive alerts for.
* **Configure the Webhook**:
  * Set your reset condition (this will automatically resolve the incident on Spike).
* **Configure the Webhook**:
  * Enter the details for your notification, and paste the Spike.sh webhook URL
  * If you see an option for setting headers, set the `ContentType` to `"application/json"`
    {% endtab %}
    {% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spike.sh/integrations-guideline/integrate-spike-with-cloudflare.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
