1. Webhook
InboxKit
  • Introduction
  • Quick Start
  • Domain Management
  • Mailbox Operations
  • Deliverability Monitoring
  • Order
    • Place Order
      POST
  • Webhook
    • Real-time email events
    • Events: OAuth Consent & Client ID Changes
      POST
    • Event: Mailbox Status Changed
      POST
    • Webhook Integration & Signature Verification
      POST
    • Event: Domain Status Changed
      POST
  • Account
    • Get account details
      GET
    • Get real-time email events settings
      GET
    • Update real-time email events settings
      PUT
    • Get the email events signing secret
      GET
    • Rotate the email events signing secret
      POST
    • Send a test email event
      POST
    • List email event deliveries
      GET
    • Redeliver an email event
      POST
    • Get email events coverage
      GET
  • Workspaces
    • List workspaces
      GET
    • Create workspace
      POST
    • Invite Member to Workspace
      POST
    • Get workspace details
      GET
    • Update workspace
      PUT
    • Delete workspace
      DELETE
    • Update workspace webhook
      POST
  • Domains
    • Domain Renewals
    • Check if domain is banned from registration
    • Check domain availability
    • Register domains
    • List domains
    • List assignable domains
    • Remove domains
    • Set domain forwarding
    • Set catch-all email
    • Remove catch-all email
    • Get nameservers for domain connection
    • Check nameservers propagation
    • Check Workspace Availability
    • Set DMARC Configuration
    • Remove DMARC Configuration
    • Regenerate Domain Nameservers
    • Request Domain Renewal
    • Check Renewal Status
    • Update Domain Privacy
    • Update Domain Contact Details
    • Search available domains
    • Move domains to another workspace
    • Preview a domain move
    • Get domain move status
    • Start a domain rotation
    • Preview a domain rotation
    • Get domain rotation status
  • Cloudflare Domains
    • Connect Cloudflare Domains
    • List Connected Cloudflare Domains
    • Get Domain Details
    • Disconnect Cloudflare Domains
    • List Cloudflare Zones
  • Mailboxes
    • Microsoft 365 & Azure Reactivation
      • Reactivate mailboxes (Microsoft 365 / Azure)
      • Re-purchase mailboxes for reactivation (Microsoft 365 / Azure)
    • List mailboxes
    • Add or update signature for mailboxes
    • Delete signature for mailboxes
    • Show mailbox credentials
    • Get mailbox details
    • Buy mailboxes
    • Check mailbox status
    • Cancel mailboxes
    • Update mailbox
    • Update mailbox profile picture
    • Generate TOTP
    • Change username
    • Change password
    • Check mailbox availability
    • Get Failure Reason
    • Uncancel mailboxes
    • Resetup mailboxes
    • Get resetup status
  • DNS
    • Get DNS records
    • Add DNS records
    • Update DNS records
    • Delete DNS records
    • Verify DNS records
    • Repair DNS records
  • Sequencers
    • Export mailboxes status
    • List sequencer platforms
    • Get sequencer tags
    • List sequencers
    • Export mailboxes
    • Add sequencer
    • Update sequencer
    • Delete sequencers
    • Verify Lemlist OTP
  • Billing
    • Get pricing plans
    • Add Credits to Wallet
    • Get subscription details
    • Check Payment Status
    • Change subscription plan
    • Cancel subscription
    • Get wallet details
    • Update auto top-up settings
    • Get billing portal link
    • Get Wallet Logs
    • List Wallet Transactions
  • Warmup
    • Your Own Mailboxes
      • Create a Connect Link
      • Get Connect Link Status
      • Add SMTP Mailboxes
      • List Your Connected Mailboxes
      • Disconnect a Mailbox
    • List Warmup Subscriptions
    • Get Warmup Subscription Details
    • Add Warmup to Mailboxes
    • Pause Warmup for Mailboxes
    • Resume Warmup for Mailboxes
    • Cancel Warmup for Mailboxes
    • Get Warmup Statistics
    • Get Warmup Pricing
    • Update Warmup Settings
  • Client ID Requests
    • Initiate Client ID Request
    • Get Client ID Request Status
    • List Client ID Requests
  • Consent Request
    • Initiate Consent Request
    • Get Consent Request Status
    • List Consent Requests
  • Tags
    • Assign tags to domains or mailboxes
    • Get all tags
    • Create a new tag
    • Delete a tag
  • Prewarm
    • Search Domains
    • Search Mailboxes
    • Buy Prewarmed Mailboxes
    • Check Order Status
    • Check Availability
  • Inbox Placement
    • Tests
      • Create Test
      • List Tests
      • Get Test Results
    • Scheduled Tests
      • List Scheduled Tests
      • Get Scheduled Test
      • Pause Scheduled Test
      • Resume Scheduled Test
      • Delete Scheduled Test
  • InfraGuard
    • InfraGuard - Subscriptions
      • List protected domains
      • Get subscription details
      • Enable InfraGuard for domains
      • Cancel InfraGuard for domains
      • Get workspace statistics
      • Get pricing info
    • InfraGuard - Monitoring
      • Get blacklist check history
      • Get DNS check history
      • Get current bounce metrics
      • Get bounce check history
    • InfraGuard - Settings
      • Update subscription settings
      • Trigger manual check
    • InfraGuard - Alerts
      • List alerts
      • Acknowledge an alert
      • Resolve an alert
    • InfraGuard - Action Items
      • List action items
      • Get action item statistics
      • Resolve an action item
      • Dismiss an action item
  • Email Insight
    • Email Insights - Workspace
      • Get Workspace Overview
      • Get Mailboxes Health
      • Get High Bounce Mailboxes
      • Get Workspace Daily Stats
      • Get Workspace Campaign Reply Rate
      • Get Workspace Activity
    • Email Insights - Mailbox
      • Get Mailbox Stats
      • Get Mailbox Deliverability
      • Get Mailbox Warmup Stats
      • Get Mailbox Health
      • Get Mailbox Trends
      • Get Mailbox Bounce Events
      • Get Mailbox Activity
      • Get Mailbox Top Recipients
      • Get Mailbox Top Recipient Domains
      • Get Mailbox Message Breakdown
      • Get Mailbox Subject Analysis
      • Get Mailbox Reply Time Heatmap
      • Get Mailbox Reply Rate By Domain
      • Get Mailbox Velocity Overlay
      • Get Mailbox Auth Failures
      • Get Mailbox First Touch Funnel
      • Get Mailbox Sending IP Breakdown
      • Get Mailbox Recipient ESP Breakdown
      • Get Mailbox Body Templates
  • Domain Renewals
  • Verified Domains
    • List verified destinations
    • Add a destination to verify
    • Verify a destination
    • Remove a destination
  • MCP
    • InboxKit for Claude
    • Connect InboxKit to Claude
    • What Claude can do
    • Confirming changes
    • Privacy
    • Common questions
  • Mailbox Forwarding
    • Normal Forwarding
      • Setup Email Forwarding
      • Update Email Forwarding
      • Remove Email Forwarding
      • List Forwarding Jobs
    • Advanced Forwarding
      • Get Forwarding Capabilities
      • Set Up Advanced Forwarding
      • List Forwarding Rules
      • Get Forwarding Rule
      • Update Forwarding Rule
      • Delete Forwarding Rule
  • Email Messages
    • List messages
    • List messages (POST)
    • Get a message
  • Schemas
    • Schemas
      • WebhookPayload
      • DomainStatusWebhook
      • Tag
      • DomainEventData
      • MailboxStatusWebhook
      • MailboxEventData
      • Domain
      • Mailbox
      • ChangeDetails
      • WebhookResponse
      • ErrorResponse
  1. Webhook

