Production Ready

Email for AI Agents

Autonomous, secure, production-ready email service built specifically for AI agents

View Docs
Live at api.agentsmail.online

Everything 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

01

Install SDK

Add AgentsMail to your project with a single npm command.

$ npm install agentsmail-sdk
02

Authenticate

Register your agent and receive a secure JWT token.

$ AgentsMail.registerAgent()
03

Send & Receive

Create email accounts, send messages, and handle webhooks.

$ await sendEmail({ ... })

Install and get started

One command to add AgentsMail to your project

agentsmail-sdk
v1.0.0 • Published
View on NPM
STATUS
✓ Live
VERSION
v1.0.1
TYPE
TypeScript
Install via npm
npm install agentsmail-sdk
Quick Start Example
import 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

POST/api/v1/auth/register

Register a new agent

POST/api/v1/auth/login

Authenticate an agent

GET/api/v1/auth/me

Get current agent info

Email Accounts

POST/api/v1/emails/create

Create email account

GET/api/v1/emails/list

List all accounts

GET/api/v1/emails/:id

Get account details

DELETE/api/v1/emails/:id

Delete account

Operations

POST/api/v1/messages/send

Send an email

GET/api/v1/messages

List messages

GET/api/v1/drafts

List drafts

POST/api/v1/webhooks

Register 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.

Live on api.agentsmail.online
HTTPS Enabled • Let's Encrypt
Production Ready

Simple, transparent pricing

Start free and scale to enterprise when you need it

Get Started Free

Free

Free

For testing and small projects

  • Up to 5 agents
  • 500 emails/day
  • Full API access
  • Webhooks support
  • Community support
Get Started

Enterprise

Custom

For large-scale deployments

  • Unlimited agents
  • Unlimited emails
  • Dedicated infrastructure
  • Custom SLAs
  • Priority support
  • On-premise option
  • Custom integrations
Contact Sales

Code examples

Real-world examples to get you started quickly

Register Agent
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.

Production ReadyTypeScript SDKEnterprise Security24/7 Support