Connection refused

I am getting connection refused error

Check that you have a service listening on port 443, and either ensure that curl trusts the certificate used by ST2/nginx, or use curl --insecure.

Also, once you get that working, you will need to pass an API key with the webhook. Generate that with st2 apikey create.

See the webhook documentation for more information.