Real-time email events

InboxKit can send a webhook to your server within seconds every time one of your mailboxes sends or receives an email. Use it to update your CRM the moment a prospect replies, stop a sequence when an address bounces, or keep a copy of every conversation in your own system.
Each event carries the email itself: sender and recipients, subject, the plain text body, the thread it belongs to, whether it is a reply, an auto-reply or a bounce, and for bounces the reason the receiving server gave.
Real-time email events are available to every InboxKit team. They work with Google Workspace and Microsoft 365 mailboxes. SMTP mailboxes are not supported.
They go to the same webhook URL as the status webhooks described in Webhook Integration & Signature Verification, but they are signed differently and have their own retry rules, both described on this page. Route on the event field (or the X-InboxKit-Event header) to tell them apart.

Turn it on#

In the InboxKit dashboard:
1.
Go to Settings > API & MCP and scroll to Webhooks.
2.
Enter a Webhook URL that starts with https:// and save it.
3.
Switch on Real-time email events. Only team admins can change this setting.
4.
Optional: tick Include warm-up emails if you also want events for automated warm-up emails. They are left out by default.
5.
Under Signing secret, reveal the secret and copy it into your server's configuration. You need it to check that each request comes from InboxKit.
6.
Click Send test event to check that your endpoint answers.
Events start within about a minute. You only get events for emails sent or received after you turned the setting on.
You can do the same with the API: Update real-time email events settings turns it on, Get the email events signing secret returns the secret, and Send a test email event sends a sample.

