Back to Templates
See llms.txt for all machine-readable content.
This workflow provides a universal webhook endpoint that dynamically routes incoming requests to different subflows. It allows you to manage multiple API-like endpoints from a single entry point, while ensuring proper error handling and consistent responses.
action parameter and method against your route configuration.action parameterThe action query parameter is the key that controls routing:
action name, a list of allowed HTTP methods, and the target subflow ID.action in this config.In other words:
action → subflow ID?action=... → determines which subflow runsThis makes action both the mapping key in the configuration and the control key for triggering the correct logic.
action nameThis workflow is useful if you want to:
👉 A practical solution to turn n8n into a flexible and maintainable API gateway.