Workflow activate rest API doesn't work properly

We are calling N8N API to create and activate workflows. All works fine, but when I activate a workflow including a webhook node, the production webhook URL doesn’t trigger the workflow. But when I do a small change and save the workflow from the n8n UI itself, the workflow works perfectly fine.

When I call the webhook URL, I get

{
  "code": 404,
  "message": "The requested webhook \"GET cac8a910-1297-454b-a09b-f0d29498e6ca\" is not registered.",
  "hint": "The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)"
}

Workflow setup

Maybe it is triggering it, you can check the result on ‘Executions’ tab.

I did, it doesn’t trigger.

Ahh, not sure if you’ve already figured it out, but are you using the production webhook, or the test one?

Yes, it is fixed. I was missing webhookId.

So… no one solutions are correct:D