> For the complete documentation index, see [llms.txt](https://docs.violetlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.violetlabs.com/es/funciones/api/webhooks-salientes/configura-un-webhook.md).

# Configura un webhook

Crea un webhook saliente en Violet y conéctalo a tu endpoint.

Un administrador del inquilino crea webhooks desde **Webhooks › Salientes**, en el menú debajo de tu nombre en la parte inferior izquierda.

<figure><img src="https://3116332745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2F0FOzecBzLNPLvIHyfyOz%2Foutbound-webhooks-list.png?alt=media" alt="The Outbound tab lists each webhook with its endpoint, source, status and last delivery." width="700"><figcaption><p>La pestaña Salientes lista cada webhook con su endpoint, origen, estado y última entrega.</p></figcaption></figure>

1. Haz clic en **Crear webhook saliente**.
2. Introduce un **Nombre** y el **URL del endpoint**. La URL debe ser HTTPS; debe ser pública o estar en la lista de permitidos para que [las direcciones IP de Violet](https://docs.violetlabs.com/es/recursos/administrativo/conecte-software-autoalojado/lista-de-de-ip.md) puedan acceder a ella.
3. Opcional: en **Encabezados personalizados**, haz clic en **Añadir encabezado** para enviar las credenciales propias de tu endpoint, por ejemplo `X-API-Key`. Puedes añadir hasta 10. Los valores se almacenan cifrados y no se vuelven a mostrar.
4. En **¿Qué entidades?**, elige cómo selecciona entidades el webhook:
   * **Vincular una exploración** y elige una exploración guardada. El panel enumera los tipos de entidad que abarca, cuántas entidades coinciden hoy y, aproximadamente, con qué frecuencia cambian. Solo se pueden vincular exploraciones públicas guardadas en tu tenant, no plantillas compartidas; cualquiera que pueda editar la exploración cambia lo que envía el webhook.
   * **Configurar manualmente**, expande una integración y marca los tipos de entidad a supervisar. Los tipos marcados **Recomendado** suelen ser la opción correcta, por ejemplo el tipo de revisión de la pieza en lugar de tanto la pieza como su revisión.
5. En **Eventos**, selecciona los [tipos de eventos](https://docs.violetlabs.com/es/funciones/api/webhooks-salientes/eventos-y-cargas-utiles.md#event-types) a enviar.
6. En **Propiedades supervisadas**, elige qué cambios de propiedad cuentan como una actualización. Déjalo vacío para activarlo con cualquier cambio de propiedad.
7. Haz clic en **Crear webhook**.

<figure><img src="https://3116332745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FWU5CsSfqAm96KZLIEyeQ%2Foutbound-webhooks-create-linked.png?alt=media" alt="Linking an exploration: the panel shows the entity types it covers and the watched properties taken from its columns." width="420"><figcaption><p>Al vincular una exploración: el panel muestra los tipos de entidad que abarca y las propiedades supervisadas tomadas de sus columnas.</p></figcaption></figure>

<figure><img src="https://3116332745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FHM2FyRMKl3aqHEA929En%2Foutbound-webhooks-create-manual.png?alt=media" alt="Manual setup: pick entity types per integration, then the events and watched properties." width="420"><figcaption><p>Configuración manual: elige los tipos de entidad por integración y luego los eventos y las propiedades supervisadas.</p></figcaption></figure>

Después de crear el webhook, Violet muestra su **secreto de firma** una sola vez. Cópielo en la configuración de tu receptor para [verificar las firmas](https://docs.violetlabs.com/es/funciones/api/webhooks-salientes/verificar-firmas.md).

<figure><img src="https://3116332745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FuPkiqZLjyUb9vVzquNu9%2Foutbound-webhooks-signing-secret.png?alt=media" alt="The signing secret is shown once, on create and on rotate." width="563"><figcaption><p>El secreto de firma se muestra una sola vez, al crearlo y al rotarlo.</p></figcaption></figure>

Luego comprueba la conexión: abre el menú kebab del webhook (**⋮**) y haz clic en **Enviar prueba**. Tu endpoint recibe un `subscription.ping` evento. Para un webhook vinculado a una exploración, también puede que quieras cargar una vez los resultados actuales de la exploración, como se describe en [Re-sincronizar un webhook vinculado](https://docs.violetlabs.com/es/funciones/api/webhooks-salientes/entrega-y-reintentos.md#resync-a-linked-webhook).


---

# 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.violetlabs.com/es/funciones/api/webhooks-salientes/configura-un-webhook.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.
