SendGrid Event Webhook

SendGrid event webhook with delivery, engagement, and compliance events.

Report an issue
sendgrid

Install

$ npx shadcn@latest add @open-types/sendgrid-event-webhook

Source

export type SendGridEventType =
  | "processed"
  | "dropped"
  | "delivered"
  | "deferred"
  | "bounce"
  | "open"
  | "click"
  | "spam_report"
  | "unsubscribe"
  | "group_unsubscribe"
  | "group_resubscribe";

export interface SendGridEvent {
  email: string;
  timestamp: number;
  event: SendGridEventType;
  sg_event_id: string;
  sg_message_id?: string;
  category?: string | string[];
  reason?: string;
  url?: string;
  useragent?: string;
  ip?: string;
}
export type SendGridEventType =
  | "processed"
  | "dropped"
  | "delivered"
  | "deferred"
  | "bounce"
  | "open"
  | "click"
  | "spam_report"
  | "unsubscribe"
  | "group_unsubscribe"
  | "group_resubscribe";

export interface SendGridEvent {
  email: string;
  timestamp: number;
  event: SendGridEventType;
  sg_event_id: string;
  sg_message_id?: string;
  category?: string | string[];
  reason?: string;
  url?: string;
  useragent?: string;
  ip?: string;
}