- Clone this repo to your local environment and run
npm install
. - Copy your HelloSign API Key into the .env-example file and rename it to .env
- From the root folder of this repo, run
node server
to start the express server. - In a separate shell,
ngrok http 8080
(port must matchPORT
in the server.js file). This creates a public url to your localhost which is used for webhooks. - Copy the forwarded https url from ngrok.
- In the HelloSign API Settings page, paste the copied ngrok url into the "Account callback" field and append the /hellosign-events POST route defined in server.js. (My callback url looks like this:
https://a0a5-50-47-128-110.ngrok.io/hs-events
) - Click the "test" button to verify your webhook handler is working. You should see a success message that your server received the test event.
- You're all set. Now you can observe callback events as you're tinkering with the API.
-
Notifications
You must be signed in to change notification settings - Fork 0
TaylorKrusen/hs-webhook-example
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example webhook server for processing HelloSign callback events
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published