create_webhook_destination
Create a filtered outbound webhook to send UniFi events to a custom endpoint, optionally filtered by category and signed with a secret. Requires explicit confirmation to persist.
Instructions
Create a filtered outbound webhook. Requires confirm=true.
Mutating operation: persists a new outbound webhook destination posting to url, optionally signing with a secret from secret_env_name and limited to categories. Returns success=false unless confirm=true. Use set_webhook_destination_enabled to pause it, or delete_webhook_destination to remove it.
Args: name: Unique destination identifier. url: Endpoint that receives webhook payloads. secret_env_name: Optional name of an env var holding the signing secret. categories: Optional list of event categories to send; empty sends all. confirm: Must be True to create the destination; without it the call is a no-op. Defaults to False.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Endpoint that receives webhook payloads. | |
| name | Yes | Unique destination identifier. | |
| confirm | No | Must be True to create the destination; without it the call is a no-op. Defaults to False. | |
| categories | No | Optional list of event categories to send; empty sends all. | |
| secret_env_name | No | Optional name of an env var holding the signing secret. |