Email for AI Agents
Autonomous, secure, production-ready email service built specifically for AI agents
api.agentsmail.onlineEverything you need
A complete email infrastructure designed for autonomous AI agents
Secure by Default
JWT authentication, per-agent database isolation, and AES-256 encryption for all data at rest.
Built for AI
Register autonomous agents, manage emails programmatically, and handle complex workflows effortlessly.
Production Ready
Rate limiting, webhooks, comprehensive API, and battle-tested infrastructure ready for scale.
TypeScript SDK
Full type safety, intelligent autocomplete, and 30+ methods for complete email management.
Scale Instantly
Handle 1000+ concurrent agents with optimized queries and efficient resource management.
Developer Friendly
Clean API design, comprehensive documentation, and real-world examples to get you started.
Simple integration
Get started in minutes with our straightforward API
Install SDK
Add AgentsMail to your project with a single npm command.
$ npm install agentsmail-sdkAuthenticate
Register your agent and receive a secure JWT token.
$ AgentsMail.registerAgent()Send & Receive
Create email accounts, send messages, and handle webhooks.
$ await sendEmail({ ... })Install and get started
One command to add AgentsMail to your project
npm install agentsmail-sdkimport AgentsMail from 'agentsmail-sdk'
// Initialize the client
const client = new AgentsMail({
baseUrl: 'https://api.agentsmail.online'
})
// Register your agent
const agent = await client.registerAgent({
name: 'MyAIAssistant',
email: 'assistant@example.com'
})
// Create an email account
const account = await client.createEmailAccount({
agentId: agent.id,
address: 'bot@agentsmail.online'
})
// Send an email
await client.sendEmail({
accountId: account.id,
to: 'user@example.com',
subject: 'Hello from AI',
body: 'This is an automated message.'
})RESTful API Endpoints
Comprehensive API for all your email management needs
Authentication
/api/v1/auth/registerRegister a new agent
/api/v1/auth/loginAuthenticate an agent
/api/v1/auth/meGet current agent info
Email Accounts
/api/v1/emails/createCreate email account
/api/v1/emails/listList all accounts
/api/v1/emails/:idGet account details
/api/v1/emails/:idDelete account
Operations
/api/v1/messages/sendSend an email
/api/v1/messagesList messages
/api/v1/draftsList drafts
/api/v1/webhooksRegister webhook
Enterprise-grade security
Built with security as a first principle, not an afterthought
HTTPS/TLS 1.3
All communications encrypted with the latest TLS protocol.
Per-Agent Isolation
Each agent gets its own isolated database for maximum privacy.
JWT Authentication
Secure token-based authentication with configurable expiration.
Rate Limiting
Built-in protection against abuse with configurable limits.
AES-256 Encryption
All sensitive data encrypted at rest using AES-256.
Secure Webhooks
Signed webhook payloads for verified event delivery.
Simple, transparent pricing
Start free and scale to enterprise when you need it
Free
For testing and small projects
- Up to 5 agents
- 500 emails/day
- Full API access
- Webhooks support
- Community support
Enterprise
For large-scale deployments
- Unlimited agents
- Unlimited emails
- Dedicated infrastructure
- Custom SLAs
- Priority support
- On-premise option
- Custom integrations
Code examples
Real-world examples to get you started quickly
import AgentsMail from 'agentsmail-sdk'
const client = new AgentsMail({
baseUrl: 'https://api.agentsmail.online'
})
// Register a new agent
const agent = await client.registerAgent({
name: 'MyAIAgent',
email: 'agent@example.com',
password: 'secure-password'
})
console.log('Agent registered:', agent.id)
console.log('JWT Token:', agent.token)Start Building with AgentsMail
Join developers building the next generation of AI-powered applications with autonomous email capabilities.