Where events are sent#

If your team has a webhook URL, events for every workspace go there.
If your team has no webhook URL, events for each workspace go to that workspace's own webhook URL (see Update workspace webhook).
A workspace with no https:// webhook URL gets no events.
The setting applies to your whole team: one switch covers all of your workspaces. Archived and deleted workspaces get no events.

Event types#

EventSent whendata.email.category
email.receivedAn email arrives in one of your mailboxesmessage, reply, auto_reply or bounce
email.sentOne of your mailboxes sends an emailmessage or reply
CategoryMeaning
messageA new email that does not answer an earlier one
replyAn answer to an earlier email (it has an In-Reply-To header)
auto_replyAn automatic answer, such as an out of office reply. Received emails only
bounceA notice that an email you sent was not delivered. Received emails only. See Bounces below
No events are sent for drafts, for emails from before you turned the setting on, for emails we find more than 72 hours after they arrived or were sent, or for warm-up emails unless Include warm-up emails is ticked.

The request#

Each event is one POST request with a JSON body:
HeaderDescription
Content-TypeAlways application/json.
User-AgentAlways InboxKit-Webhook/1.0.
webhook-idThe event's id, the same as id in the body. It stays the same on retries and redeliveries.
webhook-timestampWhen this attempt was sent, in Unix seconds.
webhook-signatureOne or more signatures, separated by spaces, each in the form v1,<base64>. See Verify the signature.
X-Webhook-Event and X-InboxKit-EventThe event type, so you can route without parsing the body.
X-InboxKit-TimestampWhen this attempt was sent, in ISO 8601 UTC.
Real-time email events do not carry the X-InboxKit-Signature header that status webhooks use.

Examples#

A reply received#

