diff --git a/frontend/settings.html b/frontend/settings.html index 1741092..80febc1 100644 --- a/frontend/settings.html +++ b/frontend/settings.html @@ -131,6 +131,16 @@ +
+ +
+ + +
+
Paste this into your email provider (e.g. SendGrid, Mailgun) to receive open/click/bounce events.
+
@@ -436,6 +446,14 @@ const orgId = document.getElementById('org-id').value; copyToClipboard(orgId, copyOrgBtn); }); + const webhookUrlInput = document.getElementById('webhook-url'); +if (webhookUrlInput) { + webhookUrlInput.value = `${oauthHost}/api/v1/webhooks/email/`; +} +const copyWebhookBtn = document.getElementById('copy-webhook-url-btn'); +copyWebhookBtn?.addEventListener('click', () => { + copyToClipboard(webhookUrlInput.value, copyWebhookBtn); +}); const saveBtn = document.getElementById('save-profile-btn'); if (saveBtn) {