Quickstart
Getting Started with AgentMail
SDK’s
We currently support Python and TypeScript/Node.js. If you would like us to support another language, please reach out to us.
Quick Install
Install AgentMail using your preferred package manager:
Prerequisites
- Python 3.8 or higher
- An AgentMail API key (Request your API key)
Verify Installation
Test your installation:
Basic Usage
Here’s how to initialize the client and create your first inbox:
💡 We recommend using environment variables for your API key in production.
Create a .env
file and use python-dotenv to load it: bash AGENTMAIL_API_KEY=your_api_key_here
Error Handling
Handle API errors gracefully with built-in error types:
Async Support
Python users can also use our async client for non-blocking operations:
Python Async
Environment Support
- Python: Python 3.8+
- TypeScript/Node.js: Node.js 18+, Vercel, Cloudflare Workers, Deno v1.25+, Bun 1.0+, React Native
Need Help?
Looking for a different language? Email us at support@agentmail.to and we’ll get you set up.