Latest API and SDK updates. Subscribe via RSS · Discord
Summary
Introducing WebSocket Streaming - receive email events in real-time as they happen. Build reactive agents that respond instantly to new messages, deliveries, and bounces without polling. Perfect for building interactive, event-driven email experiences.
What’s new?
WebSocket endpoint:
wss://ws.agentmail.to/v0- Real-time event streaming
Events streamed:
message.received- New inbound email detectedmessage.sent- Outbound email sent successfullymessage.delivered- Delivery confirmed by recipient servermessage.bounced- Bounce detected (permanent or temporary)message.complained- Spam complaint received
Connection features:
- JWT-based authentication for secure connections
- Automatic reconnection with exponential backoff
- Event filtering by inbox for targeted subscriptions
- Low-latency delivery (typically under 100ms)
- Support for thousands of concurrent connections
Use cases
Build agents that:
- Respond to emails within seconds of receipt
- Monitor deliverability in real-time across all inboxes
- Trigger workflows instantly on specific events
- Build interactive conversational email experiences
- Scale to handle high-volume email operations
- React to bounces and complaints immediately
Get started with WebSocket Streaming to build real-time email agents.
