All API requests require a Bearer token in the Authorization header. Sign in with your Google account above and generate an API key to get started.
🔒
Bearer Token Auth
Include your API key in every request:
Authorization: Bearer your_api_key_here
Keep Your API Key Secret
Never expose your API key in client-side code or public repositories. Store it in environment variables or a secrets manager.
MCP Server Tools
The 1TempMail MCP Server exposes six tools that AI assistants can call directly. Connect via the MCP endpoint at https://www.1tempmail.com/mcp. Standard tools are available on all plans; EDU tools require the Pro plan.
Tool
generate_email
Generate a new temporary email address. The email remains active for 60 minutes and can receive messages during that time.
Parameters
None.
Example Response
{
"email": "abc123@1tempmail.com",
"sid_token": "sid_a8f3c2d1e4b56790",
"expires_in": "60 minutes",
"hint": "Use check_inbox with the sid_token to read incoming emails."
}
Tool
check_inbox
Retrieve all messages currently in the inbox for a given temporary email address.
Retrieve the full content of a specific message, including the body text.
Parameters
Parameter
Type
Required
Description
sid_token
string
required
The session token returned by generate_email.
message_id
string
required
The message ID from check_inbox.
Example Response
{
"id": "msg_01HZ3QK7M8NP",
"from": "noreply@example.com",
"subject": "Verify your email address",
"body": "Your verification code is 482917...",
"timestamp": "2026-07-07T10:30:00Z"
}
EDU Email Tools — Pro Plan Required
The three tools below operate on .edu.kg mailboxes with a 7-day validity window. They require a Pro or Enterprise API key; Free keys calling them receive error -32003.
Pro
generate_edu_email
Generate a new temporary EDU email address on the .edu.kg domain. The mailbox stays active for 7 days; individual messages expire after 24 hours. Accepted by many educational platforms and student discount services. Returns a token and view_token pair — keep both, they are required for all subsequent EDU calls.
Retrieve the full content of a specific EDU email message, including the body text and sanitized HTML.
Parameters
Parameter
Type
Required
Description
token
string
required
The mailbox token returned by generate_edu_email.
view_token
string
required
The view token returned by generate_edu_email.
message_id
string
required
The message ID from check_edu_inbox.
Example Response
{
"id": "msg_9k2m7x4q",
"from_addr": "noreply@studentplatform.com",
"subject": "Confirm your student email",
"body": "Welcome! Click the link below to verify...",
"html": "<div>Welcome! <a href=...>Verify</a></div>",
"timestamp": "2026-07-13T14:22:00Z"
}
JSON-RPC call shape
All tools are invoked via a single POST /mcp request with JSON-RPC 2.0 body. The tool result is wrapped as a JSON string inside result.content[0].text — parse it to get the structured payload shown above. The response also carries _meta.remaining showing remaining monthly quota.
Add the 1TempMail MCP Server to your AI tool by adding the configuration below to your settings file. The server is open source — view the source, report issues, or contribute on GitHub:
Source Code
The 1TempMail MCP Server is open source on GitHub:
Yes, the 1TempMail API offers a free plan with 10 requests per month at no cost. You can generate temporary emails, check inboxes, and read messages without a credit card. For higher usage, the Pro plan offers 1,000 requests per month for $9.
How do I get a temp mail API key?
To get a temp mail API key, sign in with your Google account on the API documentation page, then click "Generate API Key". Your key is instantly created and can be used in the Authorization header as a Bearer token for all API requests.
What is the MCP Server for temp mail?
The 1TempMail MCP Server is a Model Context Protocol server that lets AI assistants like Claude Code and Cursor generate temporary emails, check inboxes, and read messages directly. You can connect via the endpoint https://www.1tempmail.com/mcp or install the npm package @1tempmail/mcp-server. See the MCP Integration section above for configuration details.
Can I use the temp mail API for software testing?
Yes, the temp mail API is ideal for software testing. Developers can programmatically generate disposable emails to test signup flows, email verification, OTP delivery, and notification systems without polluting real inboxes. It integrates easily with Playwright, Selenium, and Cypress test pipelines. Read our developer's guide to disposable email for testing for detailed workflows.
What are the API rate limits for temp mail?
The free plan includes 10 API requests per month, while the Pro plan offers 1,000 requests per month for $9. The Enterprise plan with unlimited requests is coming soon. Usage resets at the end of each billing period, and you can monitor your remaining quota via the /usage endpoint.
How long do temporary emails last?
Standard temporary emails generated via the API remain active for 60 minutes. EDU emails on the .edu.kg domain (Pro plan only) stay active for 7 days with individual messages expiring after 24 hours.
Roadmap & Upcoming Features
Here's what we're working on next. These features are planned but not yet implemented.
PlannedCustom Domains
Bring your own domain to generate temporary emails with your brand. Pro and Enterprise plans.
PlannedExtended Email Lifetime
Extend email validity beyond 60 minutes — up to 24 hours or 7 days for Pro users.
PlannedPriority Delivery
Faster inbox polling and email delivery for Pro and Enterprise users.
PlannedWebhook Notifications
Get notified via webhook when a new email arrives, instead of polling the inbox.
PlannedEmail Forwarding
Automatically forward received emails to your personal inbox.
PlannedTeam Management & Enterprise SSO
Manage multiple API keys, team members, and SAML SSO for Enterprise organizations.
PlannedAnalytics Dashboard
Detailed usage analytics, request logs, and billing history in your account dashboard.