# Webhooks

Get real-time updates from MailerSend sent straight to your app. Here’s how to add, test and monitor your webhooks.

Webhooks allow you to subscribe to real-time notifications about various events that occur in MailerSend.

Listen for events on your MailerSend account so your integration can automatically trigger reactions. You can create a webhook directly from your account.

For example, an HTTP POST callback is sent to your provided URL with a payload about the sent email. It allows you to get the most recent updates without constantly polling the API.

**Note:**

**Webhooks 2.0 have launched!** This makes webhook payloads lighter for better, faster performance. Learn more about the [new webhooks](/content/whats-new/webhooks-v2/index.html).

## Add a webhook to your domain

To create a webhook, follow these steps:

1\. Go to the **Domains** page.

2\. Click **View domain** for the domain you wish to add webhooks to.

3\. Scroll down to **Webhooks**.

4\. Click **Add webhook**.

5\. Complete the form by entering the endpoint URL you wish the information to be sent to and your webhook name.

6\. Click **Select events** and choose the events you’d like to listen to. You can use the search box to find a specific event quickly. Popular events include _Delivery, Soft bounce, Hard bounce, Open, Click, Unsubscribe, Spam complaint, Domain reputation changed_ and _Account reputation changed_. You’ll find the full list of events in our [API reference](https://developers.mailersend.com/api/v1/webhooks.html).

**Note:**

New webhooks default to version **2.0 (Recommended)**. Please note that Webhooks 1.0 is deprecated and will be removed on December 1, 2026, so we recommend migrating to Webhooks 2.0 if you haven't already. Learn more about the [new webhooks](/content/whats-new/webhooks-v2/index.html).

7\. Click on **Save webhook** and you’re done!

Once you have saved your webhook, you can copy your secret webhook key to your receiving app. You can find this on the webhook management page.

You can also pause the webhook by clicking on **Edit** and then on the **Status** toggle, moving it from **Enabled** to **Disabled**.

## How to test a webhook

To test your webhook:

1\. Choose the webhook you wish to test and click **Manage**.

2\. Under **Events**, click **Test webhook**.

3\. Select a test event from the dropdown menu to send to the webhook’s endpoint to test your integration.

## About webhook attempts

You can consult all webhook attempts that have been made in the last 7 days in the Webhook attempts section of your webhook description page.

When your webhook receives a response other than a 2xx code from your endpoint URL, or if the endpoint doesn’t respond within 3 seconds, it will show up as a failed attempt in the log section of your webhook. If it receives a 2xx, then it will show as a success.

If a webhook call fails, MailerSend will retry the call a couple of times, waiting 10 seconds between the first and second attempt and 100 seconds between the second and the third attempt to avoid hammering the application you want the information sent to.

## Need more info?

Please feel free to contact us at [support@mailersend.com](mailto:support@mailersend.com) and a member of our support team will gladly assist you.

- [Getting started: Sending your first email](/content/help/getting-started/index.html)  - [Navigating the app interface](/content/help/navigating-the-dashboard/index.html)
- [Email](/content/help/email/index.html)  - [Add and verify a sending domain](/content/help/how-to-verify-and-authenticate-a-sending-domain/index.html)
  - [How to merge multiple SPF records](/content/help/how-to-merge-spf-records/index.html)
  - [Start sending transactional emails](/content/help/how-to-start-sending-emails/index.html)
  - [SMTP relay](/content/help/smtp-relay/index.html)
  - [Testing email sending with blackhole recipients](/content/help/how-to-test-email-sending-in-mailersend/index.html)
  - [Email Activity](/content/help/activity/index.html)
  - [Analytics](/content/help/analytics/index.html)
  - [Bulk email sending](/content/help/schedule-bulk-emails-with-the-bulk-endpoint/index.html)
  - [Custom headers](/content/help/custom-headers/index.html)
  - [Custom unsubscribe headers](/content/help/how-to-add-a-custom-unsubscribe-header/index.html)
  - [Sending domains](/content/help/what-is-a-sending-domain/index.html)
  - [Domain reputation](/content/help/domain-reputation/index.html)
  - [Domain tracking options](/content/help/domain-tracking-options/index.html)
  - [Personalization in emails](/content/help/how-to-use-personalization/index.html)
  - [Sender identities](/content/help/send-email-on-behalf-of-clients/index.html)
  - [Split Testing](/content/help/a-b-split-testing/index.html)
  - [Surveys](/content/help/how-to-add-a-survey-to-your-emails/index.html)
  - [Tagging emails](/content/help/how-to-tag-emails/index.html)
  - [Templates](/content/help/how-to-create-a-template/index.html)
  - [How to translate email templates automatically](/content/help/template-translations/index.html)
  - [How to configure SMTP connections correctly (421: Service not available error)](/content/help/smtp-configuration-421-error/index.html)
  - [How to enable Google Email Actions & Highlights](/content/help/enable-google-email-actions/index.html)
  - [How transactional emails work](/content/help/how-transactional-emails-work/index.html)
  - [The difference between transactional emails and marketing emails](/content/help/transactional-email-vs-marketing-email/index.html)
- [SMS](/content/help/sms/index.html)  - [Purchase an SMS phone number](/content/help/how-to-purchase-an-sms-phone-number/index.html)
  - [Start sending SMS](/content/help/how-to-start-sending-sms/index.html)
  - [SMS: How to handle opt-in and opt-out](/content/help/sms-how-to-handle-opt-in-and-opt-out/index.html)
  - [SMS verification and usage limits](/content/help/sms-verification-and-limits/index.html)
- [WhatsApp](/content/help/whatsapp/index.html)  - [Getting started with WhatsApp](/content/help/getting-started-with-whatsapp/index.html)
  - [How to connect and use the WhatsApp sandbox](/content/help/whatsapp-sandbox/index.html)
  - [Managing WhatsApp Business phone numbers](/content/help/managing-whatsapp-business-phone-numbers/index.html)
  - [How to create and manage WhatsApp templates](/content/help/how-to-create-and-manage-whatsapp-templates/index.html)
  - [WhatsApp message activity](/content/help/whatsapp-message-activity/index.html)
  - [WhatsApp inbound messaging: How it works and how to set it up](/content/help/whatsapp-inbound-messaging/index.html)
- [Developer tools](/content/help/developer-tools/index.html)  - [Managing API tokens](/content/help/managing-api-tokens/index.html)
  - [Webhooks](/content/help/webhooks/index.html)
  - [API & SMTP request logs](/content/help/api-smtp-logs/index.html)
  - [REST API response codes](/content/help/rest-api-response-codes/index.html)
- [Deliverability](/content/help/deliverability/index.html)  - [Blocklist monitoring](/content/help/blocklist-monitoring/index.html)
  - [DMARC monitoring](/content/help/dmarc-monitoring/index.html)
  - [How to verify an email list](/content/help/how-to-verify-email-addresses/index.html)
  - [Deferred emails](/content/help/what-are-deferred-bounces/index.html)
  - [Suppressions](/content/help/suppression-list-managing/index.html)
  - [On Hold blocklist](/content/help/on-hold-blocklist/index.html)
  - [Spam complaints](/content/help/spam-complaints/index.html)
  - [403, 422, & 429 errors](/content/help/rate-limits-how-to-reduce-403-422-429-errors/index.html)
  - [What are hard and soft bounces?](/content/help/bounced-emails/index.html)
  - [Improve email deliverability](/content/help/improve-email-deliverability/index.html)
  - [Reduce unsubscribe rates](/content/help/reducing-unsubscribe-rates/index.html)
  - [Account reputation statuses](/content/help/account-reputation-statuses/index.html)
- [Account, billing & add-ons](/content/help/account-settings/index.html)  - [Plans, features and limits](/content/help/plans-features-and-limits/index.html)
  - [Plan add-ons](/content/help/plan-add-ons/index.html)
  - [User management](/content/help/user-management/index.html)
  - [Change password](/content/help/change-password/index.html)
  - [Two-factor authentication](/content/help/two-factor-authentication/index.html)
  - [Switch accounts](/content/help/switch-accounts/index.html)
  - [How to whitelist IPs](/content/help/how-to-whitelist-ips/index.html)
  - [How to add a domain space to your account](/content/help/how-to-add-a-domain-space-to-your-account/index.html)
  - [How to request a dedicated IP](/content/help/how-to-request-dedicated-ip/index.html)
  - [How to set a billing limit on your account](/content/help/how-to-set-a-billing-limit/index.html)
  - [How to change your payment method](/content/help/how-to-change-your-payment-method/index.html)
  - [How to change or cancel your plan](/content/help/how-to-change-or-cancel-your-plan/index.html)
  - [Delete account](/content/help/delete-account/index.html)
  - [VAT Collection for EU Customers](/content/help/vat-collection-eu/index.html)
  - [VAT Collection for UK Customers](/content/help/vat-collection-uk/index.html)
  - [GST Collection for Customers in India](/content/help/gst-collection-india/index.html)
  - [GST Collection for Customers in Canada](/content/help/gst-collection-canada/index.html)
  - [VAT (IVA) Collection for Customers in Chile](/content/help/vat-iva-collection-chile/index.html)
  - [Sandbox mode and the Professional trial](/content/help/sandbox-mode-and-the-professional-trial/index.html)
  - [Sales Tax Collection for Customers in New York](/content/help/sales-tax-collection-for-customers-in-new-york/index.html)
- [Integrations](/content/help/integrations/index.html)  - [How to integrate MailerSend with Zapier](/content/help/how-to-integrate-mailersend-with-zapier/index.html)
  - [How to integrate MailerSend with Supabase](/content/help/how-to-integrate-mailersend-with-supabase/index.html)
  - [How to integrate MailerSend with Airtable](/content/help/how-to-integrate-mailersend-with-airtable/index.html)
  - [How to integrate MailerSend with Slack for email event notifications](/content/help/how-to-integrate-mailersend-with-slack-for-email-event-notifications/index.html)
  - [WordPress](/content/help/how-to-integrate-mailersend-with-wordpress/index.html)
  - [WooCommerce](/content/help/how-to-integrate-mailersend-with-woocommerce/index.html)
  - [How to configure MailerSend on Google Cloud](/content/help/how-to-configure-mailersend-on-google-cloud/index.html)
  - [How to connect MailerSend's MCP with your AI tools](/content/help/how-to-connect-mailersends-mcp/index.html)
- [Agency guides](/content/help/agency-guides/index.html)  - [Creating sub-accounts for clients](/content/help/creating-sub-accounts/index.html)
  - [Sending emails for clients: domains vs. sender identities](/content/help/sender-identities-vs-domains/index.html)
- [API reference ↗](https://developers.mailersend.com/)

- [Adding webhooks](/content/help/webhooks/index.html#adding-webhooks)
- [Testing webhooks](/content/help/webhooks/index.html#testing-webhooks)
- [Webhook attempts](/content/help/webhooks/index.html#webhook-attempts)
