Real-Time Email
Webhooks
Get notified instantly when test emails arrive in your mailbox. Automate your testing workflows, trigger CI/CD pipelines, and never poll for emails again.
Start Free β No credit cardHow webhooks work
A simple, reliable pipeline from email delivery to your endpoint. No polling. No delays. Just an HTTP POST the moment an email lands.
When your application sends an email through Sendpit's SMTP server, the email is captured and stored in your mailbox. If you have a webhook URL configured for that mailbox, Sendpit immediately sends an HTTP POST request to your endpoint with the email metadata.
The payload includes everything you need to identify the email: sender, recipients, subject line, and a precise timestamp. You get the notification within seconds of the email arriving, not minutes. No polling. No cron jobs. No wasted API calls.
This turns Sendpit from a passive inbox into an active part of your testing infrastructure. Your CI/CD pipeline can wait for the webhook instead of sleeping and hoping. Your monitoring can alert when expected emails don't arrive. Your QA automation can verify content the moment it lands.
Built for reliability
Webhooks that just work. Retry logic, failure handling, and full delivery transparency included out of the box.
Per-mailbox webhooks
Configure a different webhook URL for each mailbox. Route staging notifications to Slack, CI emails to your test runner, and QA emails to your dashboard. Each mailbox can have its own endpoint, so your workflows stay clean and separated.
Automatic retry with backoff
If your endpoint is temporarily down, Sendpit doesn't give up. Failed deliveries are retried with exponential backoff, giving your server time to recover. Retries happen at increasing intervals so you never miss a notification without overwhelming a struggling endpoint.
Smart auto-disable
After 10 consecutive failures, Sendpit automatically disables the webhook to prevent wasting resources. You get notified when this happens, and re-enabling is a single click. No runaway retry loops burning through your quota.
Delivery logging
Every webhook delivery attempt is logged with the HTTP status code, response time, and response body. See exactly when a delivery succeeded, when it failed, and why. Debug integration issues in seconds instead of guessing.
HMAC signature verification
Every webhook request includes an HMAC-SHA256 signature in the headers. Verify that the request genuinely came from Sendpit by checking the signature against your webhook secret. Prevents spoofing and ensures payload integrity.
Clean JSON payloads
Payloads are structured, predictable JSON. Parse them in any language with any HTTP framework. No XML. No form-encoded data. No proprietary formats. Just a clean JSON body with the email metadata your code needs.
What you can build with webhooks
Webhooks turn Sendpit from a passive inbox into an active part of your development and testing infrastructure.
CI/CD pipeline integration
Trigger test assertions the moment emails arrive. Instead of adding sleep statements or polling loops in your test suite, listen for the webhook and run your assertions immediately. Your end-to-end tests become faster, more reliable, and deterministic. No more flaky email tests that pass locally but fail in CI because of timing issues.
Slack and Teams notifications
Forward email notifications to your team's chat channels. When a staging email arrives, post the subject and sender to Slack so the whole team has visibility. Great for QA reviews during sprint demos, or for keeping designers in the loop on transactional email changes without giving everyone Sendpit access.
Custom monitoring dashboards
Track email volume and patterns over time. Build internal dashboards that count emails by type, flag unexpected spikes, or detect when critical transactional emails stop arriving. Webhooks give you the real-time data feed you need to monitor your email infrastructure health during development and staging.
QA automation
Verify email content programmatically without opening a browser. When the webhook fires, your automation script can check that the subject matches expectations, the correct recipient received it, and the timing is right. Combine with Sendpit's API to fetch the full email body and assert on HTML content, links, and attachments.
What you receive
A clean, predictable JSON payload with everything you need to identify the email. No bloat. No guessing.
{
"event": "email.received",
"mailbox_id": 42,
"email": {
"from": "[email protected]",
"to": [
"[email protected]"
],
"subject": "Welcome to YourApp",
"received_at": "2026-03-12T10:30:00Z"
}
}
The payload is intentionally minimal. It contains the event type, the mailbox that received the email, and the core email metadata: sender address, recipient list, subject line, and the exact timestamp the email was received.
Every request includes a X-Sendpit-Signature header containing an HMAC-SHA256 hash of the request body, signed with your webhook secret. Verify this signature on your end to confirm the request is authentic.
Need the full email body, HTML content, or attachments? Use the mailbox_id and the Sendpit API to fetch the complete email. The webhook keeps payloads lightweight for speed; your code can fetch additional data on demand.
Set up in under a minute
Open mailbox settings
Navigate to your mailbox and open the settings panel. Every mailbox has its own webhook configuration.
Go to Webhooks
Click the Webhooks tab. You'll see the configuration form and your delivery history if you've used webhooks before.
Add your URL
Paste your webhook endpoint URL. Sendpit will generate a signing secret for HMAC verification automatically.
Send a test
Click "Test Webhook" to send a sample payload to your URL. Verify the request arrives and your signature check passes.
No code changes to your app. Just a URL and you're live.
Stop polling for emails.
Let them come to you.
Webhooks turn Sendpit into a real-time notification system for your email testing. Your CI pipeline, your chat channels, your monitoring dashboards, all connected with a single URL.
Set up takes less than a minute.
Start catching emails and get notified instantly.
No credit card. Free tier available. Webhooks included on all plans.