All endpoints are JSON over HTTPS and return a common envelope:
{
"status": true,
"data": { ... }
}
/* on error */
{ "status": false, "message": "Reason" }
https://tempmailapi.com/apiCZXXyF8jg5JRH7UbQWVYiKMQjQznCB6{apiKey} must equal your panel’s API key.application/jsoncurl, include -H "Accept: application/json".GET /domains/{apiKey}/{type}
| Path Param | Type | Description |
|---|---|---|
| apiKey | string | Your API key |
| type | string | all | free | premium |
200 Response
{
"status": true,
"data": {
"domains": [
{ "domain": "tempmailapi.online", "type": "Free" },
{ "domain": "vipmail.example", "type": "Premium" }
]
}
}
cURL
curl -s -H "Accept: application/json" \
https://tempmailapi.com/api/domains/CZXXyF8jg5JRH7UbQWVYiKMQjQznCB6/all
POST /emails/{apiKey}
200/201 Response
{
"status": true,
"data": {
"id": 123,
"email": "ab3cd@tempmailapi.online",
"domain": "tempmailapi.online",
"ip": "1.2.3.4",
"fingerprint": "f3e2c1...",
"expire_at": "2025-10-21T13:44:50Z",
"created_at": "2025-10-21T13:14:50Z",
"email_token": "ENCRYPTED_TOKEN"
}
}
cURL
curl -s -X POST -H "Accept: application/json" \
https://tempmailapi.com/api/emails/CZXXyF8jg5JRH7UbQWVYiKMQjQznCB6
POST /emails/{apiKey}/{email}/{username}/{domain}
| Path Param | Description |
|---|---|
| Current mailbox (URL-encoded) | |
| username | New local part (forbidden IDs are blocked) |
| domain | Must be an enabled domain |
200 Response
{
"status": true,
"data": {
"id": 456,
"email": "newname@tempmailapi.online",
"domain": "tempmailapi.online",
"expire_at": "2025-10-22T13:44:50Z",
"created_at": "2025-10-21T13:44:50Z"
}
}
cURL
curl -s -X POST -H "Accept: application/json" \
"https://tempmailapi.com/api/emails/CZXXyF8jg5JRH7UbQWVYiKMQjQznCB6/old%40tempmailapi.online/newname/tempmailapi.online"
POST /emails/{apiKey}/{email}
200 Response
{
"status": true,
"message": "Email has been successfully deleted."
}
cURL
curl -s -X POST -H "Accept: application/json" \
"https://tempmailapi.com/api/emails/CZXXyF8jg5JRH7UbQWVYiKMQjQznCB6/ab3cd%40tempmailapi.online"
GET /messages/{apiKey}/{email}
| Query | Type | Description |
|---|---|---|
| since_days | int | Optional. Only messages within last N days |
200 Response
{
"status": true,
"data": {
"messages": [
{
"id": "eNcoDedHash...",
"from": "invideo AI",
"subject": "Your login code",
"created_at": "2025-10-21T13:36:31Z",
"hash_id": "eNcoDedHash...",
"has_attachments": false
}
]
}
}
cURL
curl -s -H "Accept: application/json" \
"https://tempmailapi.com/api/messages/CZXXyF8jg5JRH7UbQWVYiKMQjQznCB6/ab3cd%40tempmailapi.online?since_days=7"
GET /messages/{apiKey}/message/{messageId}
messageId is the message hash_id returned by the list.
200 Response
{
"status": true,
"data": {
"message": {
"id": "eNcoDedHash...",
"from": "invideo AI",
"subject": "651693 — Your login code",
"created_at": "2025-10-21T13:36:31Z",
"body": "<p>Here's your login code...</p>",
"hash_id": "eNcoDedHash...",
"attachments": [
{
"filename": "invoice.pdf",
"size": 12345,
"link": "https://tempmailapi.com/api/d/eNcoDedHash.../invoice.pdf"
}
]
}
}
}
cURL
curl -s -H "Accept: application/json" \
"https://tempmailapi.com/api/messages/CZXXyF8jg5JRH7UbQWVYiKMQjQznCB6/message/eNcoDedHash..."
POST /messages/{apiKey}/message/{messageId}
200 Response
{
"status": true,
"message": "Message deleted",
"mailbox": "ab3cd@tempmailapi.online"
}
cURL
curl -s -X POST -H "Accept: application/json" \
"https://tempmailapi.com/api/messages/CZXXyF8jg5JRH7UbQWVYiKMQjQznCB6/message/eNcoDedHash..."
GET /d/{hash_id}/{file}
Streams the saved attachment for the specified message.
cURL
curl -OJ "https://tempmailapi.com/api/d/eNcoDedHash.../invoice.pdf"
{ "domain": "tempmailapi.online", "type": "Free" }{
"id": "eNcoDedHash...",
"from": "Sender",
"subject": "Subject",
"created_at": "2025-10-21T13:36:31Z",
"hash_id": "eNcoDedHash...",
"has_attachments": true
}
{
"id": "eNcoDedHash...",
"from": "Sender",
"subject": "Subject",
"created_at": "2025-10-21T13:36:31Z",
"body": "<!-- HTML or text -->",
"hash_id": "eNcoDedHash...",
"attachments": [
{ "filename": "file.ext", "size": 1234,
"link": "https://tempmailapi.com/api/d/eNco.../file.ext" }
]
}
apiKeyuser+tag@d.com → user%2Btag%40d.com.body from Get Single Message may be HTML or plain text; render directly in clients./api/d/* if you need signed URLs.since_days is supported by List Messages.Explore the features that make our temporary email service fast, secure, and easy to use
Protect your privacy by keeping spam and unwanted emails out of your personal inbox
Receive emails instantly with real-time inbox updates—no delays, no refresh required.
Choose from multiple email domains to create a unique and secure temporary email address.
Create temporary email addresses in just a few clicks. No registration required, and it’s always free to use!
Create as many temporary emails as you need—no limits, no hidden fees, and no restrictions on usage.
Save important messages to your favorites for quick and easy access whenever you need them.
Available in several languages so users around the world can use the service comfortably.
Access your temporary inbox anytime, anywhere. Fully responsive design works on all devices.
Old emails are automatically deleted to keep your inbox clean and clutter-free—no manual cleanup needed.
Create your free, disposable email address in seconds. No strings attached.
Get Your Free Inbox Now