vinzce
vinzce3mo ago

Unable to configure webhooks for Sendgrid callbacks

Hi all I didn't found how to configure the Windmill token for bearer authentication with Sendgrid webhooks. I wang to get the callback results in order to know the status of Emails delivery (Processed, Delivered,Dropped ...). Any idea ? Thank you
5 Replies
fjørdlek
fjørdlek3mo ago
have you tried passing the token in the query? <yourwebhook>?token=<token>
fjørdlek
fjørdlek3mo ago
No description
vinzce
vinzceOP3mo ago
As you can see on the screen capture, there is no option for configuring a token on SendGrid. https://www.twilio.com/docs/sendgrid/api-reference/webhooks/create-an-event-webhook#request-body The webhook was the right way to do but it is not an option. I try to find another solution like Email activity Feed API and reading Messages status. https://www.twilio.com/docs/sendgrid/for-developers/sending-email/getting-started-email-activity-api#getting-started And may Brevo is a better integration with WIndmill.
Getting Started with the Email Activity Feed API | SendGrid Docs | ...
Use the Email Activity Feed query language to get started with the Email Activity Feed API.
No description
fjørdlek
fjørdlek3mo ago
You don't need a specific option as the token is part of the url: Try the following below: 1. On windmill in the "Triggers" section of your script, click "create webhook specific token" 2. Token configuration => Token in Query 3. Copy REST url, it should be of this format: e.g with ?token=... at the end https://wmlocal.indiway.f/api/w/alex_windows/jobs/run_wait_result/p/u/alex/6eqX7FNjTDel?token=abcdabcdabcdabce 4. Paste it into sendgrid POST url (the token is part of the URL) 5.Save
No description
vinzce
vinzceOP3mo ago
It was obviously right in front of my nose. It works. Thanks, Alex.

Did you find this page helpful?