
Agentmail Sdk
Reference guide for the AgentMail email API, covering TypeScript and Python SDK usage for AI agents.
- skills.sh installs
- 794
- GitHub stars
- 26
- last updated
- Aug 21, 2026
What it does
- Covers inbox creation, sending and replying, message and thread reads, webhooks, WebSockets, admin domains, and agent sign-up
- Includes API gotchas such as no
messages.delete,reply()lacking asubjectparameter, andwebhooks.updatebeing add/remove-only - Warns that repeated
sign_upcalls rotate the API key and invalidate the previous one immediately - Designed for developers building agents that send and receive email through the AgentMail SDK
Install
$ npx -y skills add agentmail-to/agentmail-skills --skill agentmail-sdk -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
AgentMail SDK
AgentMail is an API-first email platform for AI agents. Use the published SDK interfaces and generated API types as the source of truth. Keep credentials in AGENTMAIL_API_KEY.
npm install agentmail
pip install agentmail
Quick start
Create an inbox, send, and read a reply. Full per-language usage lives in the references.
import { AgentMailClient } from "agentmail";
const client = new AgentMailClient({ apiKey: process.env.AGENTMAIL_API_KEY });
const inbox = await client.inboxes.create({ username: "support", clientId: "support-v1" });
await client.inboxes.messages.send(inbox.inboxId, {
to: ["customer@example.com"],
subject: "Hello",
text: "Plain-text body",
});
// .list() returns metadata only — fetch the full message to read the body.
const messages = await client.inboxes.messages.list(inbox.inboxId, { limit: 20 });
const message = await client.inboxes.messages.get(inbox.inboxId, "msg_123");
const body = message.extractedText ?? message.text ?? message.extractedHtml ?? message.html;
from agentmail import AgentMail
from agentmail.inboxes.types import CreateInboxRequest
Details
- Repository
- github.com/agentmail-to/agentmail-skills
- Categories
- Email & Messaging, AI Agents & LLM Apps
- First seen
- Jun 3, 2026
More from agentmail-to/agentmail-skills
All 7Similar to Agentmail Sdk
More Email & Messaging
email-for-ai-agentsSkillagentmail-to/agentmail-skills854 installsArchitecture, security, and provider tradeoffs for AI agents communicating over dedicated email inboxes.
agent-email-patternsSkillagentmail-to/agentmail-skills922 installsArchitecture patterns for AI agents that email, covering inbox isolation, conversation loops, and threat modeling.
e2a — email for AI agentsMCP servermnexa-ai200 starsAuthenticated email inboxes and sending for AI agents, with human approval gates and SPF/DKIM/DMARC evidence.
McpMCP serveragenticmail257 starsEmail and SMS access for AI agents: send mail, read inboxes, and receive verification codes.
resendSkillresend/resend-skills24.7K installsComprehensive Resend API skill covering sending, receiving, templates, webhooks, domains, contacts, and automations.
agent-email-inboxSkillresend/resend-skills14.1K installsSecure inbox setup for AI agents and email-triggered workflows, with sender allowlists and sandboxed processing.