TempMail Bank API Documentation
TempMail Bank API helps developers create temporary inboxes, read incoming messages, manage disposable email sessions, and access attachments through simple endpoints.
Contact us to request your API key and start integrating TempMail Bank into your application.
This section explains the available endpoints and their basic usage.
GET /api/domains/{apiKey}/{type}
Parameters:
free, premium, or allExample Request:
GET /api/domains/your-api-key/allExample Response:
{
"status": true,
"data": {
"domains": [
{ "domain": "samplefree.com", "type": "Free" },
{ "domain": "mailzone.net", "type": "Free" },
{ "domain": "premiumbox.com", "type": "Premium" }
]
}
}POST /api/emails/{apiKey}
Parameters:
Example Request:
POST /api/emails/your-api-keyExample Response:
{
"status": true,
"data": {
"email": "sample@domain.com",
"domain": "domain.com",
"expire_at": "2026-01-01T00:00:00.000000Z",
"created_at": "2026-01-01T00:00:00.000000Z",
"email_token": "email_token_here"
}
}Important Notes:
POST /api/emails/{apiKey}/{email}/{username}/{domain}
Parameters:
Example Request:
POST /api/emails/your-api-key/sample@domain.com/newuser/newdomain.comPOST /api/emails/{apiKey}/{email}
Parameters:
Example Request:
POST /api/emails/your-api-key/sample@domain.comExample Response:
{
"status": true,
"message": "Mailbox deleted successfully."
}GET /api/messages/{apiKey}/{email}
Parameters:
Example Request:
GET /api/messages/your-api-key/sample@domain.comExample Response:
{
"status": true,
"mailbox": "sample@domain.com",
"messages": [
{
"subject": "Welcome",
"from": "Example Sender",
"receivedAt": "2026-01-01 10:00:00",
"id": "message_id_here",
"attachments": []
}
]
}GET /api/messages/{apiKey}/message/{messageId}
Parameters:
Example Request:
GET /api/messages/your-api-key/message/message_id_herePOST /api/messages/{apiKey}/message/{messageId}
Parameters:
Example Request:
POST /api/messages/your-api-key/message/message_id_hereGET /api/d/{hash_id}/{file?}
Parameters:
Example Request:
GET /api/d/hash-id/document.pdfExample Response:
The requested file is returned as a direct download when available.
GET /token/{email_token}
Parameters:
Description:
This route can be used to recreate or access a mailbox session associated with a valid token.
Need API access for testing, integration, or automation? Contact us to request a key.