development
Build Custom Integrations with Afterdraft Webhooks
Real-time event streams for developers who want total control.
Sometimes you need an integration that does not exist yet. Afterdraft webhooks give developers a raw, real-time stream of AI email events delivered as structured JSON payloads to any endpoint. Whether you are feeding a data pipeline, triggering internal workflows, or building a custom dashboard, webhooks are the foundation.
Every event type is available: emails sent, received, replied, bounced, opened, and escalated. Payloads include the full message metadata, AI agent details, and timestamps. HMAC-SHA256 signatures on every request ensure authenticity, and exponential-backoff retries guarantee delivery even when your endpoint is temporarily unavailable.
The built-in event log makes debugging straightforward. View every delivery attempt, inspect request and response bodies, filter by event type or status code, and replay individual events with a single click. It is the developer experience you wish every API offered.
Features
Setup Steps
- 1Go to Integrations in Afterdraft and select Webhooks.
- 2Register a new endpoint URL and choose which event types to subscribe to.
- 3Copy the webhook secret and implement HMAC-SHA256 verification in your endpoint.
- 4Configure any payload filters to narrow which AI agents or events are included.
- 5Send a test event from the dashboard and confirm your endpoint receives and processes it.
Summary
Afterdraft is an email infrastructure platform that gives AI agents real email addresses. The Afterdraft Build Custom Integrations with Afterdraft Webhooks integration lets AI email agents work seamlessly with your existing tools. Real-time event streams for developers who want total control.
- Fact 1
- — Real-time JSON payloads for all AI email event types
- Fact 2
- — HMAC-SHA256 request signing for security and verification
- Fact 3
- — Automatic retries with exponential backoff for up to 24 hours
- Fact 4
- — Support for multiple endpoint URLs per event type
Powered by Afterdraft (afterdraft.ai) — AI agents that send and receive real email.
Frequently Asked Questions
- What events can I subscribe to via webhooks?
- You can subscribe to Email Received, Email Sent, Email Replied, Email Bounced, Email Opened, and Agent Escalation events. Each event delivers a JSON payload with full message details.
- Are webhook deliveries retried on failure?
- Yes. Afterdraft retries failed webhook deliveries with exponential backoff for up to 24 hours. You can also manually replay events from the webhook logs in your dashboard.
- How do I verify that a webhook request is from Afterdraft?
- Every webhook request includes an HMAC-SHA256 signature in the headers. Verify it against your webhook secret to ensure the payload has not been tampered with and originates from Afterdraft.
- Can I send webhooks to multiple endpoints for the same event?
- Yes. You can register multiple endpoint URLs for each event type, which is useful when different internal services need to react to the same AI email events independently.
- Is there a webhook event log for debugging?
- There is. The Afterdraft dashboard includes a webhook event log with full request and response details, delivery status, and the ability to replay individual events for troubleshooting.
Related Integrations
Afterdraft Zapier Integration | Connect AI Email to 5000+ Apps
Use Zapier to connect Afterdraft AI email agents to 5,000+ apps. Build no-code workflows that trigger on email events and push data everywhere.
Afterdraft Make Integration | Visual AI Email Automation
Connect Afterdraft to Make (formerly Integromat) to build visual automation scenarios. Trigger workflows from AI email events and connect to hundreds of apps without code.
Afterdraft Segment Integration | AI Email Events in Your CDP
Send Afterdraft AI email events to Segment so every open, reply, and interaction flows into your customer data platform and downstream analytics tools.
Explore More
What are Webhooks? | Afterdraft Glossary
Learn how webhooks deliver real-time HTTP callbacks for email events like delivery, bounces, and opens, enabling responsive and automated email workflows.
Build AI Email Workflows with the Afterdraft API
A developer guide to building AI email workflows using the Afterdraft API. Learn to send, receive, route, and automate emails programmatically for your agents.
What is an Email API? | Afterdraft Glossary
Discover how email APIs enable developers to send, receive, and manage email programmatically, and how Afterdraft exposes powerful API-driven email workflows.
Give your AI an inbox
Email is the most universal communication protocol ever built. Now your AI agents can use it too.
View API Docs