> For the complete documentation index, see [llms.txt](https://docs.datacake.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datacake.de/integrations/particle/adding-integrations.md).

# Adding Integrations

For the smooth functioning of the Particle Integration, a connection between the Particle Console and Datacake must be established.

For calling Particle Functions we use your Access Token for this purpose.

For forwarding Particle Publish calls from your devices, a webhook integration must be stored in the Particle Console for each message type.

We will show you how to do this in this documentation.

## Add a new Webhook

Now open your Particle Console and navigate to the product whose devices you want to import into Datacake.

Use the sidebar to navigate to the integration section. Now add a first integration. To do this, click on "New Integration" and select the integration type in the next step.

Here we choose the type "**Webhook Integration**".

### Configure Webhook

#### Event Name

Here you define the name of your event. So if your device publishes the following event `Particle.Publish(“temperature”, ...);` - enter exactly the same name in the text field for the event name.

#### URL

Paste in the following URL into the Textfield:

* [`https://api.datacake.co/integrations/particle/`](https://api.datacake.co/integrations/particle/)

#### Request Type

The request type can be left at the default setting:

* `POST`

#### Request Format

We also leave the request format at its default setting. This is:

* `Web Form`

### Repeat for every Event

For each event that you want to transfer from your devices to the Datacake integration, you must create a separate integration using the same principle. So if your device uses the following events, you need to create a separate webhook integration for each of them.

```cpp
float temp = 19.5;
float hum = 66.5;

Particle.publish("temperature", String::format("%.1f", temp);
Particle.publish("humidity", String::format("%.1f", hum);
```

## Particle Diagnostic Integration

In addition to your own events, there are system events that are anchored in the operating system of your devices (Device OS). These events are used for diagnostics or other functions and can also be transferred to the Datacake platform to display the diagnostics there.

## Device Online / Offline Status


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.datacake.de/integrations/particle/adding-integrations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
