Webhook not responding after creating workflow via API until manually edited and saved
When creating a workflow dynamically using the POST /workflows API and activating it via POST /workflows/:id/activate, the Webhook node does not respond to HTTP requests, even though the workflow is marked as “active”. The webhook only starts responding after the workflow is manually opened and saved via the n8n UI — even without modifying any actual content.
To Reproduce
1-Use the API to create a workflow that includes a Webhook node.
2-Immediately activate the workflow via API.
3-Attempt to send an HTTP request to the webhook URL — no response or connection.
4-Open the workflow in the n8n UI, change one character (or not), press “Save”.
5-The Webhook now responds correctly.
Expected behavior
The Webhook endpoint should be registered and active immediately after the workflow is created and activated via API, without requiring manual intervention.
Operating System
Ubunto 22.04
n8n Version
1.88.0 self-hosted
Node.js Version
latest
Database
PostgreSQL
Execution mode
main (default)