Error with Webhook URL



I would like to create a nodejs app using this package
but I’m having the following error when I run it:

Error: Webhook URL must be defined to create subscriptions.

I already have a developer account with all the needed permission.
My webhook works since if I test it using


I get the right response.

Could it be a problem with the TLS certificate? It’s self signed


Have you registered the webhook via the API, before attempting to create any subscriptions?


i am tring to create webhook nod js aap to use DM on twitter
please could you help