Webhook endpoint url issue

I’ve created webhook in sandbox environment. I want to test it in my rails app. To make it public I am using ngrok , which is not supported by nylas , nor even hookdeck support get request . what should I do . I want to fetch the responses of created webhook.

@manjinder thanks for sharing, let me take a look and follow up!

Hi @manjinder, here are a few resources to help:

Hello @manjinder while not entirely related, I posted a blog on how to use Ruby and Sinatra to create and read webhooks :slight_smile:

@ram @Blag
I am similarly stuck - I want to set up a webhook and to test it with my app running locally on my machine, I set up an ngrok endpoint. But when I plug in that ngrok endpoint into the “Webhook URL” field of the “Create a webhook” page on the developer portal, I get the error message “Webhook URL is not secure.”

How can I set up and test my webhook on my machine locally using ngrok (or some alternative to ngrok)? There has to be a way to test it locally??

@philseeman For localhost, Bruno is a great alternative :sunglasses: Here’s a blog post that talks about it How to create and read webhooks with PHP, Koyeb, and Bruno | Nylas

There’s also https://hookdeck.com/ which is similar to ngrok

Now, there are free web alternatives and my favorite ones are https://www.koyeb.com/ and https://render.com/

All that said, you can use this endpoint Nylas v3 Administration API docs | Nylas Docs to get mock payloads so that you can know what to expect from a webhook

1 Like

Thanks very much for the quick reply and the info, @Blag! I will definitely check out the alternatives you mention.

Do you know why these other services are allowed but ngrok is not? I already pay almost $100/year for ngrok; it’s sad that I can’t use it with Nylas.

@philseeman Sadly…I guess we used to recommend ngrok to test webhooks, and people start using it or abusing it in some cases…that’s why they don’t link like us very much :sweat_smile:

Interesting! In any case, thanks again for the recommendation - I got Hookdeck up and running quickly and it works perfectly to allow me to test my webhook processing function locally.

Awesome! :partying_face: I’m glad it works for you :sunglasses: