Create a webhook in the Nylas Dashboard

Hello,
I want to use a webhook that I utilized for Nylas v2, but when I write it in Nylas v3, I encounter an error. What does it mean?
This is webhook in Nylas v2


This is error in Nylas v3

Hello @Kateryna Webhooks in V3 need to follow a certain name convention:

<YOUR_WEBHOOK_URL>/webhook

When creating your webhook, Nylas will look for that URL and request a challenge that must be returned.

Check this code sample ruby-read-webhooks/app.rb at main · atejada/ruby-read-webhooks · GitHub

get '/webhook' do
    if params.include? "challenge"
	    "#{params['challenge']}"
   end
end

Also, check the Webhooks Quickstart Guide: Webhook Quickstart: create and read webhooks | Nylas Docs :slight_smile:


@Blag І aded name and url.

@Kateryna I just test it out and delete it afterwards…and it’s working for me…

No need for /webhook in your case…please try again…

The first step is to go to the tab Notifications and click on Create Webhook


The second step is to add a name and a link

Choose triggers

when I click button create webhook and I have the same error

@Blag I try use API


but I get error

@Kateryna Just test it again and noticed one single detail :slight_smile:

southeast1 here is 1 and you’re using an l. So don’t use southeastl but southeast1

2 Likes