{
  "id": "evt_CFJCJHTBQ3OQT7ERFAIGPAL2LT",
  "event": "email.received",
  "api_version": "2026-11-01",
  "timestamp": "2026-11-20T14:03:12.418Z",
  "team_id": "b9238056-337c-4a5d-81e7-aa55b7702ee5",
  "team_name": "Example Agency",
  "data": {
    "mailbox": {
      "uid": "fefe5dfd-2f48-4aab-9556-55a67c5ca6d4",
      "email": "jordan@example.com",
      "platform": "GOOGLE"
    },
    "metadata": {
      "workspace_uid": "4b3c6f98-7868-4040-bc25-ffc763755c1f",
      "domain_name": "example.com"
    },
    "email": {
      "id": "eml_CFJCJHTBQ3OQT7ERFAIGPAL2LT",
      "provider_message_id": "19a4f2c7d8e1b3a5",
      "message_id": "<CAK7d2Lm9QxR4t@mail.example.net>",
      "thread_id": "19a4c1e0a3b2c4d5",
      "in_reply_to": "<20261119161204.4f2a91@example.com>",
      "references": [
        "<20261119161204.4f2a91@example.com>"
      ],
      "direction": "inbound",
      "category": "reply",
      "folder": "inbox",
      "labels": [
        "INBOX",
        "UNREAD",
        "CATEGORY_PERSONAL"
      ],
      "subject": "Re: Quick question about your Q1 plans",
      "from": {
        "email": "alex@example.net",
        "name": "Alex Rivera"
      },
      "to": [
        {
          "email": "jordan@example.com",
          "name": "Jordan Lee"
        }
      ],
      "cc": [],
      "reply_to": [],
      "date": "2026-11-20T14:02:55.000Z",
      "occurred_at": "2026-11-20T14:02:57.000Z",
      "snippet": "Hi Jordan, Thanks for reaching out. We are choosing a vendor for Q1 right now. Could you send pricing for a team of 12? Best, Alex On Thu, Nov 19, 2026 at 4:12 PM Jordan Lee <jordan@example.com> wrote",
      "text_body": "Hi Jordan,\n\nThanks for reaching out. We are choosing a vendor for Q1 right now. Could you send pricing for a team of 12?\n\nBest,\nAlex\n\nOn Thu, Nov 19, 2026 at 4:12 PM Jordan Lee <jordan@example.com> wrote:\n> Hi Alex, do you have a few minutes this week to talk about your Q1 plans?",
      "text_body_truncated": false,
      "size_bytes": 7342,
      "attachments": [],
      "is_warmup": false,
      "authentication": {
        "spf": "pass",
        "dkim": "pass",
        "dmarc": "pass"
      },
      "bounce": null
    },
    "delivery": {
      "mode": "realtime",
      "detected_at": "2026-11-20T14:03:11.902Z"
    }
  }
}

An auto-reply received#

This one arrived in a Microsoft 365 mailbox, so labels is empty.
{
  "id": "evt_IFJHR6SYZGXFKCWNBH2CS47FW3",
  "event": "email.received",
  "api_version": "2026-11-01",
  "timestamp": "2026-11-20T15:41:08.733Z",
  "team_id": "b9238056-337c-4a5d-81e7-aa55b7702ee5",
  "team_name": "Example Agency",
  "data": {
    "mailbox": {
      "uid": "1ff8f8f5-4361-49d7-865d-905c21ac7ffb",
      "email": "sam@example.org",
      "platform": "MICROSOFT"
    },
    "metadata": {
      "workspace_uid": "4b3c6f98-7868-4040-bc25-ffc763755c1f",
      "domain_name": "example.org"
    },
    "email": {
      "id": "eml_IFJHR6SYZGXFKCWNBH2CS47FW3",
      "provider_message_id": "AAMkADc3ZTRmLWExYjItNGM5ZC04ZjE2LTI3YTFiYzQ1ZDY3OABGAAAAAAB0x1y2z3",
      "message_id": "<PH0PR11MB4852A1B2C3D4E5F6@PH0PR11MB4852.example.net>",
      "thread_id": "AAQkADc3ZTRmLWExYjItNGM5ZC04ZjE2LTI3YTFiYzQ1ZDY3OAAQAKx9y8w7v6u5",
      "in_reply_to": "<20261120153955.8b1c07@example.org>",
      "references": [
        "<20261120153955.8b1c07@example.org>"
      ],
      "direction": "inbound",
      "category": "auto_reply",
      "folder": "inbox",
      "labels": [],
      "subject": "Automatic reply: Following up on our call",
      "from": {
        "email": "casey@example.net",
        "name": "Casey Morgan"
      },
      "to": [
        {
          "email": "sam@example.org",
          "name": null
        }
      ],
      "cc": [],
      "reply_to": [],
      "date": "2026-11-20T15:40:59.000Z",
      "occurred_at": "2026-11-20T15:41:01.000Z",
      "snippet": "Thank you for your email. I am out of the office until December 1 with limited access to email. For anything urgent, please contact help@example.net. Casey Morgan",
      "text_body": "Thank you for your email. I am out of the office until December 1 with limited access to email. For anything urgent, please contact help@example.net.\n\nCasey Morgan",
      "text_body_truncated": false,
      "size_bytes": 4126,
      "attachments": [],
      "is_warmup": false,
      "authentication": {
        "spf": "pass",
        "dkim": "pass",
        "dmarc": "pass"
      },
      "bounce": null
    },
    "delivery": {
      "mode": "realtime",
      "detected_at": "2026-11-20T15:41:07.995Z"
    }
  }
}

