Workflow webhooks don't work if you create them via an API

Just curious if this is a known issue of webhooks returning 404 if they were created and published via n8n REST API.

I came across a weird issue when I was trying to test my workflow via an API after I created it via an API and also published it.

Is there any workaround for this issue?