Your Shield Against Spam & For Your Online Privacy

1TempMail API & MCP Server

Programmatically generate temporary emails, check inboxes, and read messages. Integrate via REST API or MCP Server.

REST API MCP Protocol Bearer Auth JSON Responses

Quick Start

Get up and running in under a minute. Register for an API key, then start making requests.

Login & Get Your API Key

Sign in via the web interface and generate your API key:

curl -X GET https://www.1tempmail.com/api/v1/key \
  -H "Authorization: Bearer YOUR_API_KEY"

Generate a Temp Email

curl -X POST https://www.1tempmail.com/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY"

Authentication

All API requests require a Bearer token in the Authorization header. Register an account and retrieve your API key using the endpoints above.

🔒
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 three tools that AI assistants can call directly. Connect via the MCP endpoint at https://www.1tempmail.com/mcp.

Tool generate_email

Generate a new temporary email address. The email remains active for 60 minutes and can receive messages during that time.

Parameters

Parameter Type Required Description
domain string optional Preferred domain for the email address. If omitted, a random domain is assigned.

Example Response

{
  "email": "abc123@1tempmail.com",
  "token": "sid_a8f3c2d1e4b56790",
  "expires_at": "2026-07-07T12:00:00Z"
}

Tool check_inbox

Retrieve all messages currently in the inbox for a given temporary email address.

Parameters

Parameter Type Required Description
token string required The session token returned by generate_email.

Example Response

{
  "email": "abc123@1tempmail.com",
  "messages": [
    {
      "id": "msg_01HZ3QK7M8NP",
      "from": "noreply@example.com",
      "subject": "Verify your email address",
      "date": "2026-07-07T10:30:00Z",
      "preview": "Your verification code is 482917..."
    }
  ],
  "count": 1
}

Tool get_message

Retrieve the full content of a specific message, including the HTML body and attachments metadata.

Parameters

Parameter Type Required Description
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",
  "to": "abc123@1tempmail.com",
  "subject": "Verify your email address",
  "date": "2026-07-07T10:30:00Z",
  "body_html": "<div>Your verification code is <b>482917</b>...</div>",
  "body_text": "Your verification code is 482917...",
  "attachments": []
}

MCP Integration

Add the 1TempMail MCP Server to your AI tool by adding the configuration below to your settings file.

Add to ~/.claude/settings.json or your project's .claude/settings.json:

{
  "mcpServers": {
    "1tempmail": {
      "command": "npx",
      "args": ["-y", "@1tempmail/mcp-server"],
      "env": {
        "1TEMPMAIL_API_KEY": "your_api_key_here"
      }
    }
  }
}

Add to ~/.cursor/mcp.json or your project's .cursor/mcp.json:

{
  "mcpServers": {
    "1tempmail": {
      "command": "npx",
      "args": ["-y", "@1tempmail/mcp-server"],
      "env": {
        "1TEMPMAIL_API_KEY": "your_api_key_here"
      }
    }
  }
}

For Windsurf, Cline, or any MCP-compatible tool, add the same server config to your tool's MCP settings file:

{
  "mcpServers": {
    "1tempmail": {
      "command": "npx",
      "args": ["-y", "@1tempmail/mcp-server"],
      "env": {
        "1TEMPMAIL_API_KEY": "your_api_key_here"
      }
    }
  }
}

Remote MCP Endpoint

If your tool supports remote MCP servers via SSE, you can also connect directly:

https://www.1tempmail.com/mcp

REST API Reference

Base URL: https://www.1tempmail.com/api/v1

GET

/key

Retrieve your API key information. Requires Bearer auth with your API key.

curl -X GET https://www.1tempmail.com/api/v1/key \
  -H "Authorization: Bearer YOUR_API_KEY"

# Response
{
  "api_key": "tmp_live_k8x...qz2",
  "plan": "free",
  "created_at": "2026-07-07T10:00:00Z"
}
GET

/usage

Check your current billing period usage and rate limit details.

curl -X GET https://www.1tempmail.com/api/v1/usage \
  -H "Authorization: Bearer YOUR_API_KEY"

# Response
{
  "plan": "free",
  "requests_used": 42,
  "requests_limit": 100,
  "period_end": "2026-08-01T00:00:00Z"
}
GET

/plans

List all available pricing plans with their features and limits.

curl -X GET https://www.1tempmail.com/api/v1/plans

# Response
{
  "plans": [
    { "id": "free", "name": "Free", "price": 0, "requests_per_month": 100 },
    { "id": "pro", "name": "Pro", "price": 9, "requests_per_month": 10000 },
    { "id": "enterprise", "name": "Enterprise", "price": 49, "requests_per_month": -1 }
  ]
}
POST

/upgrade

Upgrade your account to a higher plan. Requires the target plan ID in the request body.

curl -X POST https://www.1tempmail.com/api/v1/upgrade \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"plan_id": "pro"}'

# Response
{
  "plan": "pro",
  "requests_limit": 10000,
  "effective_at": "2026-07-07T10:00:00Z",
  "checkout_url": "https://www.1tempmail.com/checkout/..."
}

Pricing Plans

Start free and scale as you grow. No hidden fees.

Free
$0 /mo
100 requests / month
  • Temp email generation
  • Inbox checking
  • Message reading
  • 60-minute email lifetime
  • Community support
Sign In
Enterprise
$49 /mo
Unlimited requests
  • Everything in Pro
  • Unlimited API calls
  • Dedicated infrastructure
  • SLA guarantee
  • Dedicated account manager
Contact Sales