BoldSign Mobile Icon

Setting up your endpoint to listen for callbacks

Mon, 24 January, 2022

You can initially set up a web application to receive the callbacks in your local machine and check how the call back process works. For this you need to expose a web server running on your local machine to the internet.
This process can be done with help of ngrok application. You can find more information regarding the same in this link.

Ngrok can be installed to your machine using the below mentioned command line:

npm install ngrok -g

Once the setup is installed, you can expose your local web application port which you have configured to listen and respond for callbacks using below mentioned command line:

ngrok http -host-header=localhost <Your local web application port>

ngrok http -host-header=localhost http://localhost:42033

After executing above mentioned command you will get an output as shown below:

Session Expires               1 hour, 59 minutes                                                                        
Version                       2.3.38                                                                                    
Region                        United States (us)                                                                        
Web Interface                                                                            
Forwarding           -> http://localhost:42033                                    Forwarding                    https:// -> http://localhost:42033

Choose the link with https and use this in upcoming webhook setup in your BoldSign application.

Copied to clipboard