A bounce#

{
  "id": "evt_OXEDMH2YH3ZSZDAEGUVSGYJF2O",
  "event": "email.received",
  "api_version": "2026-11-01",
  "timestamp": "2026-11-20T09:15:41.207Z",
  "team_id": "b9238056-337c-4a5d-81e7-aa55b7702ee5",
  "team_name": "Example Agency",
  "data": {
    "mailbox": {
      "uid": "fefe5dfd-2f48-4aab-9556-55a67c5ca6d4",
      "email": "jordan@example.com",
      "platform": "GOOGLE"
    },
    "metadata": {
      "workspace_uid": "4b3c6f98-7868-4040-bc25-ffc763755c1f",
      "domain_name": "example.com"
    },
    "email": {
      "id": "eml_OXEDMH2YH3ZSZDAEGUVSGYJF2O",
      "provider_message_id": "19a4b8e2f1c0d9a7",
      "message_id": "<6753a1f0.5d2c0a4b.3e7f.0001.GMR@mx.example.net>",
      "thread_id": "19a4b8d9c2e1f0a6",
      "in_reply_to": "<20261120091502.7c1d3e@example.com>",
      "references": [
        "<20261120091502.7c1d3e@example.com>"
      ],
      "direction": "inbound",
      "category": "bounce",
      "folder": "inbox",
      "labels": [
        "INBOX",
        "UNREAD",
        "CATEGORY_UPDATES"
      ],
      "subject": "Delivery Status Notification (Failure)",
      "from": {
        "email": "mailer-daemon@mx.example.net",
        "name": "Mail Delivery Subsystem"
      },
      "to": [
        {
          "email": "jordan@example.com",
          "name": null
        }
      ],
      "cc": [],
      "reply_to": [],
      "date": "2026-11-20T09:15:33.000Z",
      "occurred_at": "2026-11-20T09:15:34.000Z",
      "snippet": "Address not found Your message wasn't delivered to taylor@example.net because the address couldn't be found, or is unable to receive mail. The response from the remote server was: 550 5.1.1 The email ",
      "text_body": "Address not found\n\nYour message wasn't delivered to taylor@example.net because the address couldn't be found, or is unable to receive mail.\n\nThe response from the remote server was:\n550 5.1.1 The email account that you tried to reach does not exist.",
      "text_body_truncated": false,
      "size_bytes": 9815,
      "attachments": [],
      "is_warmup": false,
      "authentication": {
        "spf": "pass",
        "dkim": "pass",
        "dmarc": "pass"
      },
      "bounce": {
        "type": "hard",
        "smtp_code": 550,
        "enhanced_code": "5.1.1",
        "diagnostic": "The email account that you tried to reach does not exist.",
        "reporting_mta": "mx.example.net"
      }
    },
    "delivery": {
      "mode": "realtime",
      "detected_at": "2026-11-20T09:15:40.664Z"
    }
  }
}

An email sent#

