Loading KingLand…

AgentMail

An inbox for every AI agent.

Developer Tools · Productivity

Visit the official site

Version française

About AgentMail

AgentMail provides email infrastructure designed for AI agents. Its API lets developers create dedicated inboxes, send and receive emails, manage conversations and attachments, and trigger automations using webhooks and WebSockets. Developers can build agents for customer support, processing incoming messages, or coordinating appointments, with custom domains and SDKs.

Visual guide to AgentMail

User guide V2 – AgentMail
User guide V2 – AgentMail

Open the full-size guide · WebP

User guide V2: AgentMail

Create a dedicated agent inbox, send a test message and retrieve its reply with the Python SDK. This checks the complete exchange before adding automation.

Before you start

  • An AgentMail account accessible through the console and a personal address to receive the test.
  • Python, pip and a terminal; familiarity with creating and running a Python file.
  • An AgentMail API key created in the console and kept outside your code and repository.
  1. Prepare the project

    In a working directory, install the dependencies with pip install agentmail python-dotenv.

    Check: The command finishes without errors and both packages are installed.

  2. Configure the key

    Create a .env file containing AGENTMAIL_API_KEY=, followed by your AgentMail API key.

    Check: The file exists locally; its value remains secret and is excluded from version control.

  3. Create the inbox

    In quickstart.py, call load_dotenv(), initialize AgentMail(api_key=os.getenv('AGENTMAIL_API_KEY')), then call client.inboxes.create().

    Check: Run the script and record inbox.inbox_id; the default domain is used when none is specified.

  4. Send a test

    In the same script, call client.inboxes.messages.send with the inbox ID, to, subject and text.

    Check: Run the script and check your personal inbox, including its spam folder, for the message.

  5. Reply to the message

    From your personal address, reply to the received message with a short, recognizable test phrase.

    Check: The reply is addressed to your new AgentMail inbox; retain its inbox ID for the read step.

  6. Read the reply

    In a separate script, initialize the client and call client.inboxes.messages.list(inbox_id, limit=10).

    Check: Loop through .messages and print subject and extracted_text or text; find your reply.

Useful features

  • API-created inboxes: give an agent its own address without setting up a custom domain for this test.
  • Messages and threads: send, receive and retain conversation context in the inbox.
  • Events: webhooks or WebSockets can subsequently trigger processing when a message arrives.

Practical tips

  • In the script, import os, load_dotenv from dotenv and AgentMail from agentmail; assign the client to client and the creation result to inbox.
  • Do not routinely rerun the inbox-creation script: reuse the saved ID to avoid consuming multiple inboxes.
  • For production, prefer events over tight polling loops and handle 429 errors using the Retry-After header.

Limits and precautions

  • The pricing page lists Free as three inboxes, 100 emails per day and 3,000 per month. Quotas and conditions can change.
  • The pricing page includes one custom domain on Free; accounts created before November 4, 2026 may need to request activation. AgentMail branding is added to mail sent from that domain.
  • An agent that signs itself up can face additional restrictions before human verification. A reply appearing in the API does not mean an agent has analyzed or processed it automatically.

Documentation consulted: 2026-12-02

Guide sources

Overview and pricing

Pricing models: Freemium · Subscription · Pay per use · Enterprise / quote.

Free tier with limitations; paid plans may be available.

Check current pricing and terms on the official site.

Features

  • Inbox creation

    Provision and manage dedicated inboxes via API.

  • Email management

    Send, receive, and forward messages.

  • Conversation threads

    Group replies and follow-ups by conversation.

  • Attachments

    Send and receive files with messages.

  • Real-time events

    Use webhooks and WebSockets to trigger your workflows.

  • Custom domains

    Send and receive emails using your own domain.

  • Developer SDKs

    Integrate the service using open-source Python and Node SDKs.

  • MCP server

    Connect MCP-compatible tools to AgentMail.

Highlights

  • Create dedicated inboxes for AI agents via API.
  • Trigger workflows in real time.
  • Start for free, then scale capacity to meet your needs.

Technology and platforms

  • API available
  • Platforms: Web
  • Supported languages: Anglais

Recent news

YouTube videos about AgentMail

Community reviews

KingLand Score : 72/100.

Community votes: 1 up · 0 down.

The KingLand Score is a community index. Participating can earn points. Methodology.

Explore similar tools

Developer Tools · Productivity