{
  "openapi": "3.0.3",
  "info": {
    "title": "10minutesmail Temporary Email API",
    "version": "1.0.0",
    "description": "Receive-only temporary inbox API for synthetic signup tests. BASIC $0/month: 50 successfully received emails/day. PRO $2.99/month: 1,000 received emails/day. Duplicates and rejected deliveries do not count. Daily request and creation limits are abuse safeguards. Hard 24-hour API access, 10 messages/inbox, 64 KiB raw message limit. GET /usage reports receivedMessages. RapidAPI handles consumer authentication; mailbox operations also need Authorization: Bearer token. https://10minutemail.im/developers",
    "termsOfService": "https://10minutemail.im/terms",
    "contact": {
      "url": "https://10minutemail.im/contact"
    },
    "x-category": "Email",
    "x-website": "https://10minutemail.im/developers"
  },
  "servers": [
    {
      "url": "https://10minutemail.im/api/public/v1"
    }
  ],
  "components": {
    "schemas": {
      "Mailbox": {
        "type": "object",
        "required": [
          "id",
          "address",
          "createdAt",
          "countdownEndsAt",
          "expiresAt",
          "serverTime",
          "accessEndsAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "address": {
            "type": "string",
            "format": "email"
          },
          "createdAt": {
            "type": "integer",
            "format": "int64",
            "description": "Creation time in Unix milliseconds."
          },
          "countdownEndsAt": {
            "type": "integer",
            "format": "int64",
            "description": "Legacy display timer, not the hard API access deadline."
          },
          "expiresAt": {
            "type": "integer",
            "format": "int64",
            "description": "Legacy alias of countdownEndsAt; not the hard API deadline."
          },
          "serverTime": {
            "type": "integer",
            "format": "int64",
            "description": "Response time in Unix milliseconds."
          },
          "accessEndsAt": {
            "type": "integer",
            "format": "int64",
            "description": "Hard API receipt/access deadline, Unix milliseconds; 24 hours after creation."
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "Message": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MessageSummary"
          },
          {
            "type": "object",
            "required": [
              "text",
              "html"
            ],
            "properties": {
              "text": {
                "type": "string",
                "description": "Plain-text body or text derived from HTML."
              },
              "html": {
                "type": "string",
                "nullable": true,
                "description": "Sanitized HTML, null if no HTML part was supplied. Still sandbox in a viewer."
              }
            }
          }
        ]
      },
      "CreatedMailbox": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Mailbox"
          },
          {
            "type": "object",
            "required": [
              "token"
            ],
            "properties": {
              "token": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$",
                "description": "Mailbox Bearer token, returned only on creation. Keep private."
              }
            }
          }
        ]
      },
      "MessageSummary": {
        "type": "object",
        "required": [
          "id",
          "from",
          "subject",
          "receivedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "from": {
            "type": "string",
            "description": "SMTP sender address."
          },
          "subject": {
            "type": "string",
            "description": "A missing subject is stored as (No subject)."
          },
          "receivedAt": {
            "type": "integer",
            "format": "int64",
            "description": "Receipt time in Unix milliseconds."
          }
        }
      },
      "Usage": {
        "type": "object",
        "required": [
          "plan",
          "period",
          "resetsAt",
          "limits",
          "usage",
          "documentation"
        ],
        "properties": {
          "plan": {
            "type": "string",
            "enum": [
              "BASIC",
              "PRO"
            ]
          },
          "period": {
            "type": "string",
            "enum": [
              "UTC calendar day"
            ]
          },
          "resetsAt": {
            "type": "integer",
            "format": "int64",
            "description": "Next midnight UTC in Unix milliseconds."
          },
          "limits": {
            "type": "object",
            "required": [
              "requests",
              "mailboxes",
              "receivedMessages",
              "maxRawMessageBytes"
            ],
            "properties": {
              "requests": {
                "type": "integer",
                "minimum": 0,
                "description": "Daily HTTP request cap."
              },
              "mailboxes": {
                "type": "integer",
                "minimum": 0,
                "description": "Daily creation-attempt cap."
              },
              "receivedMessages": {
                "type": "integer",
                "minimum": 0,
                "description": "Daily newly stored received-email cap."
              },
              "maxRawMessageBytes": {
                "type": "integer",
                "minimum": 0,
                "description": "Maximum raw bytes per message, including MIME headers and encoding."
              }
            }
          },
          "usage": {
            "type": "object",
            "required": [
              "requests",
              "mailboxes",
              "receivedMessages"
            ],
            "properties": {
              "requests": {
                "type": "integer",
                "minimum": 0,
                "description": "Metered HTTP calls used today."
              },
              "mailboxes": {
                "type": "integer",
                "minimum": 0,
                "description": "Creation attempts used today."
              },
              "receivedMessages": {
                "type": "integer",
                "minimum": 0,
                "description": "Newly stored emails today; duplicate/rejected deliveries excluded."
              }
            }
          },
          "documentation": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "MessageList": {
        "type": "object",
        "required": [
          "messages",
          "countdownEndsAt",
          "expiresAt",
          "serverTime"
        ],
        "properties": {
          "messages": {
            "type": "array",
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/MessageSummary"
            },
            "description": "Newest first; an empty array means no mail yet."
          },
          "countdownEndsAt": {
            "type": "integer",
            "format": "int64",
            "description": "Legacy display timer, not the hard API access deadline."
          },
          "expiresAt": {
            "type": "integer",
            "format": "int64",
            "description": "Legacy alias of countdownEndsAt; not the hard API deadline."
          },
          "serverTime": {
            "type": "integer",
            "format": "int64",
            "description": "Response time in Unix milliseconds."
          }
        }
      }
    }
  },
  "paths": {
    "/domains": {
      "get": {
        "operationId": "listDomains",
        "summary": "List receiving domains",
        "description": "Operated by 10minutesmail on Cloudflare Workers, Email Routing and D1; RapidAPI is the gateway. Request body: none, including POST. Query parameters are not accepted. API receipt/access ends 24 hours after creation; backend records remain after closure.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domains": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "receiveOnly": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Gateway or mailbox authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Plan unsupported",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Access ended",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Hard quota or rate limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/usage": {
      "get": {
        "operationId": "getUsage",
        "summary": "Read daily usage and limits",
        "description": "Operated by 10minutesmail on Cloudflare Workers, Email Routing and D1; RapidAPI is the gateway. Request body: none, including POST. Query parameters are not accepted. API receipt/access ends 24 hours after creation; backend records remain after closure.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Gateway or mailbox authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Plan unsupported",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Access ended",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Hard quota or rate limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/mailboxes": {
      "post": {
        "operationId": "createMailbox",
        "summary": "Create a temporary test inbox",
        "description": "Operated by 10minutesmail on Cloudflare Workers, Email Routing and D1; RapidAPI is the gateway. Request body: none, including POST. Query parameters are not accepted. API receipt/access ends 24 hours after creation; backend records remain after closure.",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedMailbox"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Gateway or mailbox authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Plan unsupported",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Access ended",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Hard quota or rate limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/mailboxes/{id}": {
      "get": {
        "operationId": "getMailbox",
        "summary": "Get an owned inbox",
        "description": "Operated by 10minutesmail on Cloudflare Workers, Email Routing and D1; RapidAPI is the gateway. Request body: none, including POST. Query parameters are not accepted. API receipt/access ends 24 hours after creation; backend records remain after closure.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            },
            "description": "Identifier returned by this API."
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Bearer YOUR_MAILBOX_TOKEN from POST /mailboxes."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mailbox"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Gateway or mailbox authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Plan unsupported",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Access ended",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Hard quota or rate limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "closeMailbox",
        "summary": "End access to an owned inbox",
        "description": "Operated by 10minutesmail on Cloudflare Workers, Email Routing and D1; RapidAPI is the gateway. Request body: none, including POST. Query parameters are not accepted. API receipt/access ends 24 hours after creation; backend records remain after closure.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            },
            "description": "Identifier returned by this API."
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Bearer YOUR_MAILBOX_TOKEN from POST /mailboxes."
          }
        ],
        "responses": {
          "204": {
            "description": "Access closed. Empty body; do not parse JSON. Records retained; repeat delete with the valid token returns 410."
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Gateway or mailbox authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Plan unsupported",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Access ended",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Hard quota or rate limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/mailboxes/{id}/messages": {
      "get": {
        "operationId": "listMessages",
        "summary": "List up to ten received messages",
        "description": "Operated by 10minutesmail on Cloudflare Workers, Email Routing and D1; RapidAPI is the gateway. Request body: none, including POST. Query parameters are not accepted. API receipt/access ends 24 hours after creation; backend records remain after closure. Poll no faster than every 15 seconds.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            },
            "description": "Identifier returned by this API."
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Bearer YOUR_MAILBOX_TOKEN from POST /mailboxes."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Gateway or mailbox authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Plan unsupported",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Access ended",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Hard quota or rate limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/mailboxes/{id}/messages/{messageId}": {
      "get": {
        "operationId": "getMessage",
        "summary": "Read a message as text and sanitized HTML",
        "description": "Operated by 10minutesmail on Cloudflare Workers, Email Routing and D1; RapidAPI is the gateway. Request body: none, including POST. Query parameters are not accepted. API receipt/access ends 24 hours after creation; backend records remain after closure. Poll no faster than every 15 seconds.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            },
            "description": "Identifier returned by this API."
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            },
            "description": "Identifier returned by this API."
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Bearer YOUR_MAILBOX_TOKEN from POST /mailboxes."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Gateway or mailbox authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Plan unsupported",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Access ended",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Hard quota or rate limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "HTTP request/response reference with Python and Node.js quickstarts",
    "url": "https://10minutemail.im/developers"
  }
}