{
  "id": "evt_VK53RMEGGDN4M3H3UIGRYFR33C",
  "event": "email.sent",
  "api_version": "2026-11-01",
  "timestamp": "2026-11-20T10:30:06.159Z",
  "team_id": "b9238056-337c-4a5d-81e7-aa55b7702ee5",
  "team_name": "Example Agency",
  "data": {
    "mailbox": {
      "uid": "fefe5dfd-2f48-4aab-9556-55a67c5ca6d4",
      "email": "jordan@example.com",
      "platform": "GOOGLE"
    },
    "metadata": {
      "workspace_uid": "4b3c6f98-7868-4040-bc25-ffc763755c1f",
      "domain_name": "example.com"
    },
    "email": {
      "id": "eml_VK53RMEGGDN4M3H3UIGRYFR33C",
      "provider_message_id": "19a4bd27a6e5f4c3",
      "message_id": "<20261120103001.2e9a6f@example.com>",
      "thread_id": "19a4bd27a6e5f4c3",
      "in_reply_to": null,
      "references": [],
      "direction": "outbound",
      "category": "message",
      "folder": "sent",
      "labels": [
        "SENT"
      ],
      "subject": "A setup overview for your team",
      "from": {
        "email": "jordan@example.com",
        "name": "Jordan Lee"
      },
      "to": [
        {
          "email": "riley@example.net",
          "name": null
        }
      ],
      "cc": [],
      "reply_to": [],
      "date": "2026-11-20T10:30:01.000Z",
      "occurred_at": "2026-11-20T10:30:02.000Z",
      "snippet": "Hi Riley, I put together a short overview of how teams like yours set up outreach in a week. It is attached. Would a 15 minute call on Tuesday work? Jordan",
      "text_body": "Hi Riley,\n\nI put together a short overview of how teams like yours set up outreach in a week. It is attached.\n\nWould a 15 minute call on Tuesday work?\n\nJordan",
      "text_body_truncated": false,
      "size_bytes": 58210,
      "attachments": [
        {
          "filename": "setup-overview.pdf",
          "content_type": "application/pdf"
        }
      ],
      "is_warmup": false,
      "authentication": null,
      "bounce": null
    },
    "delivery": {
      "mode": "realtime",
      "detected_at": "2026-11-20T10:30:05.480Z"
    }
  }
}

Payload fields#

Every field is always present. A field that can be empty is null (or [] for lists), never left out. All times are ISO 8601 in UTC with milliseconds.
FieldTypeDescription
idstringThe event's id: evt_ followed by 26 letters and digits. The same email always gets the same id, also on retries and redeliveries. Use it to skip duplicates.
eventstringemail.received or email.sent.
api_versionstringThe payload version, currently 2026-11-01.
timestampstringWhen this attempt was sent. It changes on every retry.
team_idstringYour team's uid.
team_namestringYour team's name.
data.mailbox.uidstringThe mailbox's uid, as in the mailbox endpoints.
data.mailbox.emailstringThe mailbox's address.
data.mailbox.platformstringGOOGLE, MICROSOFT or AZURE.
data.metadata.workspace_uidstringThe workspace the mailbox belongs to.
data.metadata.domain_namestringThe mailbox's domain.
data.email.idstringThe email's id: eml_ followed by the same 26 characters as the event id.
data.email.provider_message_idstringThe message's id at Google or Microsoft.
data.email.message_idstring or nullThe Message-ID header, with its angle brackets. null if the email has none.
data.email.thread_idstringThe Gmail thread id, or the Microsoft conversation id.
data.email.in_reply_tostring or nullThe In-Reply-To header, with its angle brackets.
data.email.referencesarray of stringsThe References header, one Message-ID per item.
data.email.directionstringinbound for email.received, outbound for email.sent.
data.email.categorystringmessage, reply, auto_reply or bounce. See Event types.
data.email.folderstringWhere the email is: inbox, spam, sent or other.
data.email.labelsarray of stringsThe Gmail labels, such as INBOX and UNREAD. Always empty for Microsoft mailboxes.
data.email.subjectstringThe subject. Empty if the email has none.
data.email.fromobjectThe sender: email (string) and name (string or null).
data.email.toarray of objectsThe recipients, each with email and name.
data.email.ccarray of objectsThe Cc recipients, each with email and name.
data.email.reply_toarray of objectsThe Reply-To addresses, each with email and name.
data.email.datestring or nullThe Date header. null if it is missing or unreadable.
data.email.occurred_atstringWhen Google or Microsoft received or sent the email.
data.email.snippetstringThe first 200 characters of the text body, with runs of spaces and line breaks shortened to one space.
data.email.text_bodystringThe plain text body, up to 32 KB.
data.email.text_body_truncatedbooleantrue when the body was longer and text_body was cut.
data.email.size_bytesintegerThe size of the whole email, attachments included.
data.email.attachmentsarray of objectsUp to 50 attachments, each with filename (string or null) and content_type. The file contents are never sent.
data.email.is_warmupbooleantrue for an automated warm-up email. You only get these with Include warm-up emails ticked.
data.email.authenticationobject or nullThe SPF, DKIM and DMARC results the receiving side recorded: spf, dkim and dmarc, each pass, fail, softfail, neutral, none, temperror, permerror, policy or unknown. null for email.sent.
data.email.bounceobject or nullThe bounce details when category is bounce, otherwise null. See Bounces.
data.delivery.modestringrealtime, recovered or test. recovered means we found the email more than 15 minutes after it arrived or was sent, for example after a mailbox was reconnected. test marks a test event.
data.delivery.detected_atstringWhen we found the email.
New fields may be added to the payload over time. Ignore fields you do not use rather than rejecting the request.

