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

Real-time JSON payloads for all AI email event types
HMAC-SHA256 request signing for security and verification
Automatic retries with exponential backoff for up to 24 hours
Support for multiple endpoint URLs per event type
Dashboard event log with full request and response inspection
One-click event replay for debugging and testing

Setup Steps

  1. 1Go to Integrations in Afterdraft and select Webhooks.
  2. 2Register a new endpoint URL and choose which event types to subscribe to.
  3. 3Copy the webhook secret and implement HMAC-SHA256 verification in your endpoint.
  4. 4Configure any payload filters to narrow which AI agents or events are included.
  5. 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

Explore More

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