create_hook
Create webhooks or MQTT hooks to receive events via HTTP or WebSocket, returning a unique hook ID and public URL for integration.
Instructions
Create a new webhook or MQTT hook. Returns the new hook ID and its public URL.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | The type of hook to create. Use 'mqtt' to create an MQTT source hook. | standard |
| deliveryMethod | No | How you want to receive events. Defaults to 'websocket' for easy testing. | websocket |
| callbackUrl | No | Required if deliveryMethod is 'http' or 'both'. | |
| metadata | No | Optional key-value metadata to attach to the hook (name, tags). | |
| sourceConfig | No | Configuration for MQTT source. Required if type is 'mqtt'. |