Bounces#

A bounce arrives as an email.received event with data.email.category set to bounce, for the mailbox that received the bounce notice. data.email.bounce then holds the reason:
FieldTypeDescription
typestringhard for a permanent failure (status code 5.x.x, for example the address does not exist), soft for a temporary one (status code 4.x.x, for example a full mailbox).
smtp_codeinteger or nullThe SMTP reply code, such as 550.
enhanced_codestring or nullThe enhanced status code, such as 5.1.1.
diagnosticstring or nullThe receiving server's explanation, without the codes, up to 1,000 characters.
reporting_mtastring or nullThe server that reported the failure.
Any of the last four is null when the bounce notice does not include it.
To find the email that bounced, match in_reply_to or references against the message_id of the emails you sent, when the bounce notice carries them. The address that failed is usually written in text_body.

Verify the signature#

Every request is signed with your signing secret following the Standard Webhooks specification, so any Standard Webhooks library can verify it. To check it yourself:
1.
Take the secret (it starts with whsec_), remove the whsec_ prefix and base64-decode the rest. That is your key.
2.
Build the signed content: the webhook-id header, a dot, the webhook-timestamp header, a dot, and the raw request body exactly as received: {webhook-id}.{webhook-timestamp}.{body}. Use the raw bytes. Parsing the JSON and encoding it again changes the bytes and the signature will not match.
3.
Compute the HMAC-SHA256 of the signed content with your key and base64-encode it.
4.
Compare it, in constant time, with each v1, entry in the webhook-signature header. Accept the request if any entry matches.
5.
Reject the request if webhook-timestamp is more than 5 minutes away from your server's clock, so an old request cannot be replayed.

Node.js (Express)#

Python (Flask)#

Rotating the secret#

Rotate the secret from the dashboard (Rotate secret under Signing secret) or with Rotate the email events signing secret. The new secret takes effect at once, and for the next 24 hours every request carries two signatures, one made with the new secret and one with the old. Because you accept a request when any signature matches, you can switch your server to the new secret at any time in those 24 hours without missing events.

Respond to an event#

Answer with any 2xx status within 15 seconds. We do not read the response body.
Answer first, then do the slow work, for example in a background job.
We do not follow redirects. A 3xx answer counts as a failure, so use the final URL.
Expect duplicates. An event can arrive more than once, for example when your server handled it but the answer did not reach us. Store the id of each event you handle and skip ids you have seen.
Events can arrive out of order. Use data.email.occurred_at if you need the order the emails happened in.
Your URL must use https:// and must point to a public address. Addresses on private networks are refused.

Retries#

