Portainer icon

Portainer

Interact with Portainer via API

Actions190

Stacks → Webhook Invoke

AI-generated

Overview

This node allows invoking a webhook on a specific Stack within the Portainer environment. It is useful for triggering automated workflows or integrations that rely on webhooks configured in Portainer stacks. For example, you might use this node to programmatically trigger deployment pipelines, notify external systems of stack events, or integrate Portainer-managed containers with other services.

Properties

Name Meaning
Webhook ID The identifier of the Stack's webhook to invoke. This is required to specify which webhook should be triggered.

Output

The node outputs JSON data representing the response from the webhook invocation. This typically includes any data returned by the Portainer API after the webhook call, such as status information or results of the triggered action. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential to authenticate with the Portainer API.
  • Needs the base URL of the Portainer instance configured in credentials.
  • Depends on the Portainer API being accessible and the specified webhook existing on the target Stack.

Troubleshooting

  • Invalid Webhook ID: If the provided webhook ID does not correspond to an existing webhook, the node will likely return an error. Verify the webhook ID is correct.
  • Authentication Errors: Ensure the API key credential is valid and has sufficient permissions to invoke webhooks.
  • Network Issues: Connectivity problems to the Portainer API endpoint can cause failures; check network access and URL correctness.
  • Webhook Configuration: The webhook must be properly configured and active in Portainer; otherwise, invocation may fail or have no effect.

Links and References

Discussion