REST API

Build with
TempMail API.

A clean, well-documented REST API to generate inboxes, receive messages, and parse verification codes — all from your own application.

Authentication
API Key Required

All API requests must include your API key as a query parameter: ?key=YOUR_API_KEY. You can generate your key from the Premium dashboard.

HTTP
# Include your key with every request
GET https://api.TempMail.vcnclgatd.site/v1/generate?key=YOUR_API_KEY
Base URL

All API requests are made over HTTPS to the following base URL. HTTP requests will be redirected to HTTPS.

Base URL
https://api.TempMail.vcnclgatd.site/v1
Rate Limits
PlanRequests / minRequests / dayConcurrent inboxes
Free105001
Premium12050,000Unlimited
Error Codes
CodeMeaning
400Bad Request — missing or malformed parameters
401Unauthorized — invalid or missing API key
404Not Found — address or message does not exist
429Too Many Requests — rate limit exceeded
500Server Error — retry with exponential back-off
GET /generate_email.php Generate a new disposable address

Creates a new temporary email address. Optionally specify a custom domain (Premium) or TTL.

Parameters
NameTypeRequiredDescription
keystringrequiredYour API key
domainstringoptionalCustom domain (Premium only)
ttlintegeroptionalAddress lifetime in seconds (default: 3600)
Example Request
cURL
curl -X GET "https://api.TempMail.vcnclgatd.site/v1/generate_email.php?key=vcncawuz123&ttl=3600"
Example Response
JSON
{
  "email":      "k9x2m7@TempMail.vcnclgatd.site",
  "expires_at": "2026-03-07T14:00:00Z",
  "ttl":        3600
}
GET /inbox.php List messages in an inbox

Returns all messages received by a disposable address. Poll this endpoint or use WebSockets for real-time delivery.

Parameters
NameTypeRequiredDescription
keystringrequiredYour API key
emailstringrequiredThe disposable address to check
Example Request
cURL
curl -X GET "https://api.TempMail.vcnclgatd.site/v1/inbox.php?key=vcncawuz123&email=k9x2m7@TempMail.vcnclgatd.site"
Example Response
JSON
[
  {
    "id":            "msg_a1b2c3",
    "sender":        "noreply@github.com",
    "subject":       "Verify your email address",
    "date_received": "2026-03-07T13:05:22Z"
  }
]
GET /read.php Read a single message

Returns the full content of a message, including the parsed OTP code or verification link if detected.

Parameters
NameTypeRequiredDescription
keystringrequiredYour API key
emailstringrequiredThe disposable address
idstringrequiredMessage ID from the inbox endpoint
Example Response
JSON
{
  "id":                 "msg_a1b2c3",
  "sender":             "noreply@github.com",
  "subject":            "Verify your email address",
  "date_received":     "2026-03-07T13:05:22Z",
  "body":               "<p>Click to verify...</p>",
  "otp":               null,
  "confirmation_link": "https://github.com/verify?token=abc123"
}
DEL /delete.php Delete an address and all its messages

Permanently deletes a disposable address and all associated messages before the natural expiry time.

Parameters
NameTypeRequiredDescription
keystringrequiredYour API key
emailstringrequiredThe address to delete
Example Response
JSON
{ "deleted": true, "email": "k9x2m7@TempMail.vcnclgatd.site" }