A failed attempt is retried: any answer other than 2xx, a timeout, or a connection error. The one exception is 410 Gone (see Pausing). Each event gets up to 10 attempts:
AttemptSent after the previous attempt
1At once
25 seconds
35 minutes
430 minutes
52 hours
65 hours
710 hours
814 hours
920 hours
1024 hours
Each wait varies by up to 10% either way, so the last attempt comes about 3 days after the first. If all 10 fail, the event is marked failed in the delivery log and you can send it again from there.
To slow us down, answer with an error such as 429 or 503 and a Retry-After header, in seconds or as an HTTP date. If it asks for a longer wait than the schedule, we wait that long, up to 24 hours. A shorter Retry-After does not make the retry come sooner.
If your endpoint fails many requests in a row, we wait a minute and then send a single event. The others follow once it succeeds. If a very large number of your events are waiting to be retried, new events are marked failed in the delivery log instead of being queued. Send them again once your endpoint has recovered.

Pausing#

We pause real-time email events for your team when:
your endpoint answers 410 Gone. That event is not retried; or
your endpoint has not accepted a single event for 3 days and at least 50 events failed in that time.
When this happens, your team admins get an email, and the dashboard shows that sending is paused and why. Get real-time email events settings returns "status": "paused" with the reason in paused_reason.
While events are paused nothing is sent. New events are listed in the delivery log as skipped, and you can send them again after you resume, as long as they are less than 7 days old.
To resume, fix your endpoint, then click Resume sending in the dashboard or call Update real-time email events settings with {"enabled": true}.
To stop events on purpose, switch the setting off. Emails sent or received while it is off never produce events.

Delivery log and redelivery#

The Recent email event deliveries table in the Webhooks section lists your events from the last 7 days: the event, the mailbox, its status, the last answer from your endpoint and when it was sent. Team admins can click Send again on any of them while events are on.
With the API, use List email event deliveries and Redeliver an email event. Each event in the log has one of these statuses:
StatusMeaning
deliveredYour endpoint answered 2xx.
retryingThe last attempt failed and another is scheduled (see next_retry_at).
failedAll attempts failed, your endpoint answered 410, or the event could not be queued.
skippedThe event was not sent, for example because events were paused.
Sending an event again starts its retry schedule from the first attempt. It keeps the same id, so if your server already handled it, your duplicate check will skip it. Events can be sent again for 7 days.

Test your endpoint#

Send test event in the dashboard, or Send a test email event with the API, sends one sample event to your webhook URL straight away (to each URL, if your workspaces use different ones) and tells you how your endpoint answered. Real-time email events must be on and not paused.
The sample is signed like a real event and has the same fields, with obviously fake content:
data.delivery.mode is test, and id starts with evt_TEST;
email.received (the default) sends a sample reply, email.sent a sample sent email;
the mailbox uid is 00000000-0000-4000-8000-000000000000 and the addresses use example.com and example.net.
A test event is sent once, with no retries, and does not appear in the delivery log. Check data.delivery.mode and leave test events out of your real processing.

API endpoints#

These endpoints are in the Account section. They use your API key like every other endpoint and act for your whole team, so they need no X-Workspace-Id header. They answer 403 only if your team has no open workspace, for example when all of its workspaces are archived or deleted.
EndpointWhat it does
GET /v1/api/account/webhook/email-eventsGet real-time email events settings
PUT /v1/api/account/webhook/email-eventsUpdate real-time email events settings: turn it on or off, resume, include warm-up emails
GET /v1/api/account/webhook/email-events/signing-secretGet the email events signing secret
POST /v1/api/account/webhook/email-events/signing-secret/rotateRotate the email events signing secret
POST /v1/api/account/webhook/email-events/testSend a test email event
GET /v1/api/account/webhook/email-events/deliveriesList email event deliveries
POST /v1/api/account/webhook/email-events/deliveries/{event_id}/redeliverRedeliver an email event
GET /v1/api/account/webhook/email-events/coverageGet email events coverage: how many mailboxes are covered
Modified at 2026-11-26 08:04:42
Previous
Place Order
Next
Events: OAuth Consent & Client ID Changes
Built with