Welcome to the Cheapluxury TempMail API documentation. This RESTful API allows you to programmatically create temporary email addresses, receive emails, and manage your temporary inbox.
${window.location.origin}
JSON
100 requests/min
Retrieve all available email domains for registration.
/domains
{
"response_code": 200,
"data": {
"domains": [
"example.com",
"tempmail.com",
"cheapluxury.eu"
]
}
}
curl -X GET ${window.location.origin}/domains
Create a new temporary email account.
/register
{
"email": "[email protected]",
"password": "SecurePass123"
}
Password must be at least 8 characters with uppercase, lowercase, and digit
{
"response_code": 201,
"message": "Registration successful",
"data": {
"email": "[email protected]"
}
}
curl -X POST ${window.location.origin}/register \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "SecurePass123"
}'
Quick generate a random temporary email address with credentials.
/random_email
{
"response_code": 200,
"message": "Random email generated successfully",
"data": {
"email": "[email protected]",
"password": "SecurePass789"
}
}
curl -X GET ${window.location.origin}/random_email
Authenticate and retrieve your temporary email address.
/login
{
"email": "[email protected]",
"password": "SecurePass123"
}
{
"response_code": 200,
"message": "Login successful",
"data": {
"emails": [
{
"id": 67890,
"from_addr": "[email protected]",
"to_addr": "[email protected]",
"subject": "Welcome!",
"date": "2025-11-29T10:35:00",
"body_text": "Thank you for signing up...",
"body_html": "...",
"inline_images": {},
"has_attachments": false,
"size": 1234,
"flags": [],
"message_id": "",
"in_reply_to": null,
"references": null
}
]
}
}
curl -X POST ${window.location.origin}/login \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "SecurePass123"
}'
Retrieve all emails for your temporary email address.
/email/get
{
"email": "[email protected]",
"password": "SecurePass123"
}
{
"response_code": 200,
"message": "Emails retrieved successfully",
"data": {
"emails": [
{
"id": 67890,
"from_addr": "[email protected]",
"to_addr": "[email protected]",
"subject": "Welcome!",
"date": "2025-11-29T10:35:00",
"body_text": "Thank you for signing up...",
"body_html": "...",
"inline_images": {},
"has_attachments": false,
"size": 1234,
"flags": [],
"message_id": "",
"in_reply_to": null,
"references": null
}
]
}
}
curl -X POST ${window.location.origin}/email/get \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "SecurePass123"
}'
Retrieve a specific email by its Message-ID.
/email/view
{
"email": "[email protected]",
"password": "SecurePass123",
"message_id": ""
}
{
"response_code": 200,
"message": "Email retrieved successfully",
"data": {
"email": {
"message_id": "",
"from_addr": "[email protected]",
"to_addr": "[email protected]",
"subject": "Welcome!",
"date": "2025-11-29T10:35:00",
"body_text": "Thank you for signing up...",
"body_html": "...",
"inline_images": {},
"has_attachments": false,
"size": 1234,
"flags": [],
"in_reply_to": null,
"references": null
}
}
}
curl -X POST ${window.location.origin}/email/view \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "SecurePass123",
"message_id": ""
}'
The API uses standard HTTP status codes to indicate success or failure.
{
"response_code": 400,
"message": "Invalid request parameters"
}
{
"response_code": 401,
"message": "Invalid credentials"
}
{
"response_code": 404,
"message": "Email not found"
}
{
"response_code": 429,
"message": "Rate limit exceeded. Please try again later."
}