Add AgentMail to Your Product

Give your customers access to AgentMail from within your product & agents. Use viaSocket to manage authentication, execute actions, and receive events from connected accounts.

Paste it into Cursor, Claude Code or Codex.
Integration Infrastructure

Everything You Need to Manage AgentMail Integrations

Add AgentMail to your product & agents today. viaSocket runs the infrastructure; your AI coding assistant does the setup.

Managed Authentication

Let your customers connect their AgentMail accounts without building and maintaining OAuth flows yourself.

Customer-Specific Connections

Manage separate AgentMail connections for each customer in your product & agents.

Actions, Triggers and Webhooks

Execute supported AgentMail actions and receive events through a consistent integration interface.

Managed Data Mapping

Map data between your product & agents and the formats expected by AgentMail.

Monitoring and Debugging

Track executions, inspect errors, and troubleshoot integration issues.

Your Product & Agents, Your Experience

Offer AgentMail integrations under your own branding and within your existing product & agents.

Available Actions and Triggers for AgentMail

What You Can Do with AgentMail

Explore available actions to let your product & agents interact with AgentMail.

  • Forward EmailForward an email from an inbox to new recipients with an optional note.
  • Send EmailSend a new email from an inbox with text or HTML, attachments and labels.
  • Create InboxCreate a new email inbox with an optional username, domain and display name.
  • Reply to EmailReply to an email in its thread, to the sender or to everyone on it.
  • Update Email LabelsAdd or remove labels on an email to track its state.
  • Send DraftSend a saved draft from an inbox and optionally change its labels.
  • Find EmailList, search or get emails in an inbox by sender, recipient, subject, label or date.
  • Create DraftCreate an email draft for review or scheduled sending, including replies and forwards.
  • Find ThreadList, search or get conversation threads in an inbox, with their messages.

Respond to Events in AgentMail

Use triggers to let your product & agents respond to events from connected AgentMail accounts.

  • New Email ReceivedRuns when a new email arrives in a chosen inbox.
  • New Email SentRuns when an email is sent from a chosen inbox.
  • New Email DeliveredRuns when a sent email reaches the recipient's mail server.
  • New Email BouncedRuns when a sent email bounces, with the bounce type and recipients.
  • New Spam ComplaintRuns when a recipient marks a sent email as spam.

About AgentMail

AgentMail provides email inboxes and API tools for AI agents to send, receive, and manage email programmatically.

Learn more
viaSocket

About viaSocket

Connect 2,300+ apps to your product & agents with one prompt. Auth, events and actions handled. Free to start.

Learn more
Frequently Asked Questions

FAQs about adding AgentMail to your product & agents

Find answers to common questions about integrating AgentMail into your product & agents, including authentication, supported actions, triggers, and implementation.

How can I integrate AgentMail into my product & agents?

You can use viaSocket to add AgentMail integration to your product & agents. viaSocket provides APIs, managed authentication, actions, and triggers to help you build integration features for your customers.

Do I need to build and maintain the integration infrastructure myself?

No. viaSocket manages the integration infrastructure, including authentication, customer connections, and supported actions and triggers.

Can my customers connect their own AgentMail accounts?

Yes. viaSocket supports customer-specific connections, allowing each customer to authorize their own AgentMail account.

Can I offer AgentMail integration under my own branding?

Yes. You can provide the integration experience under your own branding and within the existing interface of your product & agents.

Can I connect AgentMail with other apps?

Yes. viaSocket supports integrations with 2,300+ apps, allowing your product & agents to work with AgentMail and other supported services.

How do I execute actions in AgentMail?

Use viaSocket's supported actions and APIs to perform operations in connected AgentMail accounts. Available operations depend on the integration's supported capabilities and the permissions granted.

Can my product & agents respond to events from AgentMail?

Yes. You can use supported triggers and webhooks to receive events from AgentMail and respond within your product & agents.

Bring AgentMail Into Your Product & Agents

Paste it into Cursor, Claude Code or Codex.
  • Managed auth
  • Per-customer connections
  • Actions & triggers
  • Data mapping
  • Monitoring & logs
  • Your branding