> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/it/knowledge-base/how-to-articles/send-real-time-notifications-to-external-services-with-webhooks.md).

# Inviare notifiche in tempo reale a servizi esterni con i webhook

Invii notifiche webhook in tempo reale da Devolutions Cloud e Devolutions Server a servizi esterni utilizzando i segnaposto handlebars per i dati degli eventi.

I webhook consentono di inviare notifiche in tempo reale a servizi esterni ogni volta che si verificano determinati eventi nel suo Devolutions Cloud. Si noti che i webhook sono disponibili anche in Devolutions Server.

{% hint style="info" %}
Il [servizio di reporting di Devolutions Cloud](https://docs.devolutions.net/cloud/it/web-interface/reports/scheduled-reports) deve essere in esecuzione, poiché gestisce la crittografia e la decrittografia dei payload dei webhook durante l'elaborazione.
{% endhint %}

1. Vada a ***Amministrazione*** – ***Webhook***.
2. Clicchi su **Aggiungi.**
3. Inserisca un nome descrittivo.
4. Fornisca l'URL dell'endpoint a cui Devolutions Cloud invierà le richieste HTTP POST.
5. Scelga gli eventi che attiveranno il webhook.
6. Facoltativamente, può definire un payload personalizzato da inviare con il webhook. Ad esempio, se desidera inviare un messaggio in Slack per ogni nuova voce creata, il ***Custom HTTP Body (JSON***) avrebbe questo aspetto:

​`json { "Text": "New entry {{EntryName}} created by {{CreatedBy.DisplayName}}" } ​`

7. Clicchi su ***Aggiungi*** per salvare il webhook.

### Elenco degli handlebars per webhook

Di seguito è riportato l'elenco dei segnaposto handlebars disponibili. Questi segnaposto vengono sostituiti automaticamente con i dati effettivi dell'evento ogni volta che viene attivato un webhook.

#### Campi aggiuntivi disponibili in ogni trigger

* VaultName
* TriggerType (enum)
* TriggerTypeName

#### Nuova richiesta di check-out

* EntryId
* EntryName
* RequesterMessage
* Requester.DisplayName
* Requester.Email
* Approvers (Array of {DisplayName: "name", Email: "<email@example.com>"})
* RequestedMinutes

#### Richiesta di check-out approvata e negata

* EntryId
* EntryName
* RequesterMessage
* Requester.DisplayName
* Requester.Email
* Approvers (Array of {DisplayName: "name", Email: "<email@example.com>"})
* ApproverMessage
* RequestedMinutes
* Approved (bool)

#### Voce creata

* EntryId
* EntryName
* CreatedBy.DisplayName
* CreatedBy.Email

#### Richiesta di accesso temporaneo

* EntryId
* EntryName
* RequesterMessage
* Requester.DisplayName
* Requester.Email
* Approvers (Array of {DisplayName: "name", Email: "<email@example.com>"})
* RequestedMinutes

#### Richiesta di accesso temporaneo approvata e negata

* EntryId
* EntryName
* RequesterMessage
* Requester.DisplayName
* Requester.Email
* Approver.DisplayName
* Approver.Email
* ApproverMessage
* RequestedMinutes
* Approved (bool)


---

# 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.devolutions.net/server/it/knowledge-base/how-to-articles/send-real-time-notifications-to-external-services-with-webhooks.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.
