Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify the ip address SendGrid uses to send Webhook Events from

Is there a way to specify the ip address SendGrid uses or identify the ip address or range that they use to send Webhook Event responses? I need to restrict a server to only those external calls.

like image 540
Chris Hayes Avatar asked Jan 13 '17 23:01

Chris Hayes


People also ask

What is SendGrid message ID?

The SendGrid Message ID, is a unique identifier assigned to individual email messages by the email server responsible for sending the message. SendGrid will create a Message ID for each individual message you send through our systems.

What is event in Webhook?

Webhook events are how the Messenger Platform notifies your bot when a variety of interactions or events happen, including when a person sends a message. Webhook events are sent by the Messenger Platform as POST requests to your webhook.

What does processed mean in SendGrid?

1. Processed. This event fires when SendGrid receives an individual message and prepares it to be delivered. Think of this as the top of the funnel-unless it is dropped (see below), each message you push to SendGrid will create a processed event.


1 Answers

There's no way to do this and it's unlikely to be a sustainable strategy since the number of servers and their address is going to change. You might be able to do a rDNS lookup. But the easiest way might be to implement basic auth over https as described here https://sendgrid.com/docs/API_Reference/Webhooks/event.html#-Setup

like image 184
bwest Avatar answered Sep 22 '22 02:09

bwest