Create accounts, send/receive emails, and manage webhooks using a REST API. Costs only 10 karma per account. Start automating email workflows today.
Email API
AI Agent
REST API
Webhooks
Karma System
Automation
About This Skill
AgentMail provides real email addresses (@theagentmail.net) for AI agents via a REST API. Create accounts (costs 10 karma), send messages (1 karma each), read inboxes, and manage webhooks. Perfect for signups, verification codes, and transactional communication.
Quick Start
1Get your API key from the AgentMail dashboard (starts with am_...).
2Create an email account: POST /v1/accounts with address my-agent@theagentmail.net.
3Send an email: POST /v1/accounts/{accountId}/messages with to, subject, and text.
Provision real @theagentmail.net addresses for your AI agents with a single API call. Each account costs 10 karma.
Send Emails
Send plain text or HTML emails from your agent's address, including CC, BCC, attachments, and threading support. Costs 1 karma per message.
Read Inbox
List and read messages from your agent's inbox to process verification codes, replies, or notifications.
Manage Webhooks
Register inbound webhooks to receive email events in real-time, enabling automated agent workflows.
Usage Examples
Before
Agent has no email address and cannot sign up for services.
After
Agent has a real inbox at my-agent@theagentmail.net and can receive verification emails.
Input
Send a verification code to user@example.com from my agent.
Output
Email sent successfully (cost: 1 karma).
Input
Check my agent's inbox for a Slack confirmation link.
Output
Inbox contains 3 messages. Latest: 'Confirm your Slack account' from slack@slack.com.
SKILL.md
---
name: agentmail
description: Email infrastructure for AI agents. Create accounts, send/receive emails, manage webhooks, and check karma balance via the AgentMail API.
risk: safe
source: community
---
# AgentMail — Email for AI Agents
AgentMail gives AI agents real email addresses (`@theagentmail.net`) with a REST API. Agents can send and receive email, sign up for services (GitHub, AWS, Slack, etc.), and get verification codes. A karma system prevents spam and keeps the shared domain's reputation high.
Base URL: `https://api.theagentmail.net`
## When to Use
- An AI agent needs a real inbox/outbox for signups, verification flows, or transactional communication.
- You need to provision AgentMail accounts, send messages, read inbox contents, or register inbound webhooks.
- You need to monitor karma usage or wire email events into agent automation.
## Quick start
All requests require `Authorization: Bearer am_...` header (API key from dashboard).
### Create an email account (-10 karma)
```bash
curl -X POST https://api.theagentmail.net/v1/accounts \
-H "Authorization: Bearer am_..." \
-H "Content-Type: application/json" \
-d '{"address": "my-agent@theagentmail.net"}'
```
Response: `{"data": {"id": "...", "address": "my-agent@theagentmail.net", "displayName": null, "createdAt": 123}}`
### Send email (-1 karma)
```bash
curl -X POST https://api.theagentmail.net/v1/accounts/{accountId}/messages \
-H "Authorization: Bearer am_..." \
-H "Content-Type: application/json" \
-d '{
"to": ["recipient@example.com"],
"subject": "Hello from my agent",
"text": "Plain text body",
"html": "<p>Optional HTML body</p>"
}'
```
Optional fields: `cc`, `bcc` (string arrays), `inReplyTo`, `references` (strings for threading), `attachments` (array of `{filename, contentType, content}` where content is base64).
### Read inbox
```bash
# List messages
curl https://api.theagentmail.net/v1/accounts/{accountId}/messages \
-H "Authorization: Bearer am_...
Frequently Asked Questions
FAQ
What tools and platforms is AgentMail compatible with?
AgentMail is compatible with any system that can make HTTP requests to a REST API, including Python, Node.js, curl, and automation frameworks like n8n or Zapier. It works with any AI agent framework that supports API calls.
Who is the target audience for AgentMail?
AgentMail is designed for developers and AI agent builders who need to give their agents real email capabilities for signups, verification flows, and transactional communication. It's ideal for coding projects involving autonomous agents.
How is AgentMail different from traditional email APIs like SendGrid or Mailgun?
Unlike traditional email APIs that focus on sending from your own domain, AgentMail provides disposable @theagentmail.net addresses specifically for AI agents. It includes a karma system to prevent spam and maintain domain reputation, and is optimized for agent workflows like reading inboxes and handling verification codes.
What programming languages and frameworks does AgentMail support?
AgentMail is language-agnostic via its REST API. You can use it with any language that supports HTTP requests, such as Python, JavaScript, Go, Ruby, or Java. No SDK is required, but community wrappers may be available.
What results can I expect when using AgentMail for my AI agent?
You can expect your AI agent to autonomously sign up for services (like GitHub, AWS, Slack), receive verification codes, send notifications, and manage email-based workflows. The karma system ensures your agent maintains a good sender reputation, with each account costing 10 karma and each send costing 1 karma.
Use these phrases to activate this skill in your AI coding assistant:
create email account for agentsend email from AI agentcheck agent inboxregister webhook for emailagent signup verificationagentmail apiemail automation for AI