New advertisers: 50% off your first month with code FIRSTMONTHSee slots

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
View on GitHub

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 a subject parameter, and webhooks.update being add/remove-only
  • Warns that repeated sign_up calls 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 -y

Installs 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 7

Similar to Agentmail Sdk

More Email & Messaging