Level icon

Level

Interact with the Level API

Actions7

Automation → Trigger Webhook

AI-generated

Overview

This node triggers a webhook for automation purposes using a specified webhook token. It allows sending a payload either as raw JSON or as individual parameters defined via the UI. The node supports targeting specific devices by their IDs and passing additional custom parameters that can be mapped to variables configured on the webhook trigger. It is useful for automating workflows that require triggering external or internal webhook endpoints with dynamic data, such as activating device automations or integrating with other systems via webhook calls.

Use Case Examples

  1. Trigger an automation webhook with a JSON payload to activate a device action.
  2. Send custom parameters to a webhook to dynamically control automation behavior based on user input.
  3. Trigger automation for specific devices by providing their IDs while still applying trigger conditions.

Properties

Name Meaning
Webhook Token The token used to authenticate and trigger the webhook.
JSON Parameters Determines whether the payload body is defined as raw JSON or via UI parameters.
Payload (JSON) The JSON payload to send in the webhook request when JSON Parameters is true.
Device IDs List of device IDs to trigger the automation for, while still applying trigger conditions.
Custom Parameters Additional key-value parameters that can be mapped to variables configured on the webhook trigger.
Response Property Name If the API response wraps the array in a property, specify that property name to extract it. If empty, the whole response is returned or auto-detected.
Request Options Settings for request behavior such as batching, SSL validation, proxy, and timeout.

Output

JSON

  • response - The full or extracted response from the webhook trigger request.

Dependencies

  • An API key credential for authenticating with the Level API

Troubleshooting

  • Ensure the webhook token is correct and has the necessary permissions to trigger the automation.
  • If using JSON payload, verify the JSON syntax is valid to avoid request errors.
  • Check network connectivity and proxy settings if the request fails to reach the webhook endpoint.
  • If SSL validation errors occur, consider enabling the option to ignore SSL issues, but be aware of security risks.
  • Timeout errors may occur if the server is slow to respond; adjust the timeout setting accordingly.

Links

Discussion