# Particle Integration

[Particle.io](https://www.particle.io) is a platform that provides everything necessary for organizations to develop, deploy, and manage their Internet of Things (IoT) products. It serves as a comprehensive ecosystem for connected device development with robust tools, APIs, and hardware kits. With Particle.io, you can build IoT devices at scale, delivering connectivity, device management, and security features out-of-the-box.

ilert's integration for Particle enables users to receive alerts from their devices via SMS, push, voice, and messenger notifications. It helps to connect Particle devices with other services and tools in the tech stack and speed up incident response.

## In ilert: Create a Particle alert source

1. Go to **Alert sources** --> **Alert sources** and click on **Create new alert source**

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FjX0cS4q7woTXKajZmc1W%2FScreenshot%202023-08-28%20at%2010.21.10.png?alt=media&#x26;token=8ef3666b-84eb-4b51-abee-f07303313941" alt=""><figcaption></figcaption></figure>
2. Search for **Particle** in the search field, click on the Particle tile and click on **Next**.&#x20;

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FlXzQlJpaTFSR49AZk0xA%2FScreenshot%202023-08-28%20at%2010.24.23.png?alt=media&#x26;token=cffeacb4-57b9-47d4-827d-b0f6b1afd914" alt=""><figcaption></figcaption></figure>
3. Give your alert source a name, optionally assign teams and click **Next**.
4. Select an **escalation policy** by creating a new one or assigning an existing one.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FNnuZqONaIhbOf6fn4OkZ%2FScreenshot%202023-08-28%20at%2011.37.47.png?alt=media&#x26;token=8a74f7b5-5bd2-4eea-97fa-1c1dbb041333" alt=""><figcaption></figcaption></figure>
5. Select you [Alert grouping](https://docs.ilert.com/alerting/configure-alerting/alert-sources#alert-grouping) preference and click **Continue setup**. You may click **Do not group alerts** for now and change it later.&#x20;

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FueugN4JgHn1c90ggFA6u%2FScreenshot%202023-08-28%20at%2011.38.24.png?alt=media&#x26;token=b8009daf-3ca8-4264-a6fa-e42ef7333205" alt=""><figcaption></figcaption></figure>
6. The next page show additional settings such as customer alert templates or notification prioritiy. Click on **Finish setup** for now.
7. On the final page, an API key and / or webhook URL will be generated that you will need later in this guide.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fi3TIOBvNYBQfDtNpmm0A%2FScreenshot%202023-08-28%20at%2011.47.34.png?alt=media&#x26;token=6cae965a-e448-4443-8c20-37cf501c43b2" alt=""><figcaption></figcaption></figure>

## In Particle: Create a Webhook

1. In the sidebar click on **Integrations**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FZUAV0HH18wUflfJirhOK%2FParticle-1.png?alt=media&#x26;token=5b7f95a8-a8de-4157-8e16-d586ab8c10e0" alt="" width="563"><figcaption></figcaption></figure>

2. Now click on **ADD NEW INTEGRATION**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FM8S29bDkhTCmNXaHgFtA%2FParticle-2.png?alt=media&#x26;token=207fef25-554b-44e0-839b-9856e8bd078e" alt="" width="563"><figcaption></figcaption></figure>

3. Click on **Webhook**, to create a new webhook integration.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FeCJvb9CZdfE78rtQ3Qvy%2FParticle-3.png?alt=media&#x26;token=675bdb62-61b3-4acd-8df6-fe62ebfd5dc0" alt="" width="563"><figcaption></figcaption></figure>

4. Enter a **Name**, an **Event Name**(ALERT or RESOLVE) and the [previous](#in-ilert-create-a-particle-alert-source) generated ilert webhook URL into the **URL** field.
5. Change the **Request Type** to **POST** and open the **Advanced Settings**.

{% tabs %}
{% tab title="ALERT" %}

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FnbtDRLTAmZZfXSa5NSJm%2FParticle-5.png?alt=media&#x26;token=e744ccfa-5b95-43ea-9b26-2195a9e06f4e" alt="" width="563"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="RESOLVE" %}

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Ft2Zwt7Zc0YDogbDM84xj%2FParticle-7.png?alt=media&#x26;token=4507fe40-f649-494c-9a15-231d69e1a82f" alt="" width="563"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

6. Select **Default**. (for custom json data follow this [step](#in-particle-custom-json-data))

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2F93gLfYIeY3Mm8vZuZ6zP%2FParticle-10.png?alt=media&#x26;token=d7c29694-d9c3-496e-ac49-d9fa5393fc21" alt="" width="563"><figcaption></figcaption></figure>

7. Click on **SAVE**.
8. Optional: Click on **TEST** to test the integration.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FHPVOuu5PzixvQkZK9QCo%2FParticle-9.png?alt=media&#x26;token=6a2a12d4-2098-429a-a834-c70732423804" alt="" width="563"><figcaption></figcaption></figure>

## Custom Webhooks

### In Particle: Custom json data

1. Under Advanced Settings choose **Custom** for **JSON DATA**.
2. Create a template using the Particle [documentation](https://docs.particle.io/reference/cloud-apis/webhooks/). (it is also possible to add own customized values)

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FF8z5YmylBHGjIYVrODRy%2FParticle-template-1.png?alt=media&#x26;token=677c0cf3-7f75-4583-bbf9-e23eea5e8d83" alt="" width="563"><figcaption></figcaption></figure>

### In ilert: Create a custom template

1. Go to the alert source edit view.
2. Under **Alert template** enable **Alert summary** and **Alert details**.
3. For a detailed guide on how to use our alert templating click [here](https://docs.ilert.com/alerting/alert-sources#customize-your-alerts-with-alert-templates).
4. Use the payload keys created in this [step](#in-particle-custom-json-data) to create the alert template.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FSY0WKy55ZLh0Mbkih7Ta%2FParticle-template-2.png?alt=media&#x26;token=c39aaf6d-188d-469c-8ae5-b65e3097d8b6" alt=""><figcaption></figcaption></figure>

## FAQ <a href="#faq" id="faq"></a>

**Will alerts in ilert be resolved automatically?**

Yes, as soon as a webhook integration is sending an RESOLVE event, the alert in ilert will be fixed. To create RESOLVE events, follow the [guide](#in-particle-create-a-webhook) and use RESOLVE as